label: add a label for the node in the "wc now at" message
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 18 May 2017 11:00:06 +0200
changeset 2405 4ff849709fea
parent 2404 c07f752137f4
child 2406 31255706b591
label: add a label for the node in the "wc now at" message MOAR COLOR FOR THE COLOR GOAD!
hgext3rd/evolve/__init__.py
--- 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)