hgext/rebase.py
changeset 22820 103dcfbb385f
parent 22790 c64f9e0beead
child 22823 18ac67b0814c
--- a/hgext/rebase.py	Tue Oct 07 00:14:53 2014 -0700
+++ b/hgext/rebase.py	Tue Oct 07 00:16:59 2014 -0700
@@ -596,7 +596,7 @@
     rebased = [r for r in state if state[r] > nullmerge]
     candidates = repo.revs('max(%ld  and (::%d))', rebased, rev)
     if candidates:
-        return state[candidates[0]]
+        return state[candidates.first()]
     else:
         return None