Mercurial > evolve
diff tests/test-uncommit.t @ 2788:554c069cdc85
uncommit: use precheck to validate revision
This gives us standard check and standard error message.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 24 Jul 2017 01:45:17 +0200 |
parents | 4dd84054ebbb |
children | 41c9a4df628e 20c2499ce8bc |
line wrap: on
line diff
--- a/tests/test-uncommit.t Sun Jul 23 21:20:46 2017 +0200 +++ b/tests/test-uncommit.t Mon Jul 24 01:45:17 2017 +0200 @@ -13,7 +13,8 @@ Cannot uncommit null changeset $ hg uncommit - abort: cannot rewrite immutable changeset + abort: cannot uncommit the null revision + (no changeset checked out) [255] Cannot uncommit public changeset @@ -22,7 +23,8 @@ $ hg ci -Am adda a $ hg phase --public . $ hg uncommit - abort: cannot rewrite immutable changeset + abort: cannot uncommit public changesets: 07f494440405 + (see 'hg help phases' for details) [255] $ hg phase --force --draft .