# HG changeset patch # User Simon Heimberg # Date 1349898949 -7200 # Node ID 01c23fd3d4249af4cf4eeac23135e6f2eb398dc7 # Parent 3a049b21a05b2b6841dd14d2f0a1402b68dc4382 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. [ orginal upstream message ] diff -r 3a049b21a05b -r 01c23fd3d424 hgkw/keyword.py --- a/hgkw/keyword.py Wed Apr 17 03:41:34 2013 +0200 +++ b/hgkw/keyword.py Wed Oct 10 21:55:49 2012 +0200 @@ -384,7 +384,7 @@ fn = 'demo.txt' tmpdir = tempfile.mkdtemp('', 'kwdemo.') ui.note(_('creating temporary repository at %s\n') % tmpdir) - repo = localrepo.localrepository(ui, tmpdir, True) + repo = localrepo.localrepository(repo.baseui, tmpdir, True) ui.setconfig('keyword', fn, '') svn = ui.configbool('keywordset', 'svn') # explicitly set keywordset for demo output