sapling/eden/scm/tests/test-fb-ext-extorder.t
Muir Manders 1dcb7966fc tests: turn on eagerepo for a bunch of tests
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern".

Reviewed By: quark-zju

Differential Revision: D44445379

fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
2023-04-04 08:42:03 -07:00

42 lines
786 B
Perl

#chg-compatible
$ eagerepo
Set up repository
$ hg init repo
$ cd repo
$ enable extorder rebase histedit
$ setconfig extensions.dummyext1="$TESTDIR/dummyext1.py"
$ setconfig extensions.dummyext2="$TESTDIR/dummyext2.py"
Simple Dependency
$ hg id
ext1: uisetup
ext2: uisetup
ext1: extsetup
ext2: extsetup
000000000000
$ readconfig <<EOF
> [extorder]
> dummyext1 = dummyext2
> preferfirst = histedit
> preferlast = rebase
> EOF
$ hg id
ext1: uisetup
ext2: uisetup
ext2: extsetup
ext1: extsetup
000000000000
Conflicting deps
$ setconfig extorder.dummyext2=dummyext1
$ hg id > out.txt 2>&1
[1]
$ grep MercurialExtOrderException: < out.txt
edenscm.ext.extorder.MercurialExtOrderException: extorder: conflicting extension order