mercurial/util.py
branchstable
changeset 20353 0889585b44f1
parent 20244 47d0843647d1
child 20542 be27652675ce
--- a/mercurial/util.py	Sat Feb 01 15:20:49 2014 -0600
+++ b/mercurial/util.py	Mon Feb 03 14:47:41 2014 -0800
@@ -1875,6 +1875,11 @@
             return path
         return self._origpath
 
+    def islocal(self):
+        '''whether localpath will return something that posixfile can open'''
+        return (not self.scheme or self.scheme == 'file'
+                or self.scheme == 'bundle')
+
 def hasscheme(path):
     return bool(url(path).scheme)