Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
| Automatic diff as part of commit; lint not applicable. |
| Automatic diff as part of commit; unit tests not applicable. |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/mdiff.py (2 lines) | |||
| M | tests/test-annotate.t (2 lines) |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz |
| if b1 < ubb <= b2: | if b1 < ubb <= b2: | ||||
| if stype == b'=': | if stype == b'=': | ||||
| uba = a1 + (ubb - b1) | uba = a1 + (ubb - b1) | ||||
| else: | else: | ||||
| uba = a2 | uba = a2 | ||||
| if hunkinrange((b1, (b2 - b1)), rangeb): | if hunkinrange((b1, (b2 - b1)), rangeb): | ||||
| filteredblocks.append(block) | filteredblocks.append(block) | ||||
| if lba is None or uba is None or uba < lba: | if lba is None or uba is None or uba < lba: | ||||
| raise error.Abort(_(b'line range exceeds file size')) | raise error.InputError(_(b'line range exceeds file size')) | ||||
| return filteredblocks, (lba, uba) | return filteredblocks, (lba, uba) | ||||
| def chooseblocksfunc(opts=None): | def chooseblocksfunc(opts=None): | ||||
| if ( | if ( | ||||
| opts is None | opts is None | ||||
| or not opts.xdiff | or not opts.xdiff | ||||
| or not util.safehasattr(bdiff, b'xdiffblocks') | or not util.safehasattr(bdiff, b'xdiffblocks') | ||||
| $ hg log -r 'followlines(baz, 5:4)' | $ hg log -r 'followlines(baz, 5:4)' | ||||
| hg: parse error: line range must be positive | hg: parse error: line range must be positive | ||||
| [255] | [255] | ||||
| $ hg log -r 'followlines(baz, 0:4)' | $ hg log -r 'followlines(baz, 0:4)' | ||||
| hg: parse error: fromline must be strictly positive | hg: parse error: fromline must be strictly positive | ||||
| [255] | [255] | ||||
| $ hg log -r 'followlines(baz, 2:40)' | $ hg log -r 'followlines(baz, 2:40)' | ||||
| abort: line range exceeds file size | abort: line range exceeds file size | ||||
| [255] | [10] | ||||
| $ hg log -r 'followlines(baz, 2:4, startrev=20, descend=[1])' | $ hg log -r 'followlines(baz, 2:4, startrev=20, descend=[1])' | ||||
| hg: parse error at 43: not a prefix: [ | hg: parse error at 43: not a prefix: [ | ||||
| (followlines(baz, 2:4, startrev=20, descend=[1]) | (followlines(baz, 2:4, startrev=20, descend=[1]) | ||||
| ^ here) | ^ here) | ||||
| [255] | [255] | ||||
| $ hg log -r 'followlines(baz, 2:4, startrev=20, descend=a)' | $ hg log -r 'followlines(baz, 2:4, startrev=20, descend=a)' | ||||
| hg: parse error: descend argument must be a boolean | hg: parse error: descend argument must be a boolean | ||||
| [255] | [255] | ||||