comparison mercurial/subrepo.py @ 17876:f4ee2e959696 stable

subrepo: subrepo isolation, pass baseui when cloning a new subrepo (issue2904) Create the repo with baseui because it should only get the global configuration. After this patch issue2904 is finally fixed.
author Simon Heimberg <simohe@besonet.ch>
date Wed, 10 Oct 2012 01:18:06 +0200
parents 2ba70eec1cf0
children 17c030014ddf
comparison
equal deleted inserted replaced
17875:92ba3cd55be6 17876:f4ee2e959696
505 if len(self._repo) == 0: 505 if len(self._repo) == 0:
506 self._repo.ui.status(_('cloning subrepo %s from %s\n') 506 self._repo.ui.status(_('cloning subrepo %s from %s\n')
507 % (subrelpath(self), srcurl)) 507 % (subrelpath(self), srcurl))
508 parentrepo = self._repo._subparent 508 parentrepo = self._repo._subparent
509 shutil.rmtree(self._repo.path) 509 shutil.rmtree(self._repo.path)
510 other, cloned = hg.clone(self._repo._subparent.ui, {}, 510 other, cloned = hg.clone(self._repo._subparent.baseui, {},
511 other, self._repo.root, 511 other, self._repo.root,
512 update=False) 512 update=False)
513 self._repo = cloned.local() 513 self._repo = cloned.local()
514 self._initrepo(parentrepo, source, create=True) 514 self._initrepo(parentrepo, source, create=True)
515 else: 515 else: