2015-12-30 19:41:38 +03:00
|
|
|
> echo "[extensions]" >> $HGRCPATH
|
2018-01-03 17:15:47 +03:00
|
|
|
> echo "remotenames=" >> $HGRCPATH
|
2015-12-30 19:41:38 +03:00
|
|
|
> echo "strip=" >> $HGRCPATH
|
|
|
|
|
|
|
|
Test that hg strip -B stops at remotenames
|
|
|
|
$ hg init server
|
|
|
|
$ hg clone -q server client
|
|
|
|
$ cd client
|
|
|
|
$ echo x > x
|
|
|
|
$ hg commit -Aqm a
|
|
|
|
$ echo a > a
|
|
|
|
$ hg commit -Aqm aa
|
|
|
|
$ hg phase -p
|
|
|
|
$ hg push -q --to master --create
|
|
|
|
$ echo b > b
|
|
|
|
$ hg commit -Aqm bb
|
|
|
|
$ hg book foo
|
|
|
|
$ hg strip -qB foo
|
|
|
|
bookmark 'foo' deleted
|
|
|
|
$ hg log --template "{desc}\n"
|
|
|
|
aa
|
|
|
|
a
|
|
|
|
|
|
|
|
Test that hg strip -B deletes bookmark even if there is a remote bookmark
|
|
|
|
$ hg init server
|
|
|
|
$ hg clone -q server client
|
|
|
|
$ cd client
|
|
|
|
$ echo x > x
|
|
|
|
$ hg commit -Aqm a
|
|
|
|
$ hg phase -p
|
|
|
|
$ hg push -q --to master --create
|
|
|
|
$ hg book foo
|
|
|
|
$ hg strip -qB foo
|
|
|
|
bookmark 'foo' deleted
|
|
|
|
$ hg log
|
|
|
|
|