Show More
@@ -200,6 +200,7 b' test-fileset.t' | |||||
200 | test-fix-topology.t |
|
200 | test-fix-topology.t | |
201 | test-fix.t |
|
201 | test-fix.t | |
202 | test-flags.t |
|
202 | test-flags.t | |
|
203 | test-fncache.t | |||
203 | test-generaldelta.t |
|
204 | test-generaldelta.t | |
204 | test-getbundle.t |
|
205 | test-getbundle.t | |
205 | test-git-export.t |
|
206 | test-git-export.t |
@@ -305,13 +305,13 b' Aborted transactions can be recovered la' | |||||
305 | > def trwrapper(orig, self, *args, **kwargs): |
|
305 | > def trwrapper(orig, self, *args, **kwargs): | |
306 | > tr = orig(self, *args, **kwargs) |
|
306 | > tr = orig(self, *args, **kwargs) | |
307 | > def fail(tr): |
|
307 | > def fail(tr): | |
308 | > raise error.Abort("forced transaction failure") |
|
308 | > raise error.Abort(b"forced transaction failure") | |
309 | > # zzz prefix to ensure it sorted after store.write |
|
309 | > # zzz prefix to ensure it sorted after store.write | |
310 | > tr.addfinalize('zzz-forcefails', fail) |
|
310 | > tr.addfinalize(b'zzz-forcefails', fail) | |
311 | > return tr |
|
311 | > return tr | |
312 | > |
|
312 | > | |
313 | > def abortwrapper(orig, self, *args, **kwargs): |
|
313 | > def abortwrapper(orig, self, *args, **kwargs): | |
314 | > raise error.Abort("forced transaction failure") |
|
314 | > raise error.Abort(b"forced transaction failure") | |
315 | > |
|
315 | > | |
316 | > def uisetup(ui): |
|
316 | > def uisetup(ui): | |
317 | > extensions.wrapfunction(localrepo.localrepository, 'transaction', |
|
317 | > extensions.wrapfunction(localrepo.localrepository, 'transaction', | |
@@ -453,7 +453,7 b' changesets that only contain changes to ' | |||||
453 | > def extsetup(ui): |
|
453 | > def extsetup(ui): | |
454 | > def wrapstore(orig, requirements, *args): |
|
454 | > def wrapstore(orig, requirements, *args): | |
455 | > store = orig(requirements, *args) |
|
455 | > store = orig(requirements, *args) | |
456 | > if 'store' in requirements and 'fncache' in requirements: |
|
456 | > if b'store' in requirements and b'fncache' in requirements: | |
457 | > instrumentfncachestore(store, ui) |
|
457 | > instrumentfncachestore(store, ui) | |
458 | > return store |
|
458 | > return store | |
459 | > extensions.wrapfunction(localrepo, 'makestore', wrapstore) |
|
459 | > extensions.wrapfunction(localrepo, 'makestore', wrapstore) | |
@@ -461,7 +461,7 b' changesets that only contain changes to ' | |||||
461 | > def instrumentfncachestore(fncachestore, ui): |
|
461 | > def instrumentfncachestore(fncachestore, ui): | |
462 | > class instrumentedfncache(type(fncachestore.fncache)): |
|
462 | > class instrumentedfncache(type(fncachestore.fncache)): | |
463 | > def _load(self): |
|
463 | > def _load(self): | |
464 | > ui.warn('fncache load triggered!\n') |
|
464 | > ui.warn(b'fncache load triggered!\n') | |
465 | > super(instrumentedfncache, self)._load() |
|
465 | > super(instrumentedfncache, self)._load() | |
466 | > fncachestore.fncache.__class__ = instrumentedfncache |
|
466 | > fncachestore.fncache.__class__ = instrumentedfncache | |
467 | > EOF |
|
467 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now