comparison tests/test-bundle2-exchange.t @ 38603:4df549d0f1fd

py3: byte-stringify literals in extension in test-bundle2-exchange.t # skip-blame just some b''
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 19:05:00 +0900
parents d0abd7949ea3
children 89630d0b3e23
comparison
equal deleted inserted replaced
38602:44f5acfb9ad2 38603:4df549d0f1fd
934 934
935 $ cat >> $TESTTMP/locktester.py <<EOF 935 $ cat >> $TESTTMP/locktester.py <<EOF
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
947 $ cat >> lazylock/.hg/hgrc <<EOF 947 $ cat >> lazylock/.hg/hgrc <<EOF
948 > [extensions] 948 > [extensions]