mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
Summary: There was a change in core mercurial b319e3173a9534a2b7750b69ef446a803c3145ff that catches all exception from uisetup and extsetup. Let's throw subclass of BaseException in this case. Test Plan: arc unit Reviewers: #mercurial, mjpieters Reviewed By: mjpieters Subscribers: mjpieters, medson, #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D5236650 Signature: t1:5236650:1497363414:9bbde3cabb696bb77a7ffddcb576923e5743c993
42 lines
894 B
Perl
42 lines
894 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 > out.txt 2>&1
|
|
[1]
|
|
$ grep MercurialExtOrderException < out.txt
|
|
hgext_extorder.MercurialExtOrderException: extorder: conflicting extension order
|