# HG changeset patch # User Benoit Boissinot # Date 1156870977 -7200 # Node ID ea2a9c13afc65de475012924e9d75c985d767049 # Parent aebc3f64b20f3f8e67a79f14dd0e864dbf8d7119 Add a hint for revert --all when aborting diff -r aebc3f64b20f -r ea2a9c13afc6 mercurial/commands.py --- a/mercurial/commands.py Mon Aug 28 21:49:02 2006 +0200 +++ b/mercurial/commands.py Tue Aug 29 19:02:57 2006 +0200 @@ -2291,7 +2291,8 @@ """ if not pats and not opts['all']: - raise util.Abort(_('no files or directories specified')) + raise util.Abort(_('no files or directories specified; ' + 'use --all to revert the whole repo')) parent, p2 = repo.dirstate.parents() if opts['rev']: diff -r aebc3f64b20f -r ea2a9c13afc6 tests/test-revert.out --- a/tests/test-revert.out Mon Aug 28 21:49:02 2006 +0200 +++ b/tests/test-revert.out Tue Aug 29 19:02:57 2006 +0200 @@ -55,7 +55,7 @@ adding a 1 files updated, 0 files merged, 0 files removed, 0 files unresolved % should fail - no arguments -abort: no files or directories specified +abort: no files or directories specified; use --all to revert the whole repo % should succeed reverting a %% issue332