##// END OF EJS Templates
tests: fix bashism to load helpers.sh...
tests: fix bashism to load helpers.sh `source` isn't available at POSIX sh.

File last commit:

r11208:2313dc4d default
r11208:2313dc4d default
Show More
test-rebase-rename
55 lines | 1.0 KiB | text/plain | TextLexer
/ tests / test-rebase-rename
Stefano Tortarolo
rebase: don't lose rename/copy data (Issue1423)
r7954 #!/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
rebase: don't lose rename/copy data (Issue1423)
r7954 echo "[extensions]" >> $HGRCPATH
echo "rebase=" >> $HGRCPATH
echo "[diff]" >> $HGRCPATH
echo "git=1" >> $HGRCPATH
BASE=`pwd`
hg init repo1
cd repo1
echo "a">a
hg commit -Am "A" --date '0 0'
echo "b"> b
hg commit -Am "B" --date '1 0'
hg up -C 0
hg mv a a-renamed
hg commit -m 'rename A' --date '2 0'
echo
echo '% Rename is tracked'
hg log -p -r tip --template '{rev}:{desc}\n'
echo '% Rebase the revision containing the rename'
Matt Mackall
rebase: use helpers.sh in tests
r11198 hg rebase -s 2 -d 1 --quiet | cleanrebase
Stefano Tortarolo
rebase: don't lose rename/copy data (Issue1423)
r7954
echo
echo '% Rename is not lost'
hg log -p -r tip --template '{rev}:{desc}\n'
cd $BASE
rm -rf repo1
hg init repo1
cd repo1
echo "a">a
hg commit -Am "A" --date '0 0'
echo "b"> b
hg commit -Am "B" --date '1 0'
hg up -C 0
hg cp a a-copied
hg commit -m 'copy A' --date '2 0'
echo
echo '% Copy is tracked'
hg log -p -r tip --template '{rev}:{desc}\n'
echo '% Rebase the revision containing the copy'
Matt Mackall
rebase: use helpers.sh in tests
r11198 hg rebase -s 2 -d 1 --quiet | cleanrebase
Stefano Tortarolo
rebase: don't lose rename/copy data (Issue1423)
r7954
echo
echo '% Copy is not lost'
hg log -p -r tip --template '{rev}:{desc}\n'