# HG changeset patch # User Pierre-Yves David # Date 2023-02-03 03:26:18 # Node ID 54d3a6dc242671fa17a61371aee595f9e75ece9f # Parent d51a76b5262bc979ccf4d70d654faa3a3f65ecca 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`. diff --git a/hgext/sparse.py b/hgext/sparse.py --- a/hgext/sparse.py +++ b/hgext/sparse.py @@ -146,7 +146,7 @@ def _setuplog(ui): 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 @@ def _clonesparsecmd(orig, ui, repo, *arg ) return orig(ctx, *args, **kwargs) - extensions.wrapfunction(mergemod, b'update', clonesparse) + extensions.wrapfunction(mergemod, 'update', clonesparse) return orig(ui, repo, *args, **opts)