comparison mercurial/bundlerepo.py @ 18825:f0564402d059

repo: repo isolation, do not pass on repo.ui for creating new repos A repo should not get the configuration from an other repo, so create it with the global configuration in repo.baseui. This is done too when recreating a repo. The repo configuration is reread anyway. And now deleted repo configuration does not persist.
author Simon Heimberg <simohe@besonet.ch>
date Wed, 10 Oct 2012 21:55:49 +0200
parents cc28a84db8c9
children 81241f978fd2
comparison
equal deleted inserted replaced
18824:f0d55e1b4855 18825:f0564402d059
358 # keep written bundle? 358 # keep written bundle?
359 if bundlename: 359 if bundlename:
360 bundle = None 360 bundle = None
361 if not localrepo: 361 if not localrepo:
362 # use the created uncompressed bundlerepo 362 # use the created uncompressed bundlerepo
363 localrepo = bundlerepo = bundlerepository(ui, repo.root, fname) 363 localrepo = bundlerepo = bundlerepository(repo.baseui, repo.root,
364 fname)
364 # this repo contains local and other now, so filter out local again 365 # this repo contains local and other now, so filter out local again
365 common = repo.heads() 366 common = repo.heads()
366 if localrepo: 367 if localrepo:
367 # Part of common may be remotely filtered 368 # Part of common may be remotely filtered
368 # So use an unfiltered version 369 # So use an unfiltered version