# HG changeset patch # User Pierre-Yves David # Date 1500854774 -7200 # Node ID f51efb2bb8c996d3976ac2fed5c73b35c0c5a4c7 # Parent 766b38594ded20c0a228f9792d88daa0bb2ca0b1 precheck: point to 'phase' help when aborting some of the error message already does that. It seems a good idea. diff -r 766b38594ded -r f51efb2bb8c9 hgext3rd/evolve/rewriteutil.py --- a/hgext3rd/evolve/rewriteutil.py Mon Jul 24 01:04:40 2017 +0200 +++ b/hgext3rd/evolve/rewriteutil.py Mon Jul 24 02:06:14 2017 +0200 @@ -37,7 +37,9 @@ can be used to control the commit message. """ if repo.revs('%ld and public()', revs): - raise error.Abort(_("cannot %s public changesets") % action) + msg = _("cannot %s public changesets") % action + hint = _("see 'hg help phases' for details") + raise error.Abort(msg, hint=hint) def bookmarksupdater(repo, oldid, tr): """Return a callable update(newid) updating the current bookmark diff -r 766b38594ded -r f51efb2bb8c9 tests/test-fold.t --- a/tests/test-fold.t Mon Jul 24 01:04:40 2017 +0200 +++ b/tests/test-fold.t Mon Jul 24 02:06:14 2017 +0200 @@ -74,6 +74,7 @@ $ hg phase --public 0 $ hg fold --from -r 0 abort: cannot fold public changesets + (see 'hg help phases' for details) [255] Test actual folding diff -r 766b38594ded -r f51efb2bb8c9 tests/test-metaedit.t --- a/tests/test-metaedit.t Mon Jul 24 01:04:40 2017 +0200 +++ b/tests/test-metaedit.t Mon Jul 24 02:06:14 2017 +0200 @@ -104,6 +104,7 @@ [255] $ hg metaedit -r 0 --fold abort: cannot fold public changesets + (see 'hg help phases' for details) [255] $ hg metaedit 'desc(C) + desc(F)' --fold abort: cannot fold non-linear revisions (multiple roots given)