mercurial/posix.py
branchstable
changeset 15488 6eff984d8e76
parent 15353 ab600a25dfc0
child 15499 58f96703a9ab
equal deleted inserted replaced
15487:3c72117a7a0e 15488:6eff984d8e76
   162     guaranteed to work for files, not directories."""
   162     guaranteed to work for files, not directories."""
   163     st1 = os.lstat(fpath1)
   163     st1 = os.lstat(fpath1)
   164     st2 = os.lstat(fpath2)
   164     st2 = os.lstat(fpath2)
   165     return st1.st_dev == st2.st_dev
   165     return st1.st_dev == st2.st_dev
   166 
   166 
       
   167 # os.path.normcase is a no-op, which doesn't help us on non-native filesystems
       
   168 def normcase(path):
       
   169     return path.lower()
       
   170 
   167 if sys.platform == 'darwin':
   171 if sys.platform == 'darwin':
   168     import fcntl # only needed on darwin, missing on jython
   172     import fcntl # only needed on darwin, missing on jython
   169     def realpath(path):
   173     def realpath(path):
   170         '''
   174         '''
   171         Returns the true, canonical file system path equivalent to the given
   175         Returns the true, canonical file system path equivalent to the given