# HG changeset patch # User Nathan Goldbaum # Date 1406228573 25200 # Node ID 195642c1520bc80bc7daec9623e7d3b6d7ce036d # Parent f7f4a1fac6c0302ed98c6dd10076ac130dcef722 uncommit: improve error message for use with no arguments diff -r f7f4a1fac6c0 -r 195642c1520b hgext/evolve.py --- a/hgext/evolve.py Fri Jul 25 14:27:16 2014 +0200 +++ b/hgext/evolve.py Thu Jul 24 12:02:53 2014 -0700 @@ -1974,7 +1974,8 @@ match = scmutil.match(old, pats, opts) newid = _commitfiltered(repo, old, match) if newid is None: - raise util.Abort(_('nothing to uncommit')) + raise util.Abort(_('nothing to uncommit'), + hint=_("use --all to uncommit all files")) # Move local changes on filtered changeset createmarkers(repo, [(old, (repo[newid],))]) phases.retractboundary(repo, oldphase, [newid]) diff -r f7f4a1fac6c0 -r 195642c1520b tests/test-uncommit.t --- a/tests/test-uncommit.t Fri Jul 25 14:27:16 2014 +0200 +++ b/tests/test-uncommit.t Thu Jul 24 12:02:53 2014 -0700 @@ -152,6 +152,7 @@ $ hg uncommit abort: nothing to uncommit + (use --all to uncommit all files) [255] $ hg bookmarks * touncommit-bm 3:5eb72dbe0cb4 @@ -162,6 +163,7 @@ $ hg uncommit --include nothere abort: nothing to uncommit + (use --all to uncommit all files) [255] Enjoy uncommit