mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
218c83d574
Summary: In a future diff we'll be removing tags. The most prevalent tag is 'tip', which shows up in a ton of test output. Let's drop that tag first, so we can safely update the tests before we drop tags entirely. Reviewed By: xavierd Differential Revision: D18995058 fbshipit-source-id: 8c63710cd4ed567ea24e32724b8660f9006a61f1
44 lines
855 B
Perl
44 lines
855 B
Perl
#chg-compatible
|
|
|
|
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
|
|
|
|
$ cat >> .hg/hgrc << EOF
|
|
> [extorder]
|
|
> dummyext1 = dummyext2
|
|
> preferfirst = histedit
|
|
> preferlast = rebase
|
|
> EOF
|
|
|
|
$ hg id
|
|
ext1: uisetup
|
|
ext2: uisetup
|
|
ext2: extsetup
|
|
ext1: extsetup
|
|
000000000000
|
|
|
|
Conflicting deps
|
|
|
|
$ echo "dummyext2 = dummyext1" >> .hg/hgrc
|
|
$ hg id > out.txt 2>&1
|
|
[1]
|
|
$ grep MercurialExtOrderException: < out.txt
|
|
MercurialExtOrderException: extorder: conflicting extension order
|