test-tags
43 lines
| 650 B
| text/plain
|
TextLexer
/ tests / test-tags
|
r544 | #!/bin/sh | ||
|
r345 | |||
mkdir t | ||||
cd t | ||||
hg init | ||||
hg id | ||||
echo a > a | ||||
hg add a | ||||
|
r1933 | hg commit -m "test" -d "1000000 0" | ||
|
r345 | hg co | ||
hg identify | ||||
|
r925 | T=`hg tip -v | head -n 1 | cut -d : -f 3` | ||
|
r345 | echo "$T first" > .hgtags | ||
cat .hgtags | ||||
hg add .hgtags | ||||
|
r1933 | hg commit -m "add tags" -d "1000000 0" | ||
|
r345 | hg tags | ||
hg identify | ||||
echo bb > a | ||||
hg status | ||||
hg identify | ||||
hg co first | ||||
hg id | ||||
hg -v id | ||||
hg status | ||||
echo 1 > b | ||||
hg add b | ||||
|
r1933 | hg commit -m "branch" -d "1000000 0" | ||
|
r345 | hg id | ||
hg co -m 1 | ||||
hg id | ||||
hg status | ||||
|
r1986 | hg commit -m "merge" -d "1000000 0" | ||
# invalid tags | ||||
echo "spam" >> .hgtags | ||||
echo >> .hgtags | ||||
echo "foo bar" >> .hgtags | ||||
echo "$T invalid" | sed "s/..../a5a5/" >> .hg/localtags | ||||
hg commit -m "tags" -d "1000000 0" | ||||
hg tags | ||||
hg tip | ||||