##// END OF EJS Templates
py3: byte-stringify literals in extension in test-bundle2-exchange.t...
Yuya Nishihara -
r38622:4df549d0 default
parent child Browse files
Show More
@@ -936,11 +936,11 b' Test lazily acquiring the lock during un'
936 > import os
936 > import os
937 > from mercurial import extensions, bundle2, error
937 > from mercurial import extensions, bundle2, error
938 > def checklock(orig, repo, *args, **kwargs):
938 > def checklock(orig, repo, *args, **kwargs):
939 > if repo.svfs.lexists("lock"):
939 > if repo.svfs.lexists(b"lock"):
940 > raise error.Abort("Lock should not be taken")
940 > raise error.Abort(b"Lock should not be taken")
941 > return orig(repo, *args, **kwargs)
941 > return orig(repo, *args, **kwargs)
942 > def extsetup(ui):
942 > def extsetup(ui):
943 > extensions.wrapfunction(bundle2, 'processbundle', checklock)
943 > extensions.wrapfunction(bundle2, b'processbundle', checklock)
944 > EOF
944 > EOF
945
945
946 $ hg init lazylock
946 $ hg init lazylock
General Comments 0
You need to be logged in to leave comments. Login now