##// END OF EJS Templates
scmutil: clarify getuipathfn comment...
Valentin Gatien-Baron -
r45420:d044b66d default
parent child Browse files
Show More
@@ -804,8 +804,8 def getuipathfn(repo, legacyrelativevalu
804 if relative:
804 if relative:
805 cwd = repo.getcwd()
805 cwd = repo.getcwd()
806 if cwd != b'':
806 if cwd != b'':
807 # this branch is correct when cwd == b'', ie cwd = repo root,
807 # this branch would work even if cwd == b'' (ie cwd = repo
808 # but it's slower
808 # root), but its generality makes the returned function slower
809 pathto = repo.pathto
809 pathto = repo.pathto
810 return lambda f: pathto(f, cwd)
810 return lambda f: pathto(f, cwd)
811 if repo.ui.configbool(b'ui', b'slash'):
811 if repo.ui.configbool(b'ui', b'slash'):
General Comments 0
You need to be logged in to leave comments. Login now