tests/test-filecache.py.out
author Siddharth Agarwal <sid0@fb.com>
Sat, 16 Nov 2013 13:19:06 -0800
changeset 20043 88bd8df008f2
parent 20041 42deff43460a
child 20045 b3684fd2ff1a
permissions -rw-r--r--
scmutil: rename filecacheentry to filecachesubentry Upcoming patches will allow the file cache to watch over multiple files, and call the decorated function again if any of the files change. The particular use case for this is the bookmark store, which needs to be invalidated if either .hg/bookmarks or .hg/bookmarks.current changes. (This doesn't currently happen, which is a bug. This bug will also be fixed in upcoming patches.)

basic:

* file doesn't exist
creating
* file still doesn't exist
* empty file x created
creating
* file x changed size
creating
* nothing changed with file x
* file x changed inode
creating

fakeuncacheable:

* file doesn't exist
creating
* file still doesn't exist
creating
* empty file x created
creating
* file x changed size
creating
* nothing changed with file x
creating
* file x changed inode
creating
repository tip rolled back to revision -1 (undo commit)
working directory now based on revision -1
repository tip rolled back to revision -1 (undo commit)
working directory now based on revision -1

setbeforeget:

* file x doesn't exist
string set externally
* file x created
creating
string from function