Show More
@@ -917,7 +917,7 b' Test lazily acquiring the lock during un' | |||||
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, |
|
920 | > extensions.wrapfunction(bundle2, 'processbundle', checklock) | |
921 |
|
|
921 | > EOF | |
922 |
|
922 | |||
923 | $ hg init lazylock |
|
923 | $ hg init lazylock |
@@ -923,7 +923,7 b' unix domain socket:' | |||||
923 | > raise Exception('crash') |
|
923 | > raise Exception('crash') | |
924 | > return orig(ui, repo, conn, createcmdserver, prereposetups) |
|
924 | > return orig(ui, repo, conn, createcmdserver, prereposetups) | |
925 | > def extsetup(ui): |
|
925 | > def extsetup(ui): | |
926 |
> extensions.wrapfunction(commandserver, |
|
926 | > extensions.wrapfunction(commandserver, '_serverequest', _serverequest) | |
927 |
|
|
927 | > EOF | |
928 | $ cat <<EOF >> .hg/hgrc |
|
928 | $ cat <<EOF >> .hg/hgrc | |
929 | > [extensions] |
|
929 | > [extensions] |
@@ -275,7 +275,7 b' Aborting transaction prevents fncache ch' | |||||
275 | > |
|
275 | > | |
276 | > def uisetup(ui): |
|
276 | > def uisetup(ui): | |
277 | > extensions.wrapfunction( |
|
277 | > extensions.wrapfunction( | |
278 |
> localrepo.localrepository, |
|
278 | > localrepo.localrepository, 'transaction', wrapper) | |
279 |
|
|
279 | > | |
280 | > cmdtable = {} |
|
280 | > cmdtable = {} | |
281 | > |
|
281 | > |
@@ -876,7 +876,7 b' Test signal-safe-lock in web and non-web' | |||||
876 | > except ValueError: |
|
876 | > except ValueError: | |
877 | > raise error.Abort(b'signal.signal() called in thread?') |
|
877 | > raise error.Abort(b'signal.signal() called in thread?') | |
878 | > def uisetup(ui): |
|
878 | > def uisetup(ui): | |
879 |
> extensions.wrapfunction(signal, |
|
879 | > extensions.wrapfunction(signal, 'signal', disabledsig) | |
880 |
|
|
880 | > EOF | |
881 |
|
881 | |||
882 | by default, signal interrupt should be disabled while making a lock file |
|
882 | by default, signal interrupt should be disabled while making a lock file |
@@ -829,7 +829,7 b" blob, and the output shows that it isn't" | |||||
829 | > eh = exthelper.exthelper() |
|
829 | > eh = exthelper.exthelper() | |
830 | > uisetup = eh.finaluisetup |
|
830 | > uisetup = eh.finaluisetup | |
831 | > |
|
831 | > | |
832 |
> @eh.wrapfunction(wrapper, |
|
832 | > @eh.wrapfunction(wrapper, 'filelogrenamed') | |
833 |
|
|
833 | > def filelogrenamed(orig, orig1, self, node): | |
834 | > ret = orig(orig1, self, node) |
|
834 | > ret = orig(orig1, self, node) | |
835 | > if wrapper._islfs(self._revlog, node) and ret: |
|
835 | > if wrapper._islfs(self._revlog, node) and ret: |
@@ -99,7 +99,7 b' have this method available in narrowhg p' | |||||
99 | > expandnarrowspec(ui, repo, encoding.environ.get(b'PATCHINCLUDES')) |
|
99 | > expandnarrowspec(ui, repo, encoding.environ.get(b'PATCHINCLUDES')) | |
100 | > return orig(ui, repo, *args, **kwargs) |
|
100 | > return orig(ui, repo, *args, **kwargs) | |
101 | > |
|
101 | > | |
102 |
> extensions.wrapfunction(patch, |
|
102 | > extensions.wrapfunction(patch, 'patch', overridepatch) | |
103 |
|
|
103 | > EOF | |
104 | $ cat >> ".hg/hgrc" <<EOF |
|
104 | $ cat >> ".hg/hgrc" <<EOF | |
105 | > [extensions] |
|
105 | > [extensions] |
@@ -76,7 +76,7 b' A set of extension and shell functions e' | |||||
76 | > return orig(pushop) |
|
76 | > return orig(pushop) | |
77 | > |
|
77 | > | |
78 | > def uisetup(ui): |
|
78 | > def uisetup(ui): | |
79 |
> extensions.wrapfunction(exchange, |
|
79 | > extensions.wrapfunction(exchange, '_pushbundle2', delaypush) | |
80 |
|
|
80 | > EOF | |
81 |
|
81 | |||
82 | $ waiton () { |
|
82 | $ waiton () { |
@@ -427,7 +427,7 b' stderr from remote commands should be pr' | |||||
427 | > return res |
|
427 | > return res | |
428 | > |
|
428 | > | |
429 | > def extsetup(ui): |
|
429 | > def extsetup(ui): | |
430 |
> extensions.wrapfunction(exchange, |
|
430 | > extensions.wrapfunction(exchange, 'push', wrappedpush) | |
431 |
|
|
431 | > EOF | |
432 |
|
432 | |||
433 | $ cat >> .hg/hgrc << EOF |
|
433 | $ cat >> .hg/hgrc << EOF |
@@ -479,7 +479,7 b' stderr from remote commands should be pr' | |||||
479 | > return res |
|
479 | > return res | |
480 | > |
|
480 | > | |
481 | > def extsetup(ui): |
|
481 | > def extsetup(ui): | |
482 |
> extensions.wrapfunction(exchange, |
|
482 | > extensions.wrapfunction(exchange, 'push', wrappedpush) | |
483 |
|
|
483 | > EOF | |
484 |
|
484 | |||
485 | $ cat >> .hg/hgrc << EOF |
|
485 | $ cat >> .hg/hgrc << EOF |
@@ -970,7 +970,7 b' Check that the phase cache is properly i' | |||||
970 | > transaction.addpostclose(b"phase invalidation test", test) |
|
970 | > transaction.addpostclose(b"phase invalidation test", test) | |
971 | > return transaction |
|
971 | > return transaction | |
972 | > def extsetup(ui): |
|
972 | > def extsetup(ui): | |
973 |
> extensions.wrapfunction(localrepo.localrepository, |
|
973 | > extensions.wrapfunction(localrepo.localrepository, "transaction", | |
974 | > transactioncallback) |
|
974 | > transactioncallback) | |
975 |
|
|
975 | > EOF | |
976 | $ hg up -C 2 |
|
976 | $ hg up -C 2 |
General Comments 0
You need to be logged in to leave comments.
Login now