Mercurial > public > mercurial-scm > hg
diff tests/test-revert @ 2036:c9226bcc288d
Don't abort when backup files already exist. Don't allow alternative names.
Rationale:
- When the user wants to revert, he shouldn't be stopped from doing
this just because some old backups will be overwritten.
- To not clobber important files by accident, alternative names for backup
files were disabled. As the backup target now has a fixed name, the user
doesn't have to be informed about the backup copy (unless --verbose)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 01 Apr 2006 11:58:50 +0200 |
parents | d436b21b20dc |
children | a514c7509fa9 |
line wrap: on
line diff
--- a/tests/test-revert Fri Mar 31 10:52:56 2006 -0800 +++ b/tests/test-revert Sat Apr 01 11:58:50 2006 +0200 @@ -22,16 +22,16 @@ echo %% should show b added, copy saved, and c modified hg status hg revert b -echo %% should show b unknown, b.bak unknown, and c modified +echo %% should show b unknown, b.orig unknown, and c modified hg status hg revert --no-backup c -echo %% should show unknown: b b.bak +echo %% should show unknown: b b.orig hg status -echo %% should show a b b.bak c e +echo %% should show a b b.orig c e ls -echo %% should save backup to e.0 +echo %% should verbosely save backup to e.orig echo z > e -hg revert --backup='%p.%R' +hg revert -v echo %% should say no changes needed hg revert a echo %% should say file not managed