Commits

Simon H.  committed f4ee2e9

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.

  • Participants
  • Parent commits 92ba3cd
  • Branches stable

Comments (0)

Files changed (1)

File mercurial/subrepo.py

                                      % (subrelpath(self), srcurl))
                 parentrepo = self._repo._subparent
                 shutil.rmtree(self._repo.path)
-                other, cloned = hg.clone(self._repo._subparent.ui, {},
+                other, cloned = hg.clone(self._repo._subparent.baseui, {},
                                          other, self._repo.root,
                                          update=False)
                 self._repo = cloned.local()