Mercurial > hg
changeset 17561:4647aa33ad81
scmutil: use the new faster path split
Combined with a few other patches in this series, this contributes
to improving stream_out performance by 10%.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Fri, 14 Sep 2012 12:08:55 -0700 |
parents | 9ee25d7b1aed |
children | b42b0729744d |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py Fri Sep 14 12:08:17 2012 -0700 +++ b/mercurial/scmutil.py Fri Sep 14 12:08:55 2012 -0700 @@ -267,7 +267,7 @@ mode += "b" # for that other OS nlink = -1 - dirname, basename = os.path.split(f) + dirname, basename = util.split(f) # If basename is empty, then the path is malformed because it points # to a directory. Let the posixfile() call below raise IOError. if basename and mode not in ('r', 'rb'): @@ -383,7 +383,7 @@ name = os.path.join(*rel) auditor(name) return util.pconvert(name) - dirname, basename = os.path.split(name) + dirname, basename = util.split(name) rel.append(basename) if dirname == name: break