hgext/drophack.py
changeset 1121 1a39b1b8e092
parent 1001 f7f4a1fac6c0
child 1210 1f8428096078
--- a/hgext/drophack.py	Wed Oct 08 18:16:52 2014 -0700
+++ b/hgext/drophack.py	Wed Oct 08 18:17:21 2014 -0700
@@ -119,7 +119,7 @@
             newrevs = repo.revs('max(::. - %ld)', revs)
             if newrevs:
                 assert len(newrevs) == 1
-                newrev = newrevs[0]
+                newrev = newrevs.first()
             else:
                 newrev = -1
             commands.update(ui, repo, newrev)