Show More
@@ -170,13 +170,15 b' def _peerorrepo(ui, path, create=False, ' | |||||
170 | for f in presetupfuncs or []: |
|
170 | for f in presetupfuncs or []: | |
171 | f(ui, obj) |
|
171 | f(ui, obj) | |
172 | log('- executing reposetup hooks\n') |
|
172 | log('- executing reposetup hooks\n') | |
173 | for name, module in extensions.extensions(ui): |
|
173 | with util.timedcm('all reposetup') as allreposetupstats: | |
174 | log(' - running reposetup for %s\n' % (name,)) |
|
174 | for name, module in extensions.extensions(ui): | |
175 | hook = getattr(module, 'reposetup', None) |
|
175 | log(' - running reposetup for %s\n' % (name,)) | |
176 | if hook: |
|
176 | hook = getattr(module, 'reposetup', None) | |
177 | with util.timedcm('reposetup %r', name) as stats: |
|
177 | if hook: | |
178 | hook(ui, obj) |
|
178 | with util.timedcm('reposetup %r', name) as stats: | |
179 | log(' > reposetup for %r took %s\n', name, stats) |
|
179 | hook(ui, obj) | |
|
180 | log(' > reposetup for %r took %s\n', name, stats) | |||
|
181 | log('> all reposetup took %s\n', allreposetupstats) | |||
180 | if not obj.local(): |
|
182 | if not obj.local(): | |
181 | for f in wirepeersetupfuncs: |
|
183 | for f in wirepeersetupfuncs: | |
182 | f(ui, obj) |
|
184 | f(ui, obj) |
@@ -87,6 +87,7 b' Test extension setup timings' | |||||
87 | reposetup called for a |
|
87 | reposetup called for a | |
88 | ui == repo.ui |
|
88 | ui == repo.ui | |
89 | debug.extensions: > reposetup for 'foobar' took * (glob) |
|
89 | debug.extensions: > reposetup for 'foobar' took * (glob) | |
|
90 | debug.extensions: > all reposetup took * (glob) | |||
90 | Foo |
|
91 | Foo | |
91 |
|
92 | |||
92 | $ cd .. |
|
93 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now