##// END OF EJS Templates
perf-stream-consume: use the source repository config when applying...
marmoute -
r52449:f1512dbf default
parent child Browse files
Show More
@@ -2202,11 +2202,15 b' def perf_stream_clone_consume(ui, repo, '
2202 def runone():
2202 def runone():
2203 bundle = run_variables[0]
2203 bundle = run_variables[0]
2204 tmp_dir = run_variables[1]
2204 tmp_dir = run_variables[1]
2205
2206 # we actually wants to copy all config to ensure the repo config is
2207 # taken in account during the benchmark
2208 new_ui = repo.ui.__class__(repo.ui)
2205 # only pass ui when no srcrepo
2209 # only pass ui when no srcrepo
2206 localrepo.createrepository(
2210 localrepo.createrepository(
2207 repo.ui, tmp_dir, requirements=repo.requirements
2211 new_ui, tmp_dir, requirements=repo.requirements
2208 )
2212 )
2209 target = hg.repository(repo.ui, tmp_dir)
2213 target = hg.repository(new_ui, tmp_dir)
2210 gen = exchange.readbundle(target.ui, bundle, bundle.name)
2214 gen = exchange.readbundle(target.ui, bundle, bundle.name)
2211 # stream v1
2215 # stream v1
2212 if util.safehasattr(gen, 'apply'):
2216 if util.safehasattr(gen, 'apply'):
General Comments 0
You need to be logged in to leave comments. Login now