hgext/rebase.py
changeset 26496 b885ab9ca182
parent 26495 7837653cb39a
child 26587 56b2bcea2529
equal deleted inserted replaced
26495:7837653cb39a 26496:b885ab9ca182
   215         # keepopen is not meant for use on the command line, but by
   215         # keepopen is not meant for use on the command line, but by
   216         # other extensions
   216         # other extensions
   217         keepopen = opts.get('keepopen', False)
   217         keepopen = opts.get('keepopen', False)
   218 
   218 
   219         if opts.get('interactive'):
   219         if opts.get('interactive'):
   220             help = "hg help -e histedit"
   220             try:
       
   221                 if extensions.find('histedit'):
       
   222                     enablehistedit = ''
       
   223             except KeyError:
       
   224                 enablehistedit = " --config extensions.histedit="
       
   225             help = "hg%s help -e histedit" % enablehistedit
   221             msg = _("interactive history editing is supported by the "
   226             msg = _("interactive history editing is supported by the "
   222                     "'histedit' extension (see \"%s\")") % help
   227                     "'histedit' extension (see \"%s\")") % help
   223             raise util.Abort(msg)
   228             raise util.Abort(msg)
   224 
   229 
   225         if collapsemsg and not collapsef:
   230         if collapsemsg and not collapsef: