hgext/fastannotate/protocol.py
changeset 39214 8da20fc9fc07
parent 39213 303dae0136b0
child 39215 eaa14dff3226
--- 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)