mercurial/windows.py
changeset 20202 a6014018ec28
parent 18868 cafa447a7d3b
child 22245 234e4c24b980
equal deleted inserted replaced
20201:bc3b48b0f5c8 20202:a6014018ec28
   130 def normpath(path):
   130 def normpath(path):
   131     return pconvert(os.path.normpath(path))
   131     return pconvert(os.path.normpath(path))
   132 
   132 
   133 def normcase(path):
   133 def normcase(path):
   134     return encoding.upper(path)
   134     return encoding.upper(path)
   135 
       
   136 def realpath(path):
       
   137     '''
       
   138     Returns the true, canonical file system path equivalent to the given
       
   139     path.
       
   140     '''
       
   141     # TODO: There may be a more clever way to do this that also handles other,
       
   142     # less common file systems.
       
   143     return os.path.normpath(normcase(os.path.realpath(path)))
       
   144 
   135 
   145 def samestat(s1, s2):
   136 def samestat(s1, s2):
   146     return False
   137     return False
   147 
   138 
   148 # A sequence of backslashes is special iff it precedes a double quote:
   139 # A sequence of backslashes is special iff it precedes a double quote: