mercurial/commands.py
changeset 3017 ea2a9c13afc6
parent 3013 2b255c3478dc
child 3026 d161e6f39557
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: