hgext/fastannotate/__init__.py
changeset 39214 8da20fc9fc07
parent 39213 303dae0136b0
child 39215 eaa14dff3226
--- a/hgext/fastannotate/__init__.py	Thu Aug 09 15:05:43 2018 -0400
+++ b/hgext/fastannotate/__init__.py	Thu Aug 09 15:08:32 2018 -0400
@@ -100,8 +100,6 @@
 #
 # * rename the config knob for updating the local cache from a remote server
 #
-# * move various global-setup bits to extsetup() or reposetup()
-#
 # * move `flock` based locking to a common area
 #
 # * revise wireprotocol for sharing annotate files
@@ -185,7 +183,9 @@
     if ui.configbool('fastannotate', 'useflock', _flockavailable()):
         context.pathhelper.lock = context.pathhelper._lockflock
 
+def extsetup(ui):
     # fastannotate has its own locking, without depending on repo lock
+    # TODO: avoid mutating this unless the specific repo has it enabled
     localrepo.localrepository._wlockfreeprefix.add('fastannotate/')
 
 def reposetup(ui, repo):