Show More
@@ -303,7 +303,7 b' def standin(filename):' | |||||
303 | # 2) Join with '/' because that's what dirstate always uses, even on |
|
303 | # 2) Join with '/' because that's what dirstate always uses, even on | |
304 | # Windows. Change existing separator to '/' first in case we are |
|
304 | # Windows. Change existing separator to '/' first in case we are | |
305 | # passed filenames from an external source (like the command line). |
|
305 | # passed filenames from an external source (like the command line). | |
306 |
return shortname + '/' + filename |
|
306 | return shortname + '/' + util.pconvert(filename) | |
307 |
|
307 | |||
308 | def isstandin(filename): |
|
308 | def isstandin(filename): | |
309 | '''Return true if filename is a big file standin. filename must be |
|
309 | '''Return true if filename is a big file standin. filename must be | |
@@ -314,7 +314,7 b' def splitstandin(filename):' | |||||
314 | # Split on / because that's what dirstate always uses, even on Windows. |
|
314 | # Split on / because that's what dirstate always uses, even on Windows. | |
315 | # Change local separator to / first just in case we are passed filenames |
|
315 | # Change local separator to / first just in case we are passed filenames | |
316 | # from an external source (like the command line). |
|
316 | # from an external source (like the command line). | |
317 |
bits = filename |
|
317 | bits = util.pconvert(filename).split('/', 1) | |
318 | if len(bits) == 2 and bits[0] == shortname: |
|
318 | if len(bits) == 2 and bits[0] == shortname: | |
319 | return bits[1] |
|
319 | return bits[1] | |
320 | else: |
|
320 | else: | |
@@ -433,7 +433,7 b' def httpsendfile(ui, filename):' | |||||
433 |
|
433 | |||
434 | def unixpath(path): |
|
434 | def unixpath(path): | |
435 | '''Return a version of path normalized for use with the lfdirstate.''' |
|
435 | '''Return a version of path normalized for use with the lfdirstate.''' | |
436 |
return os.path.normpath(path) |
|
436 | return util.pconvert(os.path.normpath(path)) | |
437 |
|
437 | |||
438 | def islfilesrepo(repo): |
|
438 | def islfilesrepo(repo): | |
439 | return ('largefiles' in repo.requirements and |
|
439 | return ('largefiles' in repo.requirements and |
General Comments 0
You need to be logged in to leave comments.
Login now