equal
deleted
inserted
replaced
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] |