test-rawcommit1
33 lines
| 683 B
| text/plain
|
TextLexer
/ tests / test-rawcommit1
|
r444 | #!/bin/sh -x | ||
|
r591 | hg --debug init | ||
|
r444 | echo this is a1 > a | ||
|
r591 | hg add a | ||
hg commit -t0 -d "0 0" -u user | ||||
|
r444 | echo this is b1 > b | ||
|
r591 | hg add b | ||
hg commit -t1 -d "0 0" -u user | ||||
hg manifest 1 | ||||
|
r444 | echo this is c1 > c | ||
|
r591 | hg rawcommit -p 1 -d "0 0" -u user -t2 c | ||
hg manifest 2 | ||||
hg parents | ||||
|
r444 | rm b | ||
|
r591 | hg rawcommit -p 2 -d "0 0" -u user -t3 b | ||
hg manifest 3 | ||||
hg parents | ||||
|
r444 | echo this is a22 > a | ||
|
r591 | hg rawcommit -p 3 -d "0 0" -u user -t4 a | ||
hg manifest 4 | ||||
hg parents | ||||
|
r444 | echo this is c22 > c | ||
|
r591 | hg rawcommit -p 1 -d "0 0" -u user -t5 c | ||
hg manifest 5 | ||||
hg parents | ||||
|
r444 | # merge, but no files changed | ||
|
r591 | hg rawcommit -p 4 -p 5 -d "0 0" -u user -t6 | ||
hg manifest 6 | ||||
hg parents | ||||
|
r444 | # no changes what-so-ever | ||
|
r591 | hg rawcommit -p 6 -d "0 0" -u user -t7 | ||
hg manifest 7 | ||||
hg parents | ||||