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
| Automatic diff as part of commit; lint not applicable. |
| Automatic diff as part of commit; unit tests not applicable. |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/commands.py (2 lines) |
| 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)}, | ||||