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)
--- 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()
--- 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:
--- 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