# HG changeset patch # User FUJIWARA Katsunori # Date 1428680829 -32400 # Node ID def1145cec2d4d674a530b377375e6d719979a5a # Parent d1ddf1fe5d3381ed446d2d1214601cf0b6ae1b80 subrepo: use vfs.unlink instead of os.remove This patch also removes useless composing absolute path by "os.path.join()". diff -r d1ddf1fe5d33 -r def1145cec2d mercurial/subrepo.py --- a/mercurial/subrepo.py Sat Apr 11 00:47:09 2015 +0900 +++ b/mercurial/subrepo.py Sat Apr 11 00:47:09 2015 +0900 @@ -1626,11 +1626,10 @@ for f, kind in self.wvfs.readdir(): if f == '.git': continue - path = os.path.join(self._abspath, f) if kind == stat.S_IFDIR: self.wvfs.rmtree(f) else: - os.remove(path) + self.wvfs.unlink(f) def archive(self, archiver, prefix, match=None): total = 0