sapling/tests/test-fb-hgext-smartlog-inhibit.t
Phil Cohen de4ccf5688 restack: remove old pre-obsolesence fixup
Summary:
Per discussion with @[100000771202578:kulshrax] [1], the new behavior is enabled everywhere, and is also vastly preferable. Let's nuke the old code, as well as the config declaration and all places that manually enabled it.

[1]

> also, it looks like the pre-restack logic is still in that function, and the modern restack code path is still gated by a config option
> we should probably remove that

Reviewed By: kulshrax

Differential Revision: D7031365

fbshipit-source-id: dcc620c292bac03fdc0aa144546d4628bb673046
2018-04-13 21:51:13 -07:00

41 lines
812 B
Perl

$ cat >> $HGRCPATH << EOF
> [extensions]
> fbamend=
> inhibit=
> smartlog=
> [experimental]
> evolution = createmarkers
> EOF
Test that changesets with visible precursors are rendered as x's, even
with the inhibit extension enabled.
$ 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
warning: the changeset's children were left behind
(use 'hg restack' to rebase them)
$ 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
|
~