2019-02-25 14:50:46 +03:00
|
|
|
$ enable remotenames
|
2015-12-30 19:41:38 +03:00
|
|
|
|
2019-02-25 14:50:46 +03:00
|
|
|
Test that hg debugstrip -B stops at remotenames
|
2015-12-30 19:41:38 +03:00
|
|
|
$ 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
|
2019-02-25 14:50:46 +03:00
|
|
|
$ hg debugstrip -qB foo
|
2015-12-30 19:41:38 +03:00
|
|
|
bookmark 'foo' deleted
|
|
|
|
$ hg log --template "{desc}\n"
|
|
|
|
aa
|
|
|
|
a
|
|
|
|
|
2019-02-25 14:50:46 +03:00
|
|
|
Test that hg debugstrip -B deletes bookmark even if there is a remote bookmark
|
2015-12-30 19:41:38 +03:00
|
|
|
$ 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
|
2019-02-25 14:50:46 +03:00
|
|
|
$ hg debugstrip -qB foo
|
2015-12-30 19:41:38 +03:00
|
|
|
bookmark 'foo' deleted
|
|
|
|
$ hg log
|
|
|
|
|