[PATCH 1 of 3 evolve-ext] evolve: use hex in list output

timeless timeless at fmr.im
Thu Apr 21 02:26:43 EDT 2016


# HG changeset patch
# User timeless at gmail.com
# Date 1461219117 0
#      Thu Apr 21 06:11:57 2016 +0000
# Node ID 105ab3a2a7a86b2cd6e720e42e9ece9e9b1590cf
# Parent  8e879d59b20e60e8af013a776f5e3dcc20588fcf
# Available At https://bitbucket.org/timeless/mutable-history/
#              hg pull https://bitbucket.org/timeless/mutable-history/ -r 105ab3a2a7a8
evolve: use hex in list output

diff -r 8e879d59b20e -r 105ab3a2a7a8 hgext/evolve.py
--- a/hgext/evolve.py	Tue Apr 19 14:29:40 2016 -0700
+++ b/hgext/evolve.py	Thu Apr 21 06:11:57 2016 +0000
@@ -1620,9 +1620,10 @@
             troubles.append({'troubletype': 'bumped', 'sourcenode': imprec,
                              'sourcetype': 'immutableprecursor'})
         for dset in dsets:
-            divnodes = [{'node': n} for n in dset['divergentnodes']]
+            divnodes = [{'node': node.hex(n),
+                        } for n in dset['divergentnodes']]
             troubles.append({'troubletype': 'divergent',
-                             'commonprecursor': dset['commonprecursor'],
+                             'commonprecursor': node.hex(dset['commonprecursor']),
                              'divergentnodes': divnodes})
         fm.data(troubles=troubles)
 


More information about the Mercurial-devel mailing list