Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 1892:622ee75cb4c9
Directory names take precedence over symbolic names consistently.
Previously this was only done for clone.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 12 Mar 2006 18:05:13 +0100 |
parents | c0320567931f |
children | 6569651a4f1e |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Mar 12 15:11:11 2006 +0100 +++ b/mercurial/ui.py Sun Mar 12 18:05:13 2006 +0100 @@ -154,6 +154,10 @@ return user def expandpath(self, loc, root=""): + """Return repository location relative to cwd or from [paths]""" + if os.path.exists(loc): + return loc + paths = {} for name, path in self.configitems("paths"): m = path.find("://")