Mercurial > hg
comparison tests/test-revert @ 2042:a514c7509fa9
small changes to revert command.
fix bug 93: work with files that are in target manifest but not
dirstate.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 03 Apr 2006 10:02:09 -0700 |
parents | c9226bcc288d |
children | 968f036f93a4 |
comparison
equal
deleted
inserted
replaced
2041:077a2da7f1de | 2042:a514c7509fa9 |
---|---|
35 echo %% should say no changes needed | 35 echo %% should say no changes needed |
36 hg revert a | 36 hg revert a |
37 echo %% should say file not managed | 37 echo %% should say file not managed |
38 echo q > q | 38 echo q > q |
39 hg revert q | 39 hg revert q |
40 rm q | |
40 echo %% should say file not found | 41 echo %% should say file not found |
41 hg revert notfound | 42 hg revert notfound |
43 hg rm a | |
44 hg commit -m "second" -d "1000000 0" | |
45 echo z > z | |
46 hg add z | |
47 hg st | |
48 echo %% should add a, forget z | |
49 hg revert -r0 | |
50 echo %% should forget a | |
51 hg revert -rtip | |
52 rm -f a *.orig | |
53 echo %% should silently add a | |
54 hg revert -r0 a | |
55 hg st a | |
42 | 56 |
43 true | 57 true |