hgext/fastannotate/support.py
changeset 39213 303dae0136b0
parent 39210 1ddb296e0dee
child 41365 876494fd967d
equal deleted inserted replaced
39212:ca053fc7efc5 39213:303dae0136b0
   118 def replacehgwebannotate():
   118 def replacehgwebannotate():
   119     extensions.wrapfunction(hgweb.webutil, 'annotate', _hgwebannotate)
   119     extensions.wrapfunction(hgweb.webutil, 'annotate', _hgwebannotate)
   120 
   120 
   121 def replacefctxannotate():
   121 def replacefctxannotate():
   122     extensions.wrapfunction(hgcontext.basefilectx, 'annotate', _fctxannotate)
   122     extensions.wrapfunction(hgcontext.basefilectx, 'annotate', _fctxannotate)
   123 
       
   124 def replaceremotefctxannotate():
       
   125     try:
       
   126         r = extensions.find('remotefilelog')
       
   127     except KeyError:
       
   128         return
       
   129     else:
       
   130         extensions.wrapfunction(r.remotefilectx.remotefilectx, 'annotate',
       
   131                                 _remotefctxannotate)