Caught by pytype:
File "/mnt/c/Users/Matt/hg/mercurial/commands.py", line 1095, in bisect: No attribute 'last' on list [attribute-error] In list
( )
pulkit |
hg-reviewers |
Caught by pytype:
File "/mnt/c/Users/Matt/hg/mercurial/commands.py", line 1095, in bisect: No attribute 'last' on list [attribute-error] In list
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/commands.py (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
291fa7370057 | 2a1c7a5d527b | Matt Harbison | Mar 12 2021, 5:59 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 |
) | ) | ||||
else: | else: | ||||
node, p2 = repo.dirstate.parents() | node, p2 = repo.dirstate.parents() | ||||
if p2 != nullid: | if p2 != nullid: | ||||
raise error.StateError(_(b'current bisect revision is a merge')) | raise error.StateError(_(b'current bisect revision is a merge')) | ||||
if rev: | if rev: | ||||
if not nodes: | if not nodes: | ||||
raise error.Abort(_(b'empty revision set')) | raise error.Abort(_(b'empty revision set')) | ||||
node = repo[nodes.last()].node() | node = repo[nodes[-1]].node() | ||||
with hbisect.restore_state(repo, state, node): | with hbisect.restore_state(repo, state, node): | ||||
while changesets: | while changesets: | ||||
# update state | # update state | ||||
state[b'current'] = [node] | state[b'current'] = [node] | ||||
hbisect.save_state(repo, state) | hbisect.save_state(repo, state) | ||||
status = ui.system( | status = ui.system( | ||||
command, | command, | ||||
environ={b'HG_NODE': hex(node)}, | environ={b'HG_NODE': hex(node)}, |