##// END OF EJS Templates
subrepo: test & fix svn subrepo removal
Ronny Pfannschmidt -
r12930:9bb180ab stable
parent child Browse files
Show More
@@ -549,7 +549,7 b' class svnsubrepo(abstractsubrepo):'
549 'it has changes.\n' % self._path))
549 'it has changes.\n' % self._path))
550 return
550 return
551 self._ui.note(_('removing subrepo %s\n') % self._path)
551 self._ui.note(_('removing subrepo %s\n') % self._path)
552 shutil.rmtree(self._ctx.repo.join(self._path))
552 shutil.rmtree(self._ctx._repo.wjoin(self._path))
553
553
554 def get(self, state):
554 def get(self, state):
555 status = self._svncommand(['checkout', state[0], '--revision', state[1]])
555 status = self._svncommand(['checkout', state[0], '--revision', state[1]])
@@ -217,3 +217,8 b' verify subrepo is contained within the r'
217
217
218 $ python -c "import os.path; print os.path.exists('s')"
218 $ python -c "import os.path; print os.path.exists('s')"
219 True
219 True
220
221 update to nullrev (must delete the subrepo)
222
223 $ hg up null
224 0 files updated, 0 files merged, 3 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now