sapling/tests/test-fb-hgext-smartlog-inhibit.t
Saurabh Singh 6317ba0ca2 amend: replace with the fbamend extension
Summary:
The functionality we care about is provided by the `fbamend`
extension. Therefore, lets replace the `amend` extension with the `fbamend`
extension.

Reviewed By: farnz

Differential Revision: D10320739

fbshipit-source-id: 5700d39f488777fcc4033f60ce0a51cda15ef2ad
2018-10-11 06:59:23 -07:00

39 lines
842 B
Perl

$ cat >> $HGRCPATH << EOF
> [extensions]
> amend=
> smartlog=
> [experimental]
> evolution = createmarkers
> EOF
Test that changesets with visible precursors are rendered as x's
$ hg init repo
$ cd repo
$ hg debugbuilddag +4
$ hg book -r 3 test
$ hg up 1
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg amend -m "amended" --no-rebase
hint[amend-restack]: descendants of 66f7d451a68b are left behind - use 'hg restack' to rebase them
hint[hint-ack]: use 'hg hint --ack amend-restack' to silence these hints
$ hg smartlog -T '{rev} {bookmarks}'
@ 4
|
| o 3 test
| |
| o 2
| |
| x 1
|/
o 0
$ hg unamend
$ hg up 2
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg smartlog -T '{rev} {bookmarks}'
o 3 test
|
@ 2
|
~