# HG changeset patch # User Pierre-Yves David # Date 1675394778 -3600 # 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 -r d51a76b5262b -r 54d3a6dc2426 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)