Mercurial > public > mercurial-scm > hg-stable
diff hgext/rebase.py @ 26496:b885ab9ca182
rebase: enable histedit for useful help with it
author | timeless@mozdev.org |
---|---|
date | Tue, 06 Oct 2015 15:07:00 -0400 |
parents | 7837653cb39a |
children | 56b2bcea2529 |
line wrap: on
line diff
--- a/hgext/rebase.py Tue Oct 06 15:01:25 2015 -0400 +++ b/hgext/rebase.py Tue Oct 06 15:07:00 2015 -0400 @@ -217,7 +217,12 @@ keepopen = opts.get('keepopen', False) if opts.get('interactive'): - help = "hg help -e histedit" + try: + if extensions.find('histedit'): + enablehistedit = '' + except KeyError: + enablehistedit = " --config extensions.histedit=" + help = "hg%s help -e histedit" % enablehistedit msg = _("interactive history editing is supported by the " "'histedit' extension (see \"%s\")") % help raise util.Abort(msg)