sapling/tests/test-bookmark-strip.t
Phil Cohen 1f4999ec75 tweakdefaults: move book -D to core
Summary: Continue to move tweakdefaults functionality to core.

Reviewed By: ikostia

Differential Revision: D10376327

fbshipit-source-id: 79a9d08c74e6ec14c83ae641fa2c3a6619da2f76
2018-10-15 10:34:00 -07:00

66 lines
1.2 KiB
Perl

Test bookmark -D
$ cd $TESTTMP
$ hg init book-D
$ cd book-D
$ cat >> .hg/hgrc <<EOF
> [extensions]
> amend=
> strip=
> tweakdefaults=
> [experimental]
> evolution=all
> EOF
$ hg debugbuilddag '+4*2*2*2'
$ hg bookmark -i -r 1 master
$ hg bookmark -i -r 5 feature1
$ hg bookmark -i -r 6 feature2
$ hg log -G -T '{rev} {bookmarks}' -r 'all()'
o 6 feature2
|
| o 5 feature1
| |
o | 4
| |
| o 3
|/
o 2
|
o 1 master
|
o 0
$ hg bookmark -D feature1
bookmark 'feature1' deleted
2 changesets pruned
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 log -G -T '{rev} {bookmarks}' -r 'all()' --hidden
o 6 feature2
|
| x 5
| |
o | 4
| |
| x 3
|/
o 2
|
o 1 master
|
o 0
$ hg bookmark -D feature2 --config extensions.amend=!
saved backup bundle to $TESTTMP/book-D/.hg/strip-backup/1c4dfc7a8985-4027cf08-backup.hg (glob)
bookmark 'feature2' deleted
$ hg log -G -T '{rev} {bookmarks}' -r 'all()' --hidden
x 4
|
x 3
|
o 2
|
o 1 master
|
o 0