comparison mercurial/commands.py @ 3017:ea2a9c13afc6

Add a hint for revert --all when aborting
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 29 Aug 2006 19:02:57 +0200
parents 2b255c3478dc
children d161e6f39557
comparison
equal deleted inserted replaced
3016:aebc3f64b20f 3017:ea2a9c13afc6
2289 2289
2290 If no arguments are given, no files are reverted. 2290 If no arguments are given, no files are reverted.
2291 """ 2291 """
2292 2292
2293 if not pats and not opts['all']: 2293 if not pats and not opts['all']:
2294 raise util.Abort(_('no files or directories specified')) 2294 raise util.Abort(_('no files or directories specified; '
2295 'use --all to revert the whole repo'))
2295 2296
2296 parent, p2 = repo.dirstate.parents() 2297 parent, p2 = repo.dirstate.parents()
2297 if opts['rev']: 2298 if opts['rev']:
2298 node = repo.lookup(opts['rev']) 2299 node = repo.lookup(opts['rev'])
2299 elif p2 != nullid: 2300 elif p2 != nullid: