# HG changeset patch # User Pierre-Yves David # Date 1500851080 -7200 # Node ID 766b38594ded20c0a228f9792d88daa0bb2ca0b1 # Parent 7d86d88b2fa8e190bdf0c5cc69aa428c2821be2c precheck: use 'changesets' in the message instead of 'revisions' This match the message `hg commit --amend` issue in core. diff -r 7d86d88b2fa8 -r 766b38594ded hgext3rd/evolve/rewriteutil.py --- a/hgext3rd/evolve/rewriteutil.py Sun Jul 23 19:35:36 2017 +0200 +++ b/hgext3rd/evolve/rewriteutil.py Mon Jul 24 01:04:40 2017 +0200 @@ -37,7 +37,7 @@ can be used to control the commit message. """ if repo.revs('%ld and public()', revs): - raise error.Abort(_("cannot %s public revisions") % action) + raise error.Abort(_("cannot %s public changesets") % action) def bookmarksupdater(repo, oldid, tr): """Return a callable update(newid) updating the current bookmark diff -r 7d86d88b2fa8 -r 766b38594ded tests/test-fold.t --- a/tests/test-fold.t Sun Jul 23 19:35:36 2017 +0200 +++ b/tests/test-fold.t Mon Jul 24 01:04:40 2017 +0200 @@ -73,7 +73,7 @@ [255] $ hg phase --public 0 $ hg fold --from -r 0 - abort: cannot fold public revisions + abort: cannot fold public changesets [255] Test actual folding diff -r 7d86d88b2fa8 -r 766b38594ded tests/test-metaedit.t --- a/tests/test-metaedit.t Sun Jul 23 19:35:36 2017 +0200 +++ b/tests/test-metaedit.t Mon Jul 24 01:04:40 2017 +0200 @@ -103,7 +103,7 @@ abort: revisions must be specified with --fold [255] $ hg metaedit -r 0 --fold - abort: cannot fold public revisions + abort: cannot fold public changesets [255] $ hg metaedit 'desc(C) + desc(F)' --fold abort: cannot fold non-linear revisions (multiple roots given)