sapling/hgext
Kostia Balytskyi e6586e0ab8 lz4revlog: make it side-effect free at import time
Summary:
Mercurial extensions are expected to be side-effect free at import time.

Move setup code to `uisetup` so they only get executed if the extension is enabled.

This helps chg's case where `lz4revlog` is always pre-imported.

Reviewed By: quark-zju

Differential Revision: D13118788

fbshipit-source-id: a7801057c01b6918bb4902a326b92f1c17f2707a
2018-11-21 06:31:03 -08:00
..
absorb commands: update help summary text 2018-11-07 19:59:47 -08:00
amend commands: update help summary text 2018-11-07 19:59:47 -08:00
commitcloud commitcloud: print message in hg sl --all when commits are omitted 2018-11-21 06:01:46 -08:00
convert convert: fix convert in non-revlog backed repos 2018-10-17 08:58:58 -07:00
extlib don't swallow Python errors in tree iteration 2018-11-20 15:00:43 -08:00
fastannotate hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
fastmanifest help: new default help 2018-10-15 09:37:18 -07:00
fsmonitor fsmonitor: add migration to toggle tracking ignored files 2018-11-03 11:12:56 -07:00
hgevents hgevents: move hg.transaction event to the extension 2018-08-23 15:36:03 -07:00
hggit hggit: don't scan the entire changelog during hg gexport 2018-10-26 11:29:46 -07:00
hgsubversion hgsubversion: improve performance with treemanifests 2018-11-16 11:06:09 -08:00
highlight codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
infinitepush commitcloud: use repo.sharedvfs and repo.localvfs instead of repo.vfs 2018-09-28 07:23:02 -07:00
lfs lfs: log upload size and time 2018-11-14 11:05:07 -08:00
p4fastimport codemod: add copyright headers 2018-10-26 15:09:12 -07:00
perfsuite codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
pushrebase record updated onto rev 2018-11-12 04:17:37 -08:00
remotefilelog tests: add a test-check test that runs fix-code.py 2018-11-15 18:54:06 -08:00
repogenerator repogenerator: allow starting rev to be configured 2018-05-31 12:33:26 -07:00
treemanifest remotefilelog: move mutablemanifeststore into shallowutil 2018-11-11 21:37:52 -08:00
__init__.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
arcdiff.py Fix handling of --rev when using hg diff --since-last-submit-o2 2018-10-04 19:03:09 -07:00
automv.py hg: fix --no-move-detection argument handling 2018-10-18 16:17:08 -07:00
blackbox.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
catnotate.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
checkmessagehook.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
chistedit.py tidy up command usage 2018-10-19 06:51:42 -07:00
churn.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
cleanobsstore.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
clienttelemetry.py clienttelemetry: use clienttelemetry when recording wireproto requests 2018-10-02 05:05:41 -07:00
clindex.pyx perftweaks: fold nodemap lag logging into the clindex extension 2018-10-18 09:04:34 -07:00
clonebundles.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
commitextras.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
configwarn.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
conflictinfo.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
copytrace.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
crdump.py debugcrdump: add --nobinary flag to avoid dumping binaries 2018-11-09 08:50:37 -08:00
debugcommitmessage.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
debugshell.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
dialect.py i18n: support ngettext for pluralized strings 2018-11-06 03:19:01 -08:00
directaccess.py directaccess: optimize performance 2018-10-27 09:46:37 -07:00
dirsync.py dirsync: do not crash rebase when cwd goes missing 2018-07-30 08:05:07 -07:00
drop.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
edrecord.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
eol.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
errorredirect.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
extdiff.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
extorder.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
extutil.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
fastlog.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
fbconduit.py handle invalid git node while translating git node to hg node 2018-09-25 16:50:53 -07:00
fbhistedit.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
fetch.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
fixcorrupt.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
generic_bisect.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
githelp.py hgext: remove unused extensions 2018-10-20 19:08:43 -07:00
gitlookup.py hggit: change git-mapfile to be append only 2018-10-24 08:39:19 -07:00
gitrevset.py handle invalid git node while translating git node to hg node 2018-09-25 16:50:53 -07:00
globalrevs.py globalrevs: add support for interoperability with 'svnrev' revsets 2018-11-06 16:42:10 -08:00
gpg.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
grepdiff.py revset: increase weights of predicates that use filter 2018-06-22 07:40:08 -07:00
grpcheck.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
hgsql.py hgsql: set client-side timeout 2018-10-30 19:28:50 -07:00
hiddenerror.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
histedit.py commands: update help summary text 2018-11-07 19:59:47 -08:00
infinitepushbackup.py commitcloud: print message in hg sl --all when commits are omitted 2018-11-21 06:01:46 -08:00
interactiveui.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
journal.py commands: update help summary text 2018-11-07 19:59:47 -08:00
linkrevcache.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
logginghelper.py logginghelper: log what dirstate is being used 2018-08-15 14:50:37 -07:00
lz4revlog.py lz4revlog: make it side-effect free at import time 2018-11-21 06:31:03 -08:00
mergedriver.py mergedriver: fix the invalidation flakiness by setting sys.dont_write_bytecode 2018-06-29 10:47:38 -07:00
morecolors.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
morestatus.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
myparent.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
nointerrupt.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
ownercheck.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
patchbomb.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
patchrmdir.pyx codemod: use byte strings in cython files 2018-07-26 09:53:23 -07:00
phabdiff.py phabdiff: fix empty reviewers template 2018-06-22 15:50:39 -07:00
phabstatus.py tests: fix legitimate test-check-code.t failures 2018-07-02 23:50:56 -07:00
phrevset.py phrevset: fix converting Diff ids for landed svn commits 2018-10-17 10:01:18 -07:00
progressfile.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
pullcreatemarkers.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
purge.py commands: update help summary text 2018-11-07 19:59:47 -08:00
rage.py hg rage: add environment variables to the output 2018-11-13 10:14:13 -08:00
rebase.py rebase: always return 0 on noop rebase 2018-11-13 16:35:31 -08:00
remotenames.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
reset.py reset: remove "resetting without an active bookmark" message 2018-10-24 13:21:04 -07:00
sampling.py lfs: log upload size and time 2018-11-14 11:05:07 -08:00
schemes.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
share.py share: move share extension's patching to core 2018-09-28 07:23:00 -07:00
shelve.py commands: update help summary text 2018-11-07 19:59:47 -08:00
sigtrace.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
simplecache.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
smartlog.py commands: include logopts for smartlog 2018-11-14 16:24:01 -08:00
sparse.py sparse: drop mercurial.sparse 2018-10-30 19:22:43 -07:00
sshaskpass.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
stablerev.py tests: fix gendoc warning 2018-11-13 12:13:33 -08:00
stat.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
strip.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
traceprof.pyx profiling: make the section name a variable 2018-09-21 14:37:23 -07:00
transplant.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00
tweakdefaults.py rebase: always return 0 on noop rebase 2018-11-13 16:35:31 -08:00
undo.py commands: update help summary text 2018-11-07 19:59:47 -08:00
whereami.py codemod: add copyright headers 2018-10-26 15:09:12 -07:00
win32mbcs.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
win32text.py hgext: use repo.localvfs instead of repo.vfs 2018-09-28 07:23:01 -07:00