Mercurial > hg
comparison tests/test-bookmarks-strip @ 7316:9737041646bc
bookmarks: Use dirstate to determine the current node in addchangegroup
Using the changectx might result in a lookup error during the strip command.
Thefore we use the current dirstate to get the parents of the working directory.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Wed, 05 Nov 2008 03:53:34 +0100 |
parents | |
children | 12e5149cafca |
comparison
equal
deleted
inserted
replaced
7312:82f80c16fc16 | 7316:9737041646bc |
---|---|
1 #!/bin/sh | |
2 | |
3 echo "[extensions]" >> $HGRCPATH | |
4 echo "bookmarks=" >> $HGRCPATH | |
5 echo "mq=" >> $HGRCPATH | |
6 | |
7 hg init | |
8 | |
9 echo qqq>qqq.txt | |
10 | |
11 echo % add file | |
12 hg add | |
13 | |
14 echo % commit first revision | |
15 hg ci -m 1 -u user -d "1 0" | |
16 | |
17 echo % set bookmark | |
18 hg book test | |
19 | |
20 echo www>>qqq.txt | |
21 | |
22 echo % commit second revision | |
23 hg ci -m 2 -u usr -d "1 0" | |
24 | |
25 echo % set bookmark | |
26 hg book test2 | |
27 | |
28 echo % update to -2 | |
29 hg update -r -2 | |
30 | |
31 echo eee>>qqq.txt | |
32 | |
33 echo % commit new head | |
34 hg ci -m 3 -u user -d "1 0" | |
35 | |
36 echo % bookmarks updated? | |
37 hg book | |
38 | |
39 echo % strip to revision 1 | |
40 hg strip 1 2>&1 | sed 's/\(saving bundle to \).*/\1/' | |
41 | |
42 echo % list bookmarks | |
43 hg book | |
44 |