##// END OF EJS Templates
scmutil: make join cheaper...
Bryan O'Sullivan -
r17559:83785bb5 default
parent child Browse files
Show More
@@ -229,6 +229,7 b' class opener(abstractopener):'
229 229 if expand:
230 230 base = os.path.realpath(util.expandpath(base))
231 231 self.base = base
232 self.basesep = self.base + os.sep
232 233 self._setmustaudit(audit)
233 234 self.createmode = None
234 235 self._trustnlink = None
@@ -331,9 +332,8 b' class opener(abstractopener):'
331 332
332 333 def join(self, path):
333 334 if path:
334 return os.path.join(self.base, path)
335 else:
336 return self.base
335 return path.startswith('/') and path or (self.basesep + path)
336 return self.base
337 337
338 338 class filteropener(abstractopener):
339 339 '''Wrapper opener for filtering filenames with a function.'''
General Comments 0
You need to be logged in to leave comments. Login now