diff hgext3rd/evolve/__init__.py @ 2405:4ff849709fea

label: add a label for the node in the "wc now at" message MOAR COLOR FOR THE COLOR GOAD!
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 18 May 2017 11:00:06 +0200
parents c07f752137f4
children 783a74c60a5e
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Thu May 18 10:56:08 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Thu May 18 11:00:06 2017 +0200
@@ -2065,7 +2065,8 @@
                 result = _solveone(ui, repo, repo[aspchildren[0]], dryrunopt,
                                    False, lambda: None, category='unstable')
                 if not result:
-                    ui.status(_('working directory now at %s\n') % repo['.'])
+                    ui.status(_('working directory now at %s\n')
+                              % ui.label(repo['.'], 'evolve.node'))
                 return result
             return 1
         return result
@@ -2271,7 +2272,8 @@
                     repo._bookmarks[bookactive] = newnode.node()
                     repo._bookmarks.recordchange(tr)
                 commands.update(ui, repo, newnode.rev())
-                ui.status(_('working directory now at %s\n') % newnode)
+                ui.status(_('working directory now at %s\n')
+                          % ui.label(newnode, 'evolve.node'))
                 if movebookmark:
                     bookmarksmod.activate(repo, bookactive)