diff -r 9c660e691e90 -r 73ac95671788 mercurial/ui.py --- a/mercurial/ui.py Fri Jun 23 17:33:10 2006 -0700 +++ b/mercurial/ui.py Fri Jun 23 18:09:44 2006 -0700 @@ -197,12 +197,12 @@ if not self.verbose: user = util.shortuser(user) return user - def expandpath(self, loc): + def expandpath(self, loc, default=None): """Return repository location relative to cwd or from [paths]""" if loc.find("://") != -1 or os.path.exists(loc): return loc - return self.config("paths", loc, loc) + return self.config("paths", loc, default or loc) def write(self, *args): if self.header: