rebase: directly use '_destrebase'
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 15 Oct 2015 01:51:53 +0100
changeset 26718 806ca3a37858
parent 26717 1755e1d9d1c3
child 26719 8bed1eae99df
rebase: directly use '_destrebase' There is little value in using the revset instead of the function.
hgext/rebase.py
--- a/hgext/rebase.py	Thu Oct 15 01:50:31 2015 +0100
+++ b/hgext/rebase.py	Thu Oct 15 01:51:53 2015 +0100
@@ -287,9 +287,11 @@
             cmdutil.checkunfinished(repo)
             cmdutil.bailifchanged(repo)
 
-            if not destf:
-                destf = '_rebasedefaultdest()'
-            dest = scmutil.revsingle(repo, destf)
+            if destf:
+                dest = scmutil.revsingle(repo, destf)
+            else:
+                dest = repo[_destrebase(repo)]
+                destf = str(dest)
 
             if revf:
                 rebaseset = scmutil.revrange(repo, revf)