tests/test-filecache.py
changeset 15057 774da7121fc9
parent 14982 4c01478991a3
child 15518 d01e08ea459d
equal deleted inserted replaced
15056:8413916df816 15057:774da7121fc9
    57     # atomic replace file, size doesn't change
    57     # atomic replace file, size doesn't change
    58     # hopefully st_mtime doesn't change as well so this doesn't use the cache
    58     # hopefully st_mtime doesn't change as well so this doesn't use the cache
    59     # because of inode change
    59     # because of inode change
    60     f = scmutil.opener('.')('x', 'w', atomictemp=True)
    60     f = scmutil.opener('.')('x', 'w', atomictemp=True)
    61     f.write('b')
    61     f.write('b')
    62     f.rename()
    62     f.close()
    63 
    63 
    64     repo.invalidate()
    64     repo.invalidate()
    65     repo.cached
    65     repo.cached
    66 
    66 
    67 def fakeuncacheable():
    67 def fakeuncacheable():