##// END OF EJS Templates
tests: add hack to avoid problem with graphlog in unified tests
tests: add hack to avoid problem with graphlog in unified tests

File last commit:

r11208:2313dc4d default
r12338:b016fc1c default
Show More
test-rebase-conflicts
74 lines | 1.1 KiB | text/plain | TextLexer
/ tests / test-rebase-conflicts
Stefano Tortarolo
Add rebase extension
r6906 #!/bin/sh
Yuya Nishihara
tests: fix bashism to load helpers.sh...
r11208 . $TESTDIR/helpers.sh
Matt Mackall
rebase: use helpers.sh in tests
r11198
Stefano Tortarolo
Add rebase extension
r6906 echo "[extensions]" >> $HGRCPATH
echo "graphlog=" >> $HGRCPATH
echo "rebase=" >> $HGRCPATH
hg init a
cd a
echo 'c1' >common
hg add common
Martin Geisler
tests: removed redundant "-u test" from test scripts...
r8168 hg commit -d '0 0' -m "C1"
Stefano Tortarolo
Add rebase extension
r6906
echo 'c2' >>common
Martin Geisler
tests: removed redundant "-u test" from test scripts...
r8168 hg commit -d '1 0' -m "C2"
Stefano Tortarolo
Add rebase extension
r6906
echo 'c3' >>common
Martin Geisler
tests: removed redundant "-u test" from test scripts...
r8168 hg commit -d '2 0' -m "C3"
Stefano Tortarolo
Add rebase extension
r6906
hg update -C 1
echo 'l1' >>extra
hg add extra
Martin Geisler
tests: removed redundant "-u test" from test scripts...
r8168 hg commit -d '3 0' -m "L1"
Stefano Tortarolo
Add rebase extension
r6906
sed -e 's/c2/l2/' common > common.new
mv common.new common
Martin Geisler
tests: removed redundant "-u test" from test scripts...
r8168 hg commit -d '4 0' -m "L2"
Stefano Tortarolo
Add rebase extension
r6906
Stefano Tortarolo
rebase: avoid redundant merges (issue1301)
r7278 echo 'l3' >> extra2
hg add extra2
Martin Geisler
tests: removed redundant "-u test" from test scripts...
r8168 hg commit -d '5 0' -m "L3"
Stefano Tortarolo
rebase: avoid redundant merges (issue1301)
r7278
Stefano Tortarolo
Add rebase extension
r6906 hg glog --template '{rev}: {desc}\n'
echo
echo '% Try to call --continue'
hg rebase --continue
echo
echo '% Conflicting rebase'
hg rebase -s 3 -d 2
echo
echo '% Try to continue without solving the conflict'
hg rebase --continue
echo
echo '% Conclude rebase'
Stefano Tortarolo
rebase: avoid redundant merges (issue1301)
r7278 echo 'resolved merge' >common
Stefano Tortarolo
Add rebase extension
r6906 hg resolve -m common
Matt Mackall
rebase: use helpers.sh in tests
r11198 hg rebase --continue | cleanrebase
Stefano Tortarolo
Add rebase extension
r6906
Stefano Tortarolo
rebase: avoid redundant merges (issue1301)
r7278 hg glog --template '{rev}: {desc}\n'
Stefano Tortarolo
Add rebase extension
r6906
Stefano Tortarolo
rebase: avoid redundant merges (issue1301)
r7278 echo
echo '% Check correctness'
echo ' - Rev. 0'
hg cat -r 0 common
echo ' - Rev. 1'
hg cat -r 1 common
echo ' - Rev. 2'
hg cat -r 2 common
echo ' - Rev. 3'
hg cat -r 3 common
echo ' - Rev. 4'
hg cat -r 4 common
echo ' - Rev. 5'
hg cat -r 5 common