Show More
@@ -803,9 +803,12 b' def getuipathfn(repo, legacyrelativevalu' | |||
|
803 | 803 | |
|
804 | 804 | if relative: |
|
805 | 805 | cwd = repo.getcwd() |
|
806 | pathto = repo.pathto | |
|
807 | return lambda f: pathto(f, cwd) | |
|
808 | elif repo.ui.configbool(b'ui', b'slash'): | |
|
806 | if cwd != b'': | |
|
807 | # this branch is correct when cwd == b'', ie cwd = repo root, | |
|
808 | # but it's slower | |
|
809 | pathto = repo.pathto | |
|
810 | return lambda f: pathto(f, cwd) | |
|
811 | if repo.ui.configbool(b'ui', b'slash'): | |
|
809 | 812 | return lambda f: f |
|
810 | 813 | else: |
|
811 | 814 | return util.localpath |
General Comments 0
You need to be logged in to leave comments.
Login now