diff -r 4be845e3932c -r b3e19c355ca7 mercurial/subrepo.py --- a/mercurial/subrepo.py Mon Oct 17 16:45:19 2011 +0200 +++ b/mercurial/subrepo.py Mon Oct 17 18:01:38 2011 +0200 @@ -467,7 +467,7 @@ self._repo.ui.status(_('cloning subrepo %s from %s\n') % (subrelpath(self), srcurl)) parentrepo = self._repo._subparent - shutil.rmtree(self._repo.root) + shutil.rmtree(self._repo.path) other, self._repo = hg.clone(self._repo._subparent.ui, {}, other, self._repo.root, update=False) self._initrepo(parentrepo, source, create=True)