##// END OF EJS Templates
exthelper: add some semi-useful trace logs...
Augie Fackler -
r42507:c07dcf7a default
parent child Browse files
Show More
@@ -15,9 +15,12 b' from . import ('
15 15 commands,
16 16 error,
17 17 extensions,
18 pycompat,
18 19 registrar,
19 20 )
20 21
22 from hgdemandimport import tracing
23
21 24 class exthelper(object):
22 25 """Helper for modular extension setup
23 26
@@ -135,6 +138,7 b' class exthelper(object):'
135 138 for cont, funcname, wrapper in self._functionwrappers:
136 139 extensions.wrapfunction(cont, funcname, wrapper)
137 140 for c in self._uicallables:
141 with tracing.log(b'finaluisetup: %s', pycompat.sysbytes(repr(c))):
138 142 c(ui)
139 143
140 144 def finaluipopulate(self, ui):
@@ -175,6 +179,7 b' class exthelper(object):'
175 179 entry[1].append(opt)
176 180
177 181 for c in self._extcallables:
182 with tracing.log(b'finalextsetup: %s', pycompat.sysbytes(repr(c))):
178 183 c(ui)
179 184
180 185 def finalreposetup(self, ui, repo):
@@ -187,6 +192,7 b' class exthelper(object):'
187 192 - Changes to repo.__class__, repo.dirstate.__class__
188 193 """
189 194 for c in self._repocallables:
195 with tracing.log(b'finalreposetup: %s', pycompat.sysbytes(repr(c))):
190 196 c(ui, repo)
191 197
192 198 def uisetup(self, call):
General Comments 0
You need to be logged in to leave comments. Login now