hgext/rebase.py
branchstable
changeset 27963 07a5de79ec30
parent 27959 4322849a5357
child 27975 6f92d6bd2972
--- a/hgext/rebase.py	Mon Feb 01 22:14:06 2016 +0900
+++ b/hgext/rebase.py	Mon Feb 01 15:41:43 2016 +0000
@@ -712,8 +712,8 @@
     repo.ui.debug(" future parents are %d and %d\n" %
                             (repo[p1].rev(), repo[p2].rev()))
 
-    if rev == min(state):
-        # Case (1) initial changeset of a non-detaching rebase.
+    if not any(p.rev() in state for p in parents):
+        # Case (1) root changeset of a non-detaching rebase set.
         # Let the merge mechanism find the base itself.
         base = None
     elif not repo[rev].p2():