comparison hgext/fastannotate/support.py @ 50777:8dc2724d0304

wrapfunction: use sysstr instead of bytes as argument in "fastannotate" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 10 Jul 2023 16:12:33 +0200
parents 642e31cb55f0
children 18c8c18993f0
comparison
equal deleted inserted replaced
50776:335aeb3d670b 50777:8dc2724d0304
127 self, follow, skiprevs=skiprevs, diffopts=diffopts, prefetchskip=skipset 127 self, follow, skiprevs=skiprevs, diffopts=diffopts, prefetchskip=skipset
128 ) 128 )
129 129
130 130
131 def replacehgwebannotate(): 131 def replacehgwebannotate():
132 extensions.wrapfunction(hgweb.webutil, b'annotate', _hgwebannotate) 132 extensions.wrapfunction(hgweb.webutil, 'annotate', _hgwebannotate)
133 133
134 134
135 def replacefctxannotate(): 135 def replacefctxannotate():
136 extensions.wrapfunction(hgcontext.basefilectx, b'annotate', _fctxannotate) 136 extensions.wrapfunction(hgcontext.basefilectx, 'annotate', _fctxannotate)