##// END OF EJS Templates
terse: split on repo separator instead of os.sep (issue5715)...
Matt Harbison -
r34929:362096cf stable
parent child Browse files
Show More
@@ -404,11 +404,6 b' def dorecord(ui, repo, commitfunc, cmdsu'
404
404
405 return commit(ui, repo, recordinwlock, pats, opts)
405 return commit(ui, repo, recordinwlock, pats, opts)
406
406
407
408 # extracted at module level as it's required each time a file will be added
409 # to dirnode class object below
410 pathsep = pycompat.ossep
411
412 class dirnode(object):
407 class dirnode(object):
413 """
408 """
414 Represent a directory in user working copy with information required for
409 Represent a directory in user working copy with information required for
@@ -446,8 +441,8 b' class dirnode(object):'
446
441
447 # the filename contains a path separator, it means it's not the direct
442 # the filename contains a path separator, it means it's not the direct
448 # child of this directory
443 # child of this directory
449 if pathsep in filename:
444 if '/' in filename:
450 subdir, filep = filename.split(pathsep, 1)
445 subdir, filep = filename.split('/', 1)
451
446
452 # does the dirnode object for subdir exists
447 # does the dirnode object for subdir exists
453 if subdir not in self.subdirs:
448 if subdir not in self.subdirs:
General Comments 0
You need to be logged in to leave comments. Login now