# HG changeset patch # User timeless@mozdev.org # Date 2015-10-06 19:05:40 # Node ID 832f40d2af53915b8f11e1ddcd7d576cc3cfb578 # Parent 13272104bb073169ec9e104a71a657fc3ff6ce98 rebase: factor out histedit help command diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -217,8 +217,9 @@ def rebase(ui, repo, **opts): 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: