scmutil: backout 83785bb56062 (issue3643)
authorMatt Mackall <mpm@selenic.com>
Sat, 29 Sep 2012 11:57:16 -0500
changeset 17681 a41fd730f230
parent 17680 16ec37411db5
child 17683 6d7db5794e8c
scmutil: backout 83785bb56062 (issue3643)
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Sat Sep 29 13:34:37 2012 +0200
+++ b/mercurial/scmutil.py	Sat Sep 29 11:57:16 2012 -0500
@@ -229,7 +229,6 @@
         if expand:
             base = os.path.realpath(util.expandpath(base))
         self.base = base
-        self.basesep = self.base + os.sep
         self._setmustaudit(audit)
         self.createmode = None
         self._trustnlink = None
@@ -332,8 +331,9 @@
 
     def join(self, path):
         if path:
-            return path.startswith('/') and path or (self.basesep + path)
-        return self.base
+            return os.path.join(self.base, path)
+        else:
+            return self.base
 
 opener = vfs