changeset 41505 | e6ec0737b706 |
parent 41443 | f83b230b7fb3 |
child 41506 | 02186c6871ac |
--- a/mercurial/scmutil.py Thu Jan 31 18:17:02 2019 +0530 +++ b/mercurial/scmutil.py Tue Jan 29 15:37:14 2019 -0800 @@ -725,6 +725,14 @@ return [] return parents +def getuipathfn(repo, relative): + if relative: + cwd = repo.getcwd() + pathto = repo.pathto + return lambda f: pathto(f, cwd) + else: + return lambda f: f + def expandpats(pats): '''Expand bare globs when running on windows. On posix we assume it already has already been done by sh.'''