mercurial/subrepo.py
changeset 10183 572dd10fa308
parent 10178 cd477be6f2fc
child 10197 29e3c4a7699b
equal deleted inserted replaced
10182:eb0665db0c5c 10183:572dd10fa308
   307         self._ui.status(self._svncommand(['update', '-r', newrev]))
   307         self._ui.status(self._svncommand(['update', '-r', newrev]))
   308         return newrev
   308         return newrev
   309 
   309 
   310     def remove(self):
   310     def remove(self):
   311         if self.dirty():
   311         if self.dirty():
   312             self._repo.ui.warn('Not removing repo %s because'
   312             self._repo.ui.warn(_('not removing repo %s because'
   313                                'it has changes.\n' % self._path)
   313                                  'it has changes.\n' % self._path))
   314             return
   314             return
   315         self._repo.ui.note('removing subrepo %s\n' % self._path)
   315         self._repo.ui.note('removing subrepo %s\n' % self._path)
   316         shutil.rmtree(self._ctx.repo.join(self._path))
   316         shutil.rmtree(self._ctx.repo.join(self._path))
   317 
   317 
   318     def get(self, state):
   318     def get(self, state):