comparison tests/test-bundle2-exchange.t @ 50836:02eae2df911a

wrapfunction: use sysstr instead of bytes as argument in various tests 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 19:34:04 +0200
parents 950c39918bd2
children d83d788590a8
comparison
equal deleted inserted replaced
50835:d9e22b39041a 50836:02eae2df911a
915 > def checklock(orig, repo, *args, **kwargs): 915 > def checklock(orig, repo, *args, **kwargs):
916 > if repo.svfs.lexists(b"lock"): 916 > if repo.svfs.lexists(b"lock"):
917 > raise error.Abort(b"Lock should not be taken") 917 > raise error.Abort(b"Lock should not be taken")
918 > return orig(repo, *args, **kwargs) 918 > return orig(repo, *args, **kwargs)
919 > def extsetup(ui): 919 > def extsetup(ui):
920 > extensions.wrapfunction(bundle2, b'processbundle', checklock) 920 > extensions.wrapfunction(bundle2, 'processbundle', checklock)
921 > EOF 921 > EOF
922 922
923 $ hg init lazylock 923 $ hg init lazylock
924 $ cat >> lazylock/.hg/hgrc <<EOF 924 $ cat >> lazylock/.hg/hgrc <<EOF
925 > [extensions] 925 > [extensions]