dispatch: preimport more modules for chg server

Summary: There are some modules missed in the preimport list. Add them.

Reviewed By: xavierd

Differential Revision: D18957117

fbshipit-source-id: 254384f0bcafd52421fb22dc696b3a6a1fb98537
This commit is contained in:
Jun Wu 2019-12-13 11:47:27 -08:00 committed by Facebook Github Bot
parent 1977ca8cfd
commit 5227c3c9a4

View File

@ -175,6 +175,7 @@ def _preimportmodules():
"dirstate",
"dirstateguard",
"discovery",
"eden_dirstate",
"exchange",
"filelog",
"filemerge",
@ -224,6 +225,7 @@ def _preimportmodules():
"sshpeer",
"sshserver",
"sslutil",
"statprof",
"store",
"streamclone",
"tags",
@ -250,6 +252,7 @@ def _preimportmodules():
"chistedit",
"clienttelemetry",
"clindex",
"commitcloud",
"conflictinfo",
"convert",
"copytrace",
@ -281,6 +284,7 @@ def _preimportmodules():
"lz4revlog",
"mergedriver",
"morestatus",
"myparent",
"patchrmdir",
"phabdiff",
"phabstatus",
@ -303,14 +307,18 @@ def _preimportmodules():
"smartlog",
"sparse",
"sshaskpass",
"stablerev",
"stat",
"traceprof",
"treemanifest",
"tweakdefaults",
"undo",
]
for name in coremods:
__import__("edenscm.mercurial.%s" % name)
modnames = ["edenscm.mercurial.%s" % name for name in coremods] + [
"edenscm.hgext.fastannotate.support"
]
for name in modnames:
__import__(name)
for extname in extmods:
extensions.preimport(extname)