mercurial/posix.py
changeset 34647 dacfcdd8b94e
parent 34383 ab687e06fe02
child 35509 beede158ea8a
equal deleted inserted replaced
34646:238abf65a8ad 34647:dacfcdd8b94e
   330 # what normcase does to ASCII strings
   330 # what normcase does to ASCII strings
   331 normcasespec = encoding.normcasespecs.lower
   331 normcasespec = encoding.normcasespecs.lower
   332 # fallback normcase function for non-ASCII strings
   332 # fallback normcase function for non-ASCII strings
   333 normcasefallback = normcase
   333 normcasefallback = normcase
   334 
   334 
   335 if pycompat.sysplatform == 'darwin':
   335 if pycompat.isdarwin:
   336 
   336 
   337     def normcase(path):
   337     def normcase(path):
   338         '''
   338         '''
   339         Normalize a filename for OS X-compatible comparison:
   339         Normalize a filename for OS X-compatible comparison:
   340         - escape-encode invalid characters
   340         - escape-encode invalid characters