Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/hg.py Tue Oct 15 09:48:27 2019 -0400 +++ b/mercurial/hg.py Tue Oct 15 11:06:04 2019 -0400 @@ -185,12 +185,12 @@ for f in presetupfuncs or []: f(ui, obj) ui.log(b'extension', b'- executing reposetup hooks\n') - with util.timedcm(b'all reposetup') as allreposetupstats: + with util.timedcm('all reposetup') as allreposetupstats: for name, module in extensions.extensions(ui): ui.log(b'extension', b' - running reposetup for %s\n', name) hook = getattr(module, 'reposetup', None) if hook: - with util.timedcm(b'reposetup %r', name) as stats: + with util.timedcm('reposetup %r', name) as stats: hook(ui, obj) ui.log( b'extension', b' > reposetup for %s took %s\n', name, stats