test-revert
32 lines
| 573 B
| text/plain
|
TextLexer
/ tests / test-revert
Benoit Boissinot
|
r1447 | #!/bin/sh | ||
hg init | ||||
echo 123 > a | ||||
echo 123 > c | ||||
hg add a c | ||||
Thomas Arendsen Hein
|
r1933 | hg commit -m "first" -d "1000000 0" a c | ||
Benoit Boissinot
|
r1447 | echo 123 > b | ||
Benoit Boissinot
|
r1487 | echo %% should show b unknown | ||
Benoit Boissinot
|
r1447 | hg status | ||
echo 12 > c | ||||
Benoit Boissinot
|
r1487 | echo %% should show b unknown and c modified | ||
Benoit Boissinot
|
r1447 | hg status | ||
hg add b | ||||
Benoit Boissinot
|
r1487 | echo %% should show b added and c modified | ||
Benoit Boissinot
|
r1447 | hg status | ||
hg rm a | ||||
Benoit Boissinot
|
r1487 | echo %% should show a removed, b added and c modified | ||
Benoit Boissinot
|
r1447 | hg status | ||
hg revert a | ||||
Benoit Boissinot
|
r1487 | echo %% should show b added and c modified | ||
Benoit Boissinot
|
r1447 | hg status | ||
hg revert b | ||||
Benoit Boissinot
|
r1487 | echo %% should show b unknown and c modified | ||
Benoit Boissinot
|
r1447 | hg status | ||
hg revert c | ||||
Benoit Boissinot
|
r1487 | echo %% should show b unknown | ||
Benoit Boissinot
|
r1447 | hg status | ||
Benoit Boissinot
|
r1487 | echo %% should show a b and c | ||
Benoit Boissinot
|
r1447 | ls | ||
true | ||||