sapling/hgext3rd
Jun Wu 3d461ae600 check-ext: make checks stricter
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
2017-06-19 08:02:38 -07:00
..
absorb absorb: fix test 2017-06-13 07:17:36 -07:00
fastannotate annotate: use keyword arguments for skiprevs and diffopts 2017-06-01 08:58:00 -07:00
fbamend codemod: replace evolve by fbamend 2017-06-16 15:50:01 -07:00
lfs lfs: add retry logic for transferring a single object 2017-06-16 10:54:07 -07:00
p4fastimport p4fastimport: implement transaction.find and .replace 2017-06-06 19:54:29 -07:00
__init__.py debian: Do not package hgext3rd/__init__.py 2016-12-19 16:34:49 -08:00
arcdiff.py arcdiff: use absolute paths 2017-01-20 00:24:45 -08:00
backups.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
bundle2hooks.py check-ext: make checks stricter 2017-06-19 08:02:38 -07:00
catnotate.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
checkmessagehook.py checkmessagehook: use reposetup to setup a hook 2017-03-02 01:05:19 -08:00
chistedit.py chistedit: fix lint error 2017-05-23 15:38:09 -07:00
cleanobsstore.py cleanobsstore: write cleanobsstore output to stderr 2017-04-26 03:55:16 -07:00
commitextras.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
conflictinfo.py conflictinfo: fix test 2017-06-13 07:15:54 -07:00
copytrace.py copytrace: fix logging 2017-06-15 04:08:49 -07:00
debugcommitmessage.py debugcommitmessage: fix tests 2017-06-19 03:01:18 -07:00
debuginhibit.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
dialect.py testedwith: change testedwith to "ships-with-fb-hgext" 2016-11-29 13:24:07 +00:00
directaccess.py test-inhibit: fix the test 2017-05-30 12:56:20 -07:00
dirsync.py dirsync: use _fileset 2017-05-19 21:39:47 -07:00
edrecord.py edrecord: allow specifying a different editor for chunk selection 2017-04-06 16:49:27 -07:00
errorredirect.py errorredirect: log and fallback to old error handler when appropriate 2017-04-04 10:27:30 -07:00
extorder.py extorder: fix test 2017-06-13 09:13:41 -07:00
extutil.py extutil: add unit tests for runbgcommand 2017-04-11 11:25:40 -07:00
fastlog.py fastlog: fix ScmQuery request parameter name 2017-04-12 13:51:18 -07:00
fastpartialmatch.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
fbconduit.py conduit: added correct Content-Type header for conduit queries 2017-05-17 13:50:37 -07:00
fbhistedit.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
fbmetaedit.py fbamend: merge fbmetaedit 2017-06-16 14:12:32 -07:00
fbshow.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
fixcorrupt.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
generic_bisect.py fastpartialmatch: use bisect to quickly find matching revisions 2017-02-02 05:12:10 -08:00
githelp.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
gitlookup.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
gitrevset.py gitlookup: fix gitnode() template and revset 2017-03-29 07:13:41 -07:00
grepdiff.py grepdiff: fix to match upstream 2017-03-12 12:49:18 -07:00
grpcheck.py testedwith: change testedwith to "ships-with-fb-hgext" 2016-11-29 13:24:07 +00:00
hiddenerror.py hiddenerror: fix out of bounds error 2017-02-25 15:26:19 -08:00
inhibit.py codemod: replace evolve by fbamend 2017-06-16 15:50:01 -07:00
inhibitwarn.py inhibitwarn: nuke the extension 2017-06-16 14:40:31 -07:00
linkrevcache.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
logginghelper.py logginghelper: log obsstore size 2017-04-25 01:09:28 -07:00
mergedriver.py codemod: get rid of ui.backupconfig 2017-03-17 19:42:50 -07:00
morecolors.py morecolors: new extension to add more colors to outputs 2017-04-25 17:03:26 -07:00
morestatus.py morestatus: make conflict paths relative 2017-05-17 07:13:41 -07:00
myparent.py templates: fix help messages for template keywords 2017-01-19 12:52:54 -08:00
nointerrupt.py nointerrupt: allowing attendance to default to True 2017-04-24 10:00:31 -07:00
obsshelve.py obsshelve: get rid of isobsshelve function and its uses 2017-06-06 05:50:19 -07:00
ownercheck.py ownercheck: new extension to prevent operations on repos not owned 2016-07-26 13:10:15 +01:00
patchpython.py patchpython: fix test-check tests 2016-10-20 16:03:31 +01:00
patchrmdir.pyx patchrmdir: new extension to workaround rmdir kernel issues 2017-03-15 18:55:48 -07:00
perftweaks.py perftweaks: remove newhiddencache 2017-05-30 03:42:56 -07:00
phabdiff.py templater: fixup for templater changes upstream 2017-04-18 13:04:11 -07:00
phabstatus.py phabstatus: fail gracefully if necessary arcrc settings are missing 2017-03-30 11:55:39 -07:00
phrevset.py phrevset: return baseset instead of list 2017-04-24 09:47:52 -07:00
progressfile.py progressfile: fix trailing space 2017-04-26 14:19:39 -07:00
pullcreatemarkers.py pyflakes: fix all pyflakes issues 2016-11-25 00:23:21 +00:00
pushrebase.py pushrebase: make pretxnchangegroup and changegroup hook arguments consistent with mercurial hook documentation 2017-06-14 16:29:16 -07:00
pushvars.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00
rage.py rage: add a hack to make rage work on osx 2017-06-15 04:20:52 -07:00
remoteid.py remoteid: move to hgext3rd 2017-05-23 11:47:04 -07:00
reset.py codemod: replace evolve by fbamend 2017-06-16 15:50:01 -07:00
sampling.py sampling: fix comment 2017-02-07 00:39:26 -08:00
sigtrace.py sigtrace: new extension provides stack traces on signal 2017-03-07 17:25:40 -08:00
simplecache.py testedwith: change testedwith to "ships-with-fb-hgext" 2016-11-29 13:24:07 +00:00
smartlog.py codemod: replace evolve by fbamend 2017-06-16 15:50:01 -07:00
sparse.py sparse: switch to using repr for hash computation 2017-05-24 09:24:19 -07:00
sshaskpass.py sshaskpass: do not import mercurial 2017-01-05 17:04:34 +00:00
traceprof.pyx traceprof: implement frame deduplication 2017-05-23 11:50:33 -07:00
traceprofimpl.cpp traceprof: store raw Python code object 2017-05-23 11:51:10 -07:00
tweakdefaults.py tweakdefaults: add --inactive flag to update command 2017-06-14 16:42:39 -07:00
uncommit.py dirstate: switch to new parentchange context 2017-05-22 13:38:37 -07:00
upgradegeneraldelta.py revlog: rename revlog constants 2017-05-21 17:09:08 -07:00
whereami.py commands: update to use registrar instead of cmdutil 2017-05-22 13:38:37 -07:00