rebase: make "destnode" consistently a revnum and rename it to "destrev"
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 05 Apr 2018 10:12:10 -0700
changeset 37376 25940470c7e6
parent 37375 a973bb92ab71
child 37377 3dfd7f018c69
rebase: make "destnode" consistently a revnum and rename it to "destrev" Differential Revision: https://phab.mercurial-scm.org/D3138
hgext/rebase.py
--- a/hgext/rebase.py	Thu Apr 05 08:28:12 2018 -0700
+++ b/hgext/rebase.py	Thu Apr 05 10:12:10 2018 -0700
@@ -248,10 +248,10 @@
                     if newrev in legacystates:
                         continue
                     if len(args) > 2:
-                        destnode = args[2]
+                        destrev = repo[args[2]].rev()
                     else:
-                        destnode = legacydest
-                    destmap[repo[oldrev].rev()] = repo[destnode].rev()
+                        destrev = legacydest
+                    destmap[repo[oldrev].rev()] = destrev
                     if newrev in (nullid, revtodostr):
                         state[repo[oldrev].rev()] = revtodo
                         # Legacy compat special case