comparison tests/hghave @ 9395:163e79e2ed5f

hghave: check for case insensitive filesystem in current dir check was done on TEMP
author Simon Heimberg <simohe@besonet.ch>
date Fri, 07 Aug 2009 15:34:54 +0200
parents b236f34ec1e9
children 57d682d7d2da
comparison
equal deleted inserted replaced
9394:31203db1b2ac 9395:163e79e2ed5f
76 finally: 76 finally:
77 os.remove(path) 77 os.remove(path)
78 78
79 def has_icasefs(): 79 def has_icasefs():
80 # Stolen from mercurial.util 80 # Stolen from mercurial.util
81 fd, path = tempfile.mkstemp(prefix=tempprefix) 81 fd, path = tempfile.mkstemp(prefix=tempprefix, dir='.')
82 os.close(fd) 82 os.close(fd)
83 try: 83 try:
84 s1 = os.stat(path) 84 s1 = os.stat(path)
85 d, b = os.path.split(path) 85 d, b = os.path.split(path)
86 p2 = os.path.join(d, b.upper()) 86 p2 = os.path.join(d, b.upper())