changeset 506 | 1f81ebff98c9 |
parent 350 | b4e0e20646bb |
child 508 | 42a660abaf75 |
--- a/mercurial/ui.py Tue Jun 28 02:22:45 2005 -0800 +++ b/mercurial/ui.py Tue Jun 28 02:30:36 2005 -0800 @@ -41,6 +41,13 @@ 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))