##// END OF EJS Templates
tests: remove unneeded -d flags...
tests: remove unneeded -d flags Many tests fixed the commit date of their changesets at '1000000 0' or similar. However testing with "Mon Jan 12 13:46:40 1970 +0000" is not better than testing with "Thu Jan 01 00:00:00 1970 +0000", which is the default run-tests.py installs. Removing the unnecessary flag removes some clutter and will hopefully make it clearer what the tests are really trying to test. Some tests did not even change their output when the dates were changed, in which case the -d flag was truly irrelevant. Dates used in sequence (such as '0 0', '1 0', etc...) were left alone since they may make the test easier to understand.

File last commit:

r11208:2313dc4d default
r12156:4c94b6d0 default
Show More
test-rebase-cache
106 lines | 2.3 KiB | text/plain | TextLexer
/ tests / test-rebase-cache
Benoit Boissinot
strip: invalidate all caches after stripping (fixes issue1951)...
r10547 #!/bin/sh
Yuya Nishihara
tests: fix bashism to load helpers.sh...
r11208 . $TESTDIR/helpers.sh
Matt Mackall
rebase: use helpers.sh in tests
r11198
Benoit Boissinot
strip: invalidate all caches after stripping (fixes issue1951)...
r10547 createrepo() {
rm -rf repo
hg init repo
cd repo
echo "a" > a
hg commit -d '0 0' -A -m 'A'
hg branch branch1
hg commit -d '1 0' -m 'Branch1'
echo "b" > b
hg commit -A -d '2 0' -m 'B'
hg up 0
hg branch branch2
hg commit -d '3 0' -m 'Branch2'
echo "c" > C
hg commit -A -d '4 0' -m 'C'
hg up 2
hg branch -f branch2
echo "d" > d
hg commit -A -d '5 0' -m 'D'
echo "e" > e
hg commit -A -d '6 0' -m 'E'
hg update default
hg branch branch3
hg commit -d '7 0' -m 'Branch3'
echo "f" > f
hg commit -A -d '8 0' -m 'F'
}
echo
createrepo > /dev/null 2>&1
hg --config extensions.hgext.graphlog= glog --template '{rev}:{node|short} {desc} branch: {branches}\n'
echo
echo '% Branches'
hg branches
echo
echo '% Heads'
hg heads --template '{rev}:{node|short} {desc} branch: {branches}\n'
echo
echo '% Rebase part of branch2 (5-6) onto branch3 (8)'
Matt Mackall
rebase: use helpers.sh in tests
r11198 hg --config extensions.hgext.rebase= rebase --detach -s 5 -d 8 | hidebackup
Benoit Boissinot
strip: invalidate all caches after stripping (fixes issue1951)...
r10547
echo
echo '% Branches'
hg branches
echo
echo '% Heads'
hg heads --template '{rev}:{node|short} {desc} branch: {branches}\n'
echo
hg --config extensions.hgext.graphlog= glog --template '{rev}:{node|short} {desc} branch: {branches}\n'
echo
echo '% Rebase head of branch3 (8) onto branch2 (6)'
createrepo > /dev/null 2>&1
hg --config extensions.hgext.graphlog= glog --template '{rev}:{node|short} {desc} branch: {branches}\n'
Matt Mackall
rebase: use helpers.sh in tests
r11198 hg --config extensions.hgext.rebase= rebase --detach -s 8 -d 6 | hidebackup
Benoit Boissinot
strip: invalidate all caches after stripping (fixes issue1951)...
r10547
echo
echo '% Branches'
hg branches
echo
echo '% Heads'
hg heads --template '{rev}:{node|short} {desc} branch: {branches}\n'
echo
hg --config extensions.hgext.graphlog= glog --template '{rev}:{node|short} {desc} branch: {branches}\n'
hg verify -q
echo
echo '% Rebase entire branch3 (7-8) onto branch2 (6)'
createrepo > /dev/null 2>&1
hg --config extensions.hgext.graphlog= glog --template '{rev}:{node|short} {desc} branch: {branches}\n'
Matt Mackall
rebase: use helpers.sh in tests
r11198 hg --config extensions.hgext.rebase= rebase --detach -s 7 -d 6 | hidebackup
Benoit Boissinot
strip: invalidate all caches after stripping (fixes issue1951)...
r10547
echo
echo '% Branches'
hg branches
echo
echo '% Heads'
hg heads --template '{rev}:{node|short} {desc} branch: {branches}\n'
echo
hg --config extensions.hgext.graphlog= glog --template '{rev}:{node|short} {desc} branch: {branches}\n'
hg verify -q