# HG changeset patch # User Kevin Bullock # Date 1308626152 18000 # Node ID 88a53081fb2167536c19db10bc5d5e15d6b589a0 # Parent 8a62bae94425dd61620d25456389319056f4dc51 revert: be more explicit that changes are lost BEFORE: $ hg revert abort: no files or directories specified (use --all to revert all files) AFTER: $ hg revert abort: no files or directories specified (use --all to discard all changes) diff -r 8a62bae94425 -r 88a53081fb21 mercurial/commands.py --- a/mercurial/commands.py Tue Jun 21 17:08:21 2011 +0300 +++ b/mercurial/commands.py Mon Jun 20 22:15:52 2011 -0500 @@ -4182,7 +4182,7 @@ if not pats and not opts.get('all'): raise util.Abort(_('no files or directories specified'), - hint=_('use --all to revert all files')) + hint=_('use --all to discard all changes')) ctx = scmutil.revsingle(repo, opts.get('rev')) node = ctx.node() diff -r 8a62bae94425 -r 88a53081fb21 tests/test-confused-revert.t --- a/tests/test-confused-revert.t Tue Jun 21 17:08:21 2011 +0300 +++ b/tests/test-confused-revert.t Mon Jun 20 22:15:52 2011 -0500 @@ -60,7 +60,7 @@ $ hg revert abort: no files or directories specified - (use --all to revert all files) + (use --all to discard all changes) [255] Revert should be ok now: diff -r 8a62bae94425 -r 88a53081fb21 tests/test-revert.t --- a/tests/test-revert.t Tue Jun 21 17:08:21 2011 +0300 +++ b/tests/test-revert.t Mon Jun 20 22:15:52 2011 -0500 @@ -186,7 +186,7 @@ $ hg revert -rtip abort: no files or directories specified - (use --all to revert all files) + (use --all to discard all changes) [255] should succeed