Mercurial > hg
comparison tests/test-revert @ 1447:508a3f559553
revert added and removed files to their normal state before reverting
add a test for revert
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 25 Oct 2005 15:51:28 -0700 |
parents | |
children | 30146be3437c |
comparison
equal
deleted
inserted
replaced
1446:4babaa52badf | 1447:508a3f559553 |
---|---|
1 #!/bin/sh | |
2 | |
3 hg init | |
4 echo 123 > a | |
5 echo 123 > c | |
6 hg add a c | |
7 hg commit -m "first" -d "0 0" a c | |
8 echo 123 > b | |
9 hg status | |
10 echo 12 > c | |
11 hg status | |
12 hg add b | |
13 hg status | |
14 hg rm a | |
15 hg status | |
16 hg revert a | |
17 hg status | |
18 hg revert b | |
19 hg status | |
20 hg revert c | |
21 hg status | |
22 ls | |
23 | |
24 true |