Patchwork [1,of,3] rebase: factor out histedit help command

login
register
mail settings
Submitter timeless@mozdev.org
Date Oct. 6, 2015, 7:17 p.m.
Message ID <21211b4e70c3924e5829.1444159065@waste.org>
Download mbox | patch
Permalink /patch/10832/
State Accepted
Headers show

Comments

timeless@mozdev.org - Oct. 6, 2015, 7:17 p.m.
# HG changeset patch
# User timeless@mozdev.org
# Date 1444158340 14400
#      Tue Oct 06 15:05:40 2015 -0400
# Node ID 21211b4e70c3924e5829a483ab16ae33b4003db9
# Parent  3f234db6fe8d7cc3d39083f7e7523444bc21e5a2
rebase: factor out histedit help command

Patch

diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -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: