tests/test-bundle2-exchange.t
changeset 50799 02eae2df911a
parent 49876 950c39918bd2
child 51106 d83d788590a8
equal deleted inserted replaced
50798:d9e22b39041a 50799: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]