mercurial/ui.py
changeset 1892 622ee75cb4c9
parent 1882 c0320567931f
child 1893 6569651a4f1e
equal deleted inserted replaced
1891:e5c8e38b788f 1892:622ee75cb4c9
   152             if f >= 0:
   152             if f >= 0:
   153                 user = user[f+1:]
   153                 user = user[f+1:]
   154         return user
   154         return user
   155 
   155 
   156     def expandpath(self, loc, root=""):
   156     def expandpath(self, loc, root=""):
       
   157         """Return repository location relative to cwd or from [paths]"""
       
   158         if os.path.exists(loc):
       
   159             return loc
       
   160 
   157         paths = {}
   161         paths = {}
   158         for name, path in self.configitems("paths"):
   162         for name, path in self.configitems("paths"):
   159             m = path.find("://")
   163             m = path.find("://")
   160             if m == -1:
   164             if m == -1:
   161                     path = os.path.join(root, path)
   165                     path = os.path.join(root, path)