rebase: factor out histedit help command
authortimeless@mozdev.org
Tue, 06 Oct 2015 15:05:40 -0400
changeset 26494 832f40d2af53
parent 26493 13272104bb07
child 26495 7837653cb39a
rebase: factor out histedit help command
hgext/rebase.py
--- a/hgext/rebase.py	Sun Oct 04 22:35:36 2015 +0900
+++ b/hgext/rebase.py	Tue Oct 06 15:05:40 2015 -0400
@@ -217,8 +217,9 @@
         keepopen = opts.get('keepopen', False)
 
         if opts.get('interactive'):
+            help = "hg help histedit"
             msg = _("interactive history editing is supported by the "
-                    "'histedit' extension (see \"hg help histedit\")")
+                    "'histedit' extension (see \"%s\")") % help
             raise util.Abort(msg)
 
         if collapsemsg and not collapsef: