Mercurial > public > mercurial-scm > hg-stable
diff hgext/histedit.py @ 25412:443d4635e630
phases: add `hg help phases` hint to failures to edit public commits
There were a couple of locations that were missing this hint after an
edition of some kind failed due to the public phase.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 01 Jun 2015 14:16:52 -0400 |
parents | d298805fb639 |
children | 7e36c3000ead |
line wrap: on
line diff
--- a/hgext/histedit.py Mon Jun 01 18:05:38 2015 +0000 +++ b/hgext/histedit.py Mon Jun 01 14:16:52 2015 -0400 @@ -928,7 +928,8 @@ raise util.Abort(_('cannot edit history that contains merges')) root = ctxs[0] # list is already sorted by repo.set if not root.mutable(): - raise util.Abort(_('cannot edit public changeset: %s') % root) + raise util.Abort(_('cannot edit public changeset: %s') % root, + hint=_('see "hg help phases" for details')) return [c.node() for c in ctxs] def makedesc(repo, action, rev):