changeset 14713:88a53081fb21 stable

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)
author Kevin Bullock <kbullock@ringworld.org>
date Mon, 20 Jun 2011 22:15:52 -0500
parents 8a62bae94425
children 8deebb577751 a97ebfec8c29
files mercurial/commands.py tests/test-confused-revert.t tests/test-revert.t
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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