view tests/test-bookmarks-strip @ 12611:1f6bd49383b3 stable

Added signature for changeset 93d8bff78c96
author Matt Mackall <mpm@selenic.com>
date Fri, 01 Oct 2010 10:18:57 -0500
parents 741290486877
children
line wrap: on
line source

#!/bin/sh

. $TESTDIR/helpers.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 | hidebackup

echo % list bookmarks
hg book

echo '% test immediate rollback and reentrancy issue'
echo "mq=!" >> $HGRCPATH
hg init repo
cd repo
echo a > a
hg ci -Am adda
echo b > b
hg ci -Am addb
hg bookmarks markb
hg rollback
hg bookmarks
hg bookmarks markb
hg bookmarks
cd ..