comparison mercurial/util.py @ 13795:43b5fe18ea6c

set NOT_CONTENT_INDEXED on .hg dir (issue2694) when running on Windows
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 28 Mar 2011 15:54:22 +0200
parents bc7b5d1c1999
children e574207e3bcd
comparison
equal deleted inserted replaced
13793:ba58c5a61503 13795:43b5fe18ea6c
435 if len(traceback.extract_tb(sys.exc_info()[2])) == 1: 435 if len(traceback.extract_tb(sys.exc_info()[2])) == 1:
436 raise error.SignatureError 436 raise error.SignatureError
437 raise 437 raise
438 438
439 return check 439 return check
440
441 def makedir(path, notindexed):
442 os.mkdir(path)
440 443
441 def unlinkpath(f): 444 def unlinkpath(f):
442 """unlink and remove the directory if it is empty""" 445 """unlink and remove the directory if it is empty"""
443 os.unlink(f) 446 os.unlink(f)
444 # try removing directories that might now be empty 447 # try removing directories that might now be empty