mercurial/subrepo.py
branchstable
changeset 15287 b3e19c355ca7
parent 15286 4be845e3932c
child 15410 9e99d2bbb1b1
child 15498 ac5a340b26de
--- 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)