mercurial/commands.py
branchstable
changeset 46699 184e0ae0a4b2
parent 46688 7e02e7c721b0
child 46794 e2f7b2695ba1
--- 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