Submitter | Katsunori FUJIWARA |
---|---|
Date | July 9, 2015, 4:03 p.m. |
Message ID | <9f0ccb59226a2e171369.1436457783@juju> |
Download | mbox | patch |
Permalink | /patch/9943/ |
State | Accepted |
Headers | show |
Comments
On Fri, 2015-07-10 at 01:03 +0900, FUJIWARA Katsunori wrote: > # HG changeset patch > # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp> > # Date 1436457591 -32400 > # Fri Jul 10 00:59:51 2015 +0900 > # Node ID 9f0ccb59226a2e171369c9223e61e6747554bbe4 > # Parent 819896ff7ffd53404f41832f890f1c3603cf5a49 > subrepo: use vfs.dirname instead of os.path.dirname These are queued for default, thanks.
Patch
diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1206,7 +1206,8 @@ class svnsubrepo(abstractsubrepo): 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