Comments
Patch
@@ -54,5 +54,4 @@
$ hg rebase -s 6 -d 4 -q -T "{nodechanges % '{key}:{value}'}"
- d9d6773efc831c274eace04bc13e8e6412517139:f48cd65c6dc3d2acb55da54402a5b029546e546f (no-eol) (false !)
- d9d6773efc831c274eace04bc13e8e6412517139 (no-eol) (true !)
+ d9d6773efc831c274eace04bc13e8e6412517139:f48cd65c6dc3d2acb55da54402a5b029546e546f (no-eol)
@@ -21,7 +21,6 @@
from mercurial.i18n import _
from mercurial.node import (
- hex,
nullid,
nullrev,
short,
@@ -1563,8 +1562,11 @@
replacements[oldnode] = succs
scmutil.cleanupnodes(repo, replacements, 'rebase', moves)
if fm:
- nodechanges = {hex(oldn): [hex(n) for n in newn]
- for oldn, newn in replacements.iteritems()}
+ hf = fm.hexfunc
+ fl = fm.formatlist
+ fd = fm.formatdict
+ nodechanges = fd({hf(oldn): fl([hf(n) for n in newn], 'succ')
+ for oldn, newn in replacements.iteritems()})
fm.data(nodechanges=nodechanges)
def pullrebase(orig, ui, repo, *args, **opts):