equal
deleted
inserted
replaced
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: |