Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/mdiff.py (2 lines) | |||
M | tests/test-annotate.t (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
48ac3ca500fc | 40902250687d | Martin von Zweigbergk | Nov 16 2020, 7:25 PM |
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 | ||||
[10] | [10] | ||||
$ 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 | ||||
[10] | [10] | ||||
$ 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) | ||||
[10] | [10] | ||||
$ 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 | ||||
[10] | [10] |