test-rawcommit1
33 lines
| 618 B
| text/plain
|
TextLexer
/ tests / test-rawcommit1
|
r800 | #!/bin/sh | ||
|
r591 | hg --debug init | ||
|
r444 | echo this is a1 > a | ||
|
r591 | hg add a | ||
|
r749 | hg commit -m0 -d "0 0" | ||
|
r444 | echo this is b1 > b | ||
|
r591 | hg add b | ||
|
r749 | hg commit -m1 -d "0 0" | ||
|
r591 | hg manifest 1 | ||
|
r444 | echo this is c1 > c | ||
|
r749 | hg rawcommit -p 1 -d "0 0" -m2 c | ||
|
r591 | hg manifest 2 | ||
hg parents | ||||
|
r444 | rm b | ||
|
r749 | hg rawcommit -p 2 -d "0 0" -m3 b | ||
|
r591 | hg manifest 3 | ||
hg parents | ||||
|
r444 | echo this is a22 > a | ||
|
r749 | hg rawcommit -p 3 -d "0 0" -m4 a | ||
|
r591 | hg manifest 4 | ||
hg parents | ||||
|
r444 | echo this is c22 > c | ||
|
r749 | hg rawcommit -p 1 -d "0 0" -m5 c | ||
|
r591 | hg manifest 5 | ||
hg parents | ||||
|
r444 | # merge, but no files changed | ||
|
r749 | hg rawcommit -p 4 -p 5 -d "0 0" -m6 | ||
|
r591 | hg manifest 6 | ||
hg parents | ||||
|
r444 | # no changes what-so-ever | ||
|
r749 | hg rawcommit -p 6 -d "0 0" -m7 | ||
|
r591 | hg manifest 7 | ||
hg parents | ||||