label: rename 'evolve.short_node' to 'evolve.node'
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 18 May 2017 10:56:08 +0200
changeset 2404 c07f752137f4
parent 2403 1b348702d79e
child 2405 4ff849709fea
label: rename 'evolve.short_node' to 'evolve.node' A wider labelk will helps compatibility.
hgext3rd/evolve/__init__.py
hgext3rd/evolve/obshistory.py
tests/test-evolve-obshistory.t
--- a/hgext3rd/evolve/__init__.py	Wed May 17 19:20:43 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Thu May 18 10:56:08 2017 +0200
@@ -163,7 +163,7 @@
 
 obsexcmsg = utility.obsexcmsg
 
-colortable = {'evolve.short_node': 'yellow',
+colortable = {'evolve.node': 'yellow',
               'evolve.user': 'green',
               'evolve.rev': 'blue',
               'evolve.short_description': '',
--- a/hgext3rd/evolve/obshistory.py	Wed May 17 19:20:43 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py	Thu May 18 10:56:08 2017 +0200
@@ -51,7 +51,7 @@
 
     fm.startitem()
     fm.write('debugobshistory.node', '%s', str(ctx),
-             label="evolve.short_node")
+             label="evolve.node")
     fm.plain(' ')
 
     fm.write('debugobshistory.rev', '(%d)', int(ctx),
@@ -66,7 +66,7 @@
     hexnode = node.short(nodewithoutctx)
     fm.startitem()
     fm.write('debugobshistory.node', '%s', hexnode,
-             label="evolve.short_node evolve.missing_change_ctx")
+             label="evolve.node evolve.missing_change_ctx")
     fm.plain('\n')
 
 def _debugobshistorydisplaymarker(fm, repo, marker):
@@ -100,6 +100,6 @@
         shortsnodes = (node.short(succnode) for succnode in sorted(succnodes))
         nodes = fm.formatlist(shortsnodes, 'debugobshistory.succnodes', sep=', ')
         fm.write('debugobshistory.succnodes', '%s', nodes,
-                 label="evolve.short_node")
+                 label="evolve.node")
 
     fm.plain("\n")
--- a/tests/test-evolve-obshistory.t	Wed May 17 19:20:43 2017 +0200
+++ b/tests/test-evolve-obshistory.t	Thu May 18 10:56:08 2017 +0200
@@ -1301,8 +1301,8 @@
   471f378eab4c (1) A0
     rewritten by test (*20*) as fdf9bde5129a (glob)
   $ hg debugobshistory 7a230b46bf61 --color=debug
-  [evolve.short_node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
-  [evolve.short_node evolve.missing_change_ctx|fdf9bde5129a]
-    [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*20*)] as [evolve.short_node|7a230b46bf61] (glob)
-  [evolve.short_node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
-    [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*20*)] as [evolve.short_node|fdf9bde5129a] (glob)
+  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
+  [evolve.node evolve.missing_change_ctx|fdf9bde5129a]
+    [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*20*)] as [evolve.node|7a230b46bf61] (glob)
+  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
+    [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*20*)] as [evolve.node|fdf9bde5129a] (glob)