mercurial/subrepo.py
changeset 25773 de654a83fe1c
parent 25771 a7178d8fe7ee
child 25848 0ae07173881d
equal deleted inserted replaced
25772:5471965af5cb 25773:de654a83fe1c
  1204             return
  1204             return
  1205         self.ui.note(_('removing subrepo %s\n') % self._path)
  1205         self.ui.note(_('removing subrepo %s\n') % self._path)
  1206 
  1206 
  1207         self.wvfs.rmtree(forcibly=True)
  1207         self.wvfs.rmtree(forcibly=True)
  1208         try:
  1208         try:
  1209             self._ctx.repo().wvfs.removedirs(os.path.dirname(self._path))
  1209             pwvfs = self._ctx.repo().wvfs
       
  1210             pwvfs.removedirs(pwvfs.dirname(self._path))
  1210         except OSError:
  1211         except OSError:
  1211             pass
  1212             pass
  1212 
  1213 
  1213     @annotatesubrepoerror
  1214     @annotatesubrepoerror
  1214     def get(self, state, overwrite=False):
  1215     def get(self, state, overwrite=False):