Show More
@@ -936,11 +936,11 b' Test lazily acquiring the lock during un' | |||
|
936 | 936 | > import os |
|
937 | 937 | > from mercurial import extensions, bundle2, error |
|
938 | 938 | > def checklock(orig, repo, *args, **kwargs): |
|
939 | > if repo.svfs.lexists("lock"): | |
|
940 | > raise error.Abort("Lock should not be taken") | |
|
939 | > if repo.svfs.lexists(b"lock"): | |
|
940 | > raise error.Abort(b"Lock should not be taken") | |
|
941 | 941 | > return orig(repo, *args, **kwargs) |
|
942 | 942 | > def extsetup(ui): |
|
943 | > extensions.wrapfunction(bundle2, 'processbundle', checklock) | |
|
943 | > extensions.wrapfunction(bundle2, b'processbundle', checklock) | |
|
944 | 944 | > EOF |
|
945 | 945 | |
|
946 | 946 | $ hg init lazylock |
General Comments 0
You need to be logged in to leave comments.
Login now