##// END OF EJS Templates
ssh: skip noise generated by remote shell...
ssh: skip noise generated by remote shell we send a dummy command with known output to get in sync

File last commit:

r1933:7544700f default
r2028:1f1fc418 default
Show More
test-merge7
66 lines | 899 B | text/plain | TextLexer
Matt Mackall
Repair ancestor logic, fix up test cases
r1351 #!/bin/sh
# initial
hg init test-a
cd test-a
cat >test.txt <<"EOF"
1
2
3
EOF
hg add test.txt
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "Initial" -d "1000000 0"
Matt Mackall
Repair ancestor logic, fix up test cases
r1351
# clone
cd ..
hg clone test-a test-b
# change test-a
cd test-a
cat >test.txt <<"EOF"
one
two
three
EOF
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "Numbers as words" -d "1000000 0"
Matt Mackall
Repair ancestor logic, fix up test cases
r1351
# change test-b
cd ../test-b
cat >test.txt <<"EOF"
1
2.5
3
EOF
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "2 -> 2.5" -d "1000000 0"
Matt Mackall
Repair ancestor logic, fix up test cases
r1351
# now pull and merge from test-a
Matt Mackall
Make test-merge7 repeatable
r1352 hg pull ../test-a
Matt Mackall
Repair ancestor logic, fix up test cases
r1351 HGMERGE=merge hg update -m
# resolve conflict
cat >test.txt <<"EOF"
one
two-point-five
three
EOF
rm -f *.orig
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "Merge 1" -d "1000000 0"
Matt Mackall
Repair ancestor logic, fix up test cases
r1351
# change test-a again
cd ../test-a
cat >test.txt <<"EOF"
one
two-point-one
three
EOF
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "two -> two-point-one" -d "1000000 0"
Matt Mackall
Repair ancestor logic, fix up test cases
r1351
# pull and merge from test-a again
cd ../test-b
Matt Mackall
Make test-merge7 repeatable
r1352 hg pull ../test-a
Matt Mackall
Repair ancestor logic, fix up test cases
r1351 HGMERGE=merge hg update --debug -m
Matt Mackall
Make test-merge7 repeatable
r1352 cat test.txt | sed "s% .*%%"
Matt Mackall
Repair ancestor logic, fix up test cases
r1351
hg debugindex .hg/data/test.txt.i
hg log