localrepo: use vfs.reljoin rather than os.path.join in the localrepository class
authorAngel Ezquerra <angel.ezquerra@gmail.com>
Fri, 02 Jan 2015 13:30:38 +0100
changeset 23714 e3a0e7e21f54
parent 23713 5f84695734f1
child 23715 eee55c09010a
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.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Nov 26 19:28:11 2014 -0500
+++ b/mercurial/localrepo.py	Fri Jan 02 13:30:38 2015 +0100
@@ -768,7 +768,7 @@
         return self.vfs.join(os.path.join(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] == '/':