sapling/tests/test-fb-hgext-tweakdefaults-bookmarks.t
Jun Wu 10bf57de39 prune: use hint framework
Summary:
This allows users to silence the "hide" advice.

In the future, we might want to change "hide/unhide" to only affect visibility
without changing obsolesce. So "strip" is not fully deprecated yet.

Reviewed By: markbt

Differential Revision: D7392131

fbshipit-source-id: 2448d4c91dffce31d29e2dd99078cb555c9a8f8c
2018-04-13 21:51:49 -07:00

28 lines
659 B
Perl

Set up
$ cat >> $HGRCPATH << EOF
> [experimental]
> evolution=all
> [extensions]
> fbamend=
> tweakdefaults=
> EOF
Test hg bookmark works with hidden commits
$ hg init repo1
$ cd repo1
$ touch a
$ hg commit -A a -m a
$ echo 1 >> a
$ hg commit a -m a1
$ hg prune da7a5140a611 -q
hint[strip-hide]: 'hg strip' may be deprecated in the future - use 'hg hide' instead
hint[hint-ack]: use 'hg hint --ack strip-hide' to silence these hints
$ hg bookmark b -r da7a5140a611 -q
Same test but with remotenames enabled
$ . $TESTDIR/require-ext.sh remotenames
$ hg bookmark b2 -r da7a5140a611 -q --config extensions.remotenames=