Show More
@@ -2668,9 +2668,13 b' def perf_unbundle(ui, repo, fname, **opt' | |||||
2668 |
|
2668 | |||
2669 | with repo.lock(): |
|
2669 | with repo.lock(): | |
2670 | bundle = [None, None] |
|
2670 | bundle = [None, None] | |
|
2671 | orig_quiet = repo.ui.quiet | |||
2671 | try: |
|
2672 | try: | |
2672 | with open(fname, mode="rb") as f: |
|
2673 | with open(fname, mode="rb") as f: | |
2673 |
|
2674 | |||
|
2675 | def noop_report(*args, **kwargs): | |||
|
2676 | pass | |||
|
2677 | ||||
2674 | def setup(): |
|
2678 | def setup(): | |
2675 | gen, tr = bundle |
|
2679 | gen, tr = bundle | |
2676 | if tr is not None: |
|
2680 | if tr is not None: | |
@@ -2679,6 +2683,7 b' def perf_unbundle(ui, repo, fname, **opt' | |||||
2679 | f.seek(0) |
|
2683 | f.seek(0) | |
2680 | bundle[0] = exchange.readbundle(ui, f, fname) |
|
2684 | bundle[0] = exchange.readbundle(ui, f, fname) | |
2681 | bundle[1] = repo.transaction(b'perf::unbundle') |
|
2685 | bundle[1] = repo.transaction(b'perf::unbundle') | |
|
2686 | bundle[1]._report = noop_report # silence the transaction | |||
2682 |
|
2687 | |||
2683 | def apply(): |
|
2688 | def apply(): | |
2684 | gen, tr = bundle |
|
2689 | gen, tr = bundle |
@@ -398,8 +398,6 b' Test pre-run feature' | |||||
398 | adding changesets |
|
398 | adding changesets | |
399 | adding manifests |
|
399 | adding manifests | |
400 | adding file changes |
|
400 | adding file changes | |
401 | transaction abort! |
|
|||
402 | rollback completed |
|
|||
403 |
|
401 | |||
404 |
|
402 | |||
405 | test profile-benchmark option |
|
403 | test profile-benchmark option |
General Comments 0
You need to be logged in to leave comments.
Login now