subrepo: use vfs.dirname instead of os.path.dirname
This patch uses "wvfs of the parent repository" ('pwvfs') instead of
'wvfs' of own repository, because 'self._path' is the path to this
subrepository as seen from the parent repository.
--- a/mercurial/subrepo.py Fri Jul 10 00:59:51 2015 +0900
+++ b/mercurial/subrepo.py Fri Jul 10 00:59:51 2015 +0900
@@ -1206,7 +1206,8 @@
self.wvfs.rmtree(forcibly=True)
try:
- self._ctx.repo().wvfs.removedirs(os.path.dirname(self._path))
+ pwvfs = self._ctx.repo().wvfs
+ pwvfs.removedirs(pwvfs.dirname(self._path))
except OSError:
pass