sapling/tests/test-extorder.t
Jun Wu 8a3a99ba21 hgext: move single file extensions to hgext3rd
Summary:
Be a better citizen under system python path.

Fix all tests issues and change setup.py to use glob pattern to include
all extensions.

Test Plan:
Run tests and `make local`.
Also build and install the package and run `hg sl` in major repos.

Reviewers: #mercurial, ttung, rmcelroy

Reviewed By: rmcelroy

Subscribers: rmcelroy, durham, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3534311

Signature: t1:3534311:1468275426:fe122646c8bd6c541e1889e73e9df28f86747ff2
2016-07-08 13:15:42 +01:00

41 lines
799 B
Perl

Set up repository
$ hg init repo
$ cd repo
$ echo "[extensions]" >> .hg/hgrc
$ echo "extorder = $TESTDIR/../hgext3rd/extorder.py" >> .hg/hgrc
$ echo "rebase =" >> .hg/hgrc
$ echo "dummyext1 = $TESTDIR/dummyext1.py" >> .hg/hgrc
$ echo "dummyext2 = $TESTDIR/dummyext2.py" >> .hg/hgrc
$ echo "histedit =" >> .hg/hgrc
Simple Dependency
$ hg id
ext1: uisetup
ext2: uisetup
ext1: extsetup
ext2: extsetup
000000000000 tip
$ cat >> .hg/hgrc << EOF
> [extorder]
> dummyext1 = dummyext2
> preferfirst = histedit
> preferlast = rebase
> EOF
$ hg id
ext1: uisetup
ext2: uisetup
ext2: extsetup
ext1: extsetup
000000000000 tip
Conflicting deps
$ echo "dummyext2 = dummyext1" >> .hg/hgrc
$ hg id
abort: extorder: conflicting extension order
[255]