rebase: make "destnode" consistently a revnum and rename it to "destrev"
Differential Revision: https://phab.mercurial-scm.org/D3138
--- 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