Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 43238:101ae8bbfa02
cleanup: hgdemandimport.tracing accepts strings, not bytes
This does mean that the resulting traces will have some b'' goo in them on
Python 3, but I think that's a worthwile price to pay since it doesn't break
any tests.
Differential Revision: https://phab.mercurial-scm.org/D7108
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 15 Oct 2019 11:06:04 -0400 |
parents | 8ff1ecfadcd1 |
children | be8552f25cab |
comparison
equal
deleted
inserted
replaced
43237:b21e3a747501 | 43238:101ae8bbfa02 |
---|---|
183 ) | 183 ) |
184 ui = getattr(obj, "ui", ui) | 184 ui = getattr(obj, "ui", ui) |
185 for f in presetupfuncs or []: | 185 for f in presetupfuncs or []: |
186 f(ui, obj) | 186 f(ui, obj) |
187 ui.log(b'extension', b'- executing reposetup hooks\n') | 187 ui.log(b'extension', b'- executing reposetup hooks\n') |
188 with util.timedcm(b'all reposetup') as allreposetupstats: | 188 with util.timedcm('all reposetup') as allreposetupstats: |
189 for name, module in extensions.extensions(ui): | 189 for name, module in extensions.extensions(ui): |
190 ui.log(b'extension', b' - running reposetup for %s\n', name) | 190 ui.log(b'extension', b' - running reposetup for %s\n', name) |
191 hook = getattr(module, 'reposetup', None) | 191 hook = getattr(module, 'reposetup', None) |
192 if hook: | 192 if hook: |
193 with util.timedcm(b'reposetup %r', name) as stats: | 193 with util.timedcm('reposetup %r', name) as stats: |
194 hook(ui, obj) | 194 hook(ui, obj) |
195 ui.log( | 195 ui.log( |
196 b'extension', b' > reposetup for %s took %s\n', name, stats | 196 b'extension', b' > reposetup for %s took %s\n', name, stats |
197 ) | 197 ) |
198 ui.log(b'extension', b'> all reposetup took %s\n', allreposetupstats) | 198 ui.log(b'extension', b'> all reposetup took %s\n', allreposetupstats) |