##// END OF EJS Templates
bash_completion: completion for commands provided by extensions...
bash_completion: completion for commands provided by extensions Make the bash_completion function call _hg_cmd_$cmd to generate completion candidates for $cmd if that function exists. Add basic completion functions for: - mq: - qpop - qpush - qdelete - qsave - qcommit - strip - hbisect: - bisect - patchbomb: - email - gpg: - sign

File last commit:

r2036:c9226bcc default
r2041:077a2da7 default
Show More
test-revert
43 lines | 877 B | text/plain | TextLexer
#!/bin/sh
hg init
echo 123 > a
echo 123 > c
echo 123 > e
hg add a c e
hg commit -m "first" -d "1000000 0" a c e
echo 123 > b
echo %% should show b unknown
hg status
echo 12 > c
echo %% should show b unknown and c modified
hg status
hg add b
echo %% should show b added and c modified
hg status
hg rm a
echo %% should show a removed, b added and c modified
hg status
hg revert a
echo %% should show b added, copy saved, and c modified
hg status
hg revert b
echo %% should show b unknown, b.orig unknown, and c modified
hg status
hg revert --no-backup c
echo %% should show unknown: b b.orig
hg status
echo %% should show a b b.orig c e
ls
echo %% should verbosely save backup to e.orig
echo z > e
hg revert -v
echo %% should say no changes needed
hg revert a
echo %% should say file not managed
echo q > q
hg revert q
echo %% should say file not found
hg revert notfound
true