sapling/tests/test-fb-hgext-extorder.t
Durham Goode 8b0b788ba8 hgcommands: print errors to io instead of stderr
Summary:
HgPython::run_hg was printing errors directly to stderr instead of to
the provided io.error. This caused unhandlable output in the -t.py tests. Let's
fix it to output to the provided pipe.

Reviewed By: quark-zju

Differential Revision: D17634721

fbshipit-source-id: f441e7be461193ef54db25e0939b2e67cdf06126
2019-10-02 10:12:19 -07:00

42 lines
846 B
Perl

Set up repository
$ hg init repo
$ cd repo
$ echo "[extensions]" >> .hg/hgrc
$ echo "extorder=" >> .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
MercurialExtOrderException: extorder: conflicting extension order