test-flags
50 lines
| 704 B
| text/plain
|
TextLexer
/ tests / test-flags
|
r800 | #!/bin/sh -e | ||
|
r412 | |||
|
r491 | umask 027 | ||
|
r412 | mkdir test1 | ||
cd test1 | ||||
hg init | ||||
touch a b | ||||
hg add a b | ||||
|
r1933 | hg ci -m "added a b" -d "1000000 0" | ||
|
r412 | |||
cd .. | ||||
|
r3321 | hg clone test1 test3 | ||
|
r412 | mkdir test2 | ||
cd test2 | ||||
hg init | ||||
|
r440 | hg pull ../test1 | ||
|
r412 | hg co | ||
chmod +x a | ||||
|
r1933 | hg ci -m "chmod +x a" -d "1000000 0" | ||
|
r4530 | echo % the changelog should mention file a: | ||
|
r8523 | hg tip --template '{files}\n' | ||
|
r412 | |||
cd ../test1 | ||||
echo 123 >>a | ||||
|
r1933 | hg ci -m "a updated" -d "1000000 0" | ||
|
r412 | |||
|
r440 | hg pull ../test2 | ||
|
r412 | hg heads | ||
hg history | ||||
|
r2283 | hg -v merge | ||
|
r412 | |||
|
r3321 | cd ../test3 | ||
echo 123 >>b | ||||
hg ci -m "b updated" -d "1000000 0" | ||||
hg pull ../test2 | ||||
hg heads | ||||
hg history | ||||
hg -v merge | ||||
ls -l ../test[123]/a > foo | ||||
|
r1923 | cut -b 1-10 < foo | ||
|
r412 | |||
|
r3853 | hg debugindex .hg/store/data/a.i | ||
hg debugindex ../test2/.hg/store/data/a.i | ||||
hg debugindex ../test1/.hg/store/data/a.i | ||||