Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/bundlerepo.py Mon Mar 04 22:34:11 2013 +0000 +++ b/mercurial/bundlerepo.py Wed Oct 10 21:55:49 2012 +0200 @@ -360,7 +360,8 @@ bundle = None if not localrepo: # use the created uncompressed bundlerepo - localrepo = bundlerepo = bundlerepository(ui, repo.root, fname) + localrepo = bundlerepo = bundlerepository(repo.baseui, repo.root, + fname) # this repo contains local and other now, so filter out local again common = repo.heads() if localrepo: