diff mercurial/phases.py @ 34876:eb1b964b354b

phases: pass phase names to hooks instead of internal values
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Wed, 18 Oct 2017 12:19:53 -0500
parents eb6375651974
children d13526333835
line wrap: on
line diff
--- a/mercurial/phases.py	Wed Oct 18 12:36:23 2017 +0200
+++ b/mercurial/phases.py	Wed Oct 18 12:19:53 2017 -0500
@@ -660,7 +660,7 @@
     if old is None:
         old = ''
     else:
-        old = '%s' % old
+        old = phasenames[old]
     return {'node': node,
             'oldphase': old,
-            'phase': '%s' % new}
+            'phase': phasenames[new]}