mercurial/util.py
branchstable
changeset 20353 0889585b44f1
parent 20244 47d0843647d1
child 20542 be27652675ce
equal deleted inserted replaced
20343:9139dedeffa6 20353:0889585b44f1
  1873                   and not hasdriveletter(path)):
  1873                   and not hasdriveletter(path)):
  1874                 path = '/' + path
  1874                 path = '/' + path
  1875             return path
  1875             return path
  1876         return self._origpath
  1876         return self._origpath
  1877 
  1877 
       
  1878     def islocal(self):
       
  1879         '''whether localpath will return something that posixfile can open'''
       
  1880         return (not self.scheme or self.scheme == 'file'
       
  1881                 or self.scheme == 'bundle')
       
  1882 
  1878 def hasscheme(path):
  1883 def hasscheme(path):
  1879     return bool(url(path).scheme)
  1884     return bool(url(path).scheme)
  1880 
  1885 
  1881 def hasdriveletter(path):
  1886 def hasdriveletter(path):
  1882     return path and path[1:2] == ':' and path[0:1].isalpha()
  1887     return path and path[1:2] == ':' and path[0:1].isalpha()