diff hgext/histedit.py @ 24196:c3d13202144d

histedit: fix style of new error message - lowercase - no punctuation - brief - short node
author Matt Mackall <mpm@selenic.com>
date Tue, 03 Mar 2015 17:28:05 -0600
parents be7cb25186be
children 4047982904f8
line wrap: on
line diff
--- a/hgext/histedit.py	Wed Feb 04 15:17:13 2015 -0500
+++ b/hgext/histedit.py	Tue Mar 03 17:28:05 2015 -0600
@@ -1026,9 +1026,8 @@
         strip_nodes = set([repo[n].hex() for n in nodelist])
         common_nodes = histedit_nodes & strip_nodes
         if common_nodes:
-            raise util.Abort(_('unable to strip %s. Nodes are '
-                               'used by history edit in progress.')
-                             % ', '.join(common_nodes))
+            raise util.Abort(_("histedit in progress, can't strip %s")
+                             % ', '.join(node.short(x) for x in common_nodes))
     return orig(ui, repo, nodelist, *args, **kwargs)
 
 extensions.wrapfunction(repair, 'strip', stripwrapper)