revert: be more explicit that changes are lost stable
authorKevin Bullock <kbullock@ringworld.org>
Mon, 20 Jun 2011 22:15:52 -0500
branchstable
changeset 14713 88a53081fb21
parent 14712 8a62bae94425
child 14714 8deebb577751
child 14715 a97ebfec8c29
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)
mercurial/commands.py
tests/test-confused-revert.t
tests/test-revert.t
--- 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