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