changeset 506 | 1f81ebff98c9 |
parent 350 | b4e0e20646bb |
child 508 | 42a660abaf75 |
--- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -41,6 +41,13 @@ class ui: return self.cdata.items(section) return [] + def expandpath(self, loc): + paths = {} + for name, path in self.configitems("paths"): + paths[name] = path + + return paths.get(loc, loc) + def write(self, *args): for a in args: sys.stdout.write(str(a))