Mercurial > public > mercurial-scm > hg-stable
diff hgext/fastannotate/protocol.py @ 39242:8da20fc9fc07
fastannotate: move some global state mutation to extsetup()
Differential Revision: https://phab.mercurial-scm.org/D4202
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 09 Aug 2018 15:08:32 -0400 |
parents | 303dae0136b0 |
children | eaa14dff3226 |
line wrap: on
line diff
--- a/hgext/fastannotate/protocol.py Thu Aug 09 15:05:43 2018 -0400 +++ b/hgext/fastannotate/protocol.py Thu Aug 09 15:08:32 2018 -0400 @@ -223,5 +223,7 @@ _registerwireprotocommand() if isinstance(repo, localrepo.localrepository): localreposetup(ui, repo) + # TODO: this mutates global state, but only if at least one repo + # has the extension enabled. This is probably bad for hgweb. if peersetup not in hg.wirepeersetupfuncs: hg.wirepeersetupfuncs.append(peersetup)