From patchwork Fri Jan 2 12:31:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2, of, 2] localrepo: use vfs.reljoin rather than os.path.join in the localrepository class From: Angel Ezquerra X-Patchwork-Id: 7300 Message-Id: To: mercurial-devel@selenic.com Date: Fri, 02 Jan 2015 13:31:01 +0100 # HG changeset patch # User Angel Ezquerra # Date 1420201838 -3600 # Fri Jan 02 13:30:38 2015 +0100 # Node ID d24d78ac79b43ebd66018b08089da119b460cdaf # Parent 2c2eadf76e8b8dbb3abb265e87f41252cb1cdacb localrepo: use vfs.reljoin rather than os.path.join in the localrepository class The removes the last remaining usage of os.path.join inside teh localrepository class. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -762,7 +762,7 @@ return self.vfs.join(self.vfs.reljoin(f, *insidef)) def wjoin(self, f, *insidef): - return os.path.join(self.root, f, *insidef) + return self.vfs.reljoin(self.root, f, *insidef) def file(self, f): if f[0] == '/':