##// END OF EJS Templates
scmutil: use the new faster path split...
Bryan O'Sullivan -
r17561:4647aa33 default
parent child Browse files
Show More
@@ -267,7 +267,7 b' class opener(abstractopener):'
267 mode += "b" # for that other OS
267 mode += "b" # for that other OS
268
268
269 nlink = -1
269 nlink = -1
270 dirname, basename = os.path.split(f)
270 dirname, basename = util.split(f)
271 # If basename is empty, then the path is malformed because it points
271 # If basename is empty, then the path is malformed because it points
272 # to a directory. Let the posixfile() call below raise IOError.
272 # to a directory. Let the posixfile() call below raise IOError.
273 if basename and mode not in ('r', 'rb'):
273 if basename and mode not in ('r', 'rb'):
@@ -383,7 +383,7 b' def canonpath(root, cwd, myname, auditor'
383 name = os.path.join(*rel)
383 name = os.path.join(*rel)
384 auditor(name)
384 auditor(name)
385 return util.pconvert(name)
385 return util.pconvert(name)
386 dirname, basename = os.path.split(name)
386 dirname, basename = util.split(name)
387 rel.append(basename)
387 rel.append(basename)
388 if dirname == name:
388 if dirname == name:
389 break
389 break
General Comments 0
You need to be logged in to leave comments. Login now