Show More
@@ -3007,13 +3007,21 b' def perfbdiff(ui, repo, file_, rev=None,' | |||
|
3007 | 3007 | |
|
3008 | 3008 | @command( |
|
3009 | 3009 | b'perf::unbundle', |
|
3010 | formatteropts, | |
|
3010 | [ | |
|
3011 | (b'', b'as-push', None, b'pretend the bundle comes from a push'), | |
|
3012 | ] | |
|
3013 | + formatteropts, | |
|
3011 | 3014 | b'BUNDLE_FILE', |
|
3012 | 3015 | ) |
|
3013 | 3016 | def perf_unbundle(ui, repo, fname, **opts): |
|
3014 | 3017 | """benchmark application of a bundle in a repository. |
|
3015 | 3018 | |
|
3016 |
This does not include the final transaction processing |
|
|
3019 | This does not include the final transaction processing | |
|
3020 | ||
|
3021 | The --as-push option make the unbundle operation appears like it comes from | |
|
3022 | a client push. It change some aspect of the processing and associated | |
|
3023 | performance profile. | |
|
3024 | """ | |
|
3017 | 3025 | |
|
3018 | 3026 | from mercurial import exchange |
|
3019 | 3027 | from mercurial import bundle2 |
@@ -3034,6 +3042,10 b' def perf_unbundle(ui, repo, fname, **opt' | |||
|
3034 | 3042 | args = getargspec(error.Abort.__init__).args |
|
3035 | 3043 | post_18415fc918a1 = "detailed_exit_code" in args |
|
3036 | 3044 | |
|
3045 | unbundle_source = b'perf::unbundle' | |
|
3046 | if opts[b'as_push']: | |
|
3047 | unbundle_source = b'push' | |
|
3048 | ||
|
3037 | 3049 | old_max_inline = None |
|
3038 | 3050 | try: |
|
3039 | 3051 | if not (pre_63edc384d3b7 or post_18415fc918a1): |
@@ -3069,7 +3081,7 b' def perf_unbundle(ui, repo, fname, **opt' | |||
|
3069 | 3081 | repo, |
|
3070 | 3082 | gen, |
|
3071 | 3083 | tr, |
|
3072 |
source= |
|
|
3084 | source=unbundle_source, | |
|
3073 | 3085 | url=fname, |
|
3074 | 3086 | ) |
|
3075 | 3087 |
General Comments 0
You need to be logged in to leave comments.
Login now