Mercurial > hg
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-bookmarks-strip Wed Nov 05 03:53:34 2008 +0100 @@ -0,0 +1,44 @@ +#!/bin/sh + +echo "[extensions]" >> $HGRCPATH +echo "bookmarks=" >> $HGRCPATH +echo "mq=" >> $HGRCPATH + +hg init + +echo qqq>qqq.txt + +echo % add file +hg add + +echo % commit first revision +hg ci -m 1 -u user -d "1 0" + +echo % set bookmark +hg book test + +echo www>>qqq.txt + +echo % commit second revision +hg ci -m 2 -u usr -d "1 0" + +echo % set bookmark +hg book test2 + +echo % update to -2 +hg update -r -2 + +echo eee>>qqq.txt + +echo % commit new head +hg ci -m 3 -u user -d "1 0" + +echo % bookmarks updated? +hg book + +echo % strip to revision 1 +hg strip 1 2>&1 | sed 's/\(saving bundle to \).*/\1/' + +echo % list bookmarks +hg book +