Show More
@@ -2291,7 +2291,8 b' def revert(ui, repo, *pats, **opts):' | |||||
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']: |
@@ -55,7 +55,7 b' executable' | |||||
55 | adding a |
|
55 | adding a | |
56 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
56 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
57 | % should fail - no arguments |
|
57 | % should fail - no arguments | |
58 | abort: no files or directories specified |
|
58 | abort: no files or directories specified; use --all to revert the whole repo | |
59 | % should succeed |
|
59 | % should succeed | |
60 | reverting a |
|
60 | reverting a | |
61 | %% issue332 |
|
61 | %% issue332 |
General Comments 0
You need to be logged in to leave comments.
Login now