evolve: include node, rev, desc, and phase in list
authortimeless@gmail.com
Thu, 21 Apr 2016 06:12:20 +0000
changeset 1682 fe4b41a2af4e
parent 1681 db1db8633b8c
child 1683 1b1c8c0ab20e
evolve: include node, rev, desc, and phase in list
hgext/evolve.py
--- a/hgext/evolve.py	Thu Apr 21 06:11:57 2016 +0000
+++ b/hgext/evolve.py	Thu Apr 21 06:12:20 2016 +0000
@@ -1592,6 +1592,7 @@
         desc = (desc[:desclen] + '...') if len(desc) > desclen else desc
         fm.plain('%s: ' % ctx.hex()[:hashlen])
         fm.plain('%s\n' % desc)
+        fm.data(node=ctx.hex(), rev=ctx.rev(), desc=desc, phase=ctx.phasestr())
 
         for unpar in unpars if showunstable else []:
             fm.plain('  unstable: %s (unstable parent)\n' % unpar[:hashlen])
@@ -1626,6 +1627,7 @@
                              'sourcetype': 'immutableprecursor'})
         for dset in dsets:
             divnodes = [{'node': node.hex(n),
+                         'phase': repo[n].phasestr(),
                         } for n in dset['divergentnodes']]
             troubles.append({'troubletype': 'divergent',
                              'commonprecursor': node.hex(dset['commonprecursor']),