wrapfunction: use sysstr instead of bytes as argument in "sparse"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 03 Feb 2023 04:26:18 +0100
changeset 50829 54d3a6dc2426
parent 50828 d51a76b5262b
child 50830 1fbae268ecae
wrapfunction: use sysstr instead of bytes as argument in "sparse" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
hgext/sparse.py
--- a/hgext/sparse.py	Fri Feb 03 04:25:57 2023 +0100
+++ b/hgext/sparse.py	Fri Feb 03 04:26:18 2023 +0100
@@ -146,7 +146,7 @@
             revs = revs.filter(ctxmatch)
         return revs
 
-    extensions.wrapfunction(logcmdutil, b'_initialrevs', _initialrevs)
+    extensions.wrapfunction(logcmdutil, '_initialrevs', _initialrevs)
 
 
 def _clonesparsecmd(orig, ui, repo, *args, **opts):
@@ -170,7 +170,7 @@
             )
             return orig(ctx, *args, **kwargs)
 
-        extensions.wrapfunction(mergemod, b'update', clonesparse)
+        extensions.wrapfunction(mergemod, 'update', clonesparse)
     return orig(ui, repo, *args, **opts)