Mercurial > hg-stable
changeset 46406:184e0ae0a4b2 stable
bisect: replace a missing method on the list primitive
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
Differential Revision: https://phab.mercurial-scm.org/D10201
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 12 Mar 2021 17:59:02 -0500 |
parents | f64806207752 |
children | 279edaaea711 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Mar 11 21:09:55 2021 -0500 +++ b/mercurial/commands.py Fri Mar 12 17:59:02 2021 -0500 @@ -1083,7 +1083,7 @@ if rev: if not nodes: raise error.Abort(_(b'empty revision set')) - node = repo[nodes.last()].node() + node = repo[nodes[-1]].node() with hbisect.restore_state(repo, state, node): while changesets: # update state