test-newbranch
33 lines
| 477 B
| text/plain
|
TextLexer
/ tests / test-newbranch
Matt Mackall
|
r3420 | #!/bin/sh | ||
hg init t | ||||
cd t | ||||
Matt Mackall
|
r3502 | hg branches | ||
Matt Mackall
|
r3420 | |||
echo foo > a | ||||
hg add a | ||||
hg ci -m "initial" -d "0 0" | ||||
Matt Mackall
|
r3502 | hg branch foo | ||
hg branch | ||||
Matt Mackall
|
r3420 | hg ci -m "add branch name" -d "0 0" | ||
Matt Mackall
|
r3502 | hg branch bar | ||
Matt Mackall
|
r3420 | hg ci -m "change branch name" -d "0 0" | ||
Matt Mackall
|
r3502 | hg branch "" | ||
Matt Mackall
|
r3420 | hg ci -m "clear branch name" -d "0 0" | ||
hg co foo | ||||
Matt Mackall
|
r3502 | hg branch | ||
Matt Mackall
|
r3420 | echo bleah > a | ||
hg ci -m "modify a branch" -d "0 0" | ||||
hg merge | ||||
Matt Mackall
|
r3502 | hg branch | ||
Matt Mackall
|
r3420 | HG_MERGE=true hg ci -m "merge" -d "0 0" | ||
hg log | ||||
Matt Mackall
|
r3502 | hg branches | ||
hg branches -q | ||||
Thomas Arendsen Hein
|
r3451 | echo % test for invalid branch cache | ||
hg rollback | ||||
hg tip | ||||