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