Mercurial > hg
comparison tests/test-revert @ 6109:242595e612ed
revert: unify forget and remove lists
This doesn't make a difference right now, but after the next revision
some files in state 'a' may end up in the deleted list, and revert
won't be able to just remove all files in that list.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 14 Feb 2008 18:08:16 -0200 |
parents | 7383384793fb |
children | 81e20e01d465 |
comparison
equal
deleted
inserted
replaced
6108:5086576a2152 | 6109:242595e612ed |
---|---|
26 echo %% should show b unknown, and c modified | 26 echo %% should show b unknown, and c modified |
27 hg status | 27 hg status |
28 hg revert --no-backup c | 28 hg revert --no-backup c |
29 echo %% should show unknown: b | 29 echo %% should show unknown: b |
30 hg status | 30 hg status |
31 echo %% should show a b c e | 31 hg add b |
32 echo %% should show b added | |
33 hg status b | |
34 rm b | |
35 echo %% should show b added | |
36 hg status b | |
37 hg revert -v b | |
38 echo %% should not find b | |
39 hg status b | |
40 echo %% should show a c e | |
32 ls | 41 ls |
33 echo %% should verbosely save backup to e.orig | 42 echo %% should verbosely save backup to e.orig |
34 echo z > e | 43 echo z > e |
35 hg revert --all -v | 44 hg revert --all -v |
36 echo %% should say no changes needed | 45 echo %% should say no changes needed |