mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
3d461ae600
Summary: Enhance check-ext script to be more strict: - Only one foreign extension is allowed: `remotenames` - Require explicit path for in-repo extensions to avoid wrong extensions being tested This would make the test more predicatable since system extensions will be less likely to be imported. Explicit path is better than setting `PYTHONPATH` since `hgext/name.py` could override `hgext3rd/name.py` regardless of `PYTHONPATH`. Test Plan: arc unit Reviewers: phillco, durham, ikostia, #mercurial, stash Reviewed By: stash Subscribers: medson, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D5271430 Signature: t1:5271430:1497861776:7dd35ec7c522cd9b26aa0871cb4306b4f1b8993a
28 lines
558 B
Perl
28 lines
558 B
Perl
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
|
$ export PYTHONPATH
|
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> fastmanifest=$TESTDIR/../fastmanifest
|
|
> EOF
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
|
|
a situation that linkrev needs to be adjusted:
|
|
|
|
$ echo 1 > a
|
|
$ hg commit -A a -m 1
|
|
$ echo 2 > a
|
|
$ hg commit -m 2
|
|
$ hg up 0 -q
|
|
$ echo 2 > a
|
|
$ hg commit -m '2 again' -q
|
|
|
|
annotate calls "introrev", which calls "_adjustlinkrev". in this case,
|
|
"_adjustlinkrev" will fallback to the slow path that needs to call
|
|
manifestctx."readfast":
|
|
|
|
$ hg annotate a
|
|
2: 2
|