changeset 26494:832f40d2af53

rebase: factor out histedit help command
author timeless@mozdev.org
date Tue, 06 Oct 2015 15:05:40 -0400
parents 13272104bb07
children 7837653cb39a
files hgext/rebase.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: