mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
9a19e06fee
Summary: Move the strip extension to core. Rename the command to `hg debugstrip` as it is not intended for use by users. Users should use `hg hide` instead. Reviewed By: quark-zju Differential Revision: D14185822 fbshipit-source-id: ef096488cb94b72a7bb79f5bf153c064e0555b34
35 lines
716 B
Perl
35 lines
716 B
Perl
$ enable remotenames
|
|
|
|
Test that hg debugstrip -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 debugstrip -qB foo
|
|
bookmark 'foo' deleted
|
|
$ hg log --template "{desc}\n"
|
|
aa
|
|
a
|
|
|
|
Test that hg debugstrip -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 debugstrip -qB foo
|
|
bookmark 'foo' deleted
|
|
$ hg log
|
|
|