comparison tests/test-bookmarks-rebase @ 7317:98408cb74137

bookmarks: Test if rebase works with bookmarks Add a test that tests if rebase works fine with bookmarks.
author Alexander Solovyov <piranha@piranha.org.ua>
date Thu, 06 Nov 2008 10:31:09 +0100
parents
children 6c82beaaa11a
comparison
equal deleted inserted replaced
7316:9737041646bc 7317:98408cb74137
1 #!/bin/sh
2
3 echo "[extensions]" >> $HGRCPATH
4 echo "rebase=" >> $HGRCPATH
5 echo "bookmarks=" >> $HGRCPATH
6
7 cleanoutput () {
8 sed -e 's/\(Rebase status stored to\).*/\1/' \
9 -e 's/\(Rebase status restored from\).*/\1/' \
10 -e 's/\(saving bundle to \).*/\1/'
11 }
12
13 echo % initialize repository
14 hg init
15
16 echo 'a' > a
17 hg ci -A -d '0 0' -u test -m "0"
18
19 echo 'b' > b
20 hg ci -A -d '0 0' -u test -m "1"
21
22 hg up 0
23 echo 'c' > c
24 hg ci -A -d '0 0' -u test -m "2"
25
26 echo 'd' > d
27 hg ci -A -d '0 0' -u test -m "3"
28
29 hg bookmark -r 1 one
30 hg bookmark -r 3 two
31
32 echo % bookmark list
33 hg bookmark
34
35 echo % rebase
36 hg rebase -s two -d one 2>&1 | cleanoutput
37
38 hg log