--- a/tests/hghave Sat Jul 23 12:29:52 2011 +0200
+++ b/tests/hghave Mon Jul 25 15:03:02 2011 +0300
@@ -101,6 +101,16 @@
def has_fifo():
return hasattr(os, "mkfifo")
+def has_cacheable_fs():
+ from mercurial import util
+
+ fd, path = tempfile.mkstemp(prefix=tempprefix)
+ os.close(fd)
+ try:
+ return util.cachestat(path).cacheable()
+ finally:
+ os.remove(path)
+
def has_lsprof():
try:
import _lsprof
@@ -200,6 +210,7 @@
"baz": (has_baz, "GNU Arch baz client"),
"bzr": (has_bzr, "Canonical's Bazaar client"),
"bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"),
+ "cacheable": (has_cacheable_fs, "cacheable filesystem"),
"cvs": (has_cvs, "cvs client/server"),
"darcs": (has_darcs, "darcs client"),
"docutils": (has_docutils, "Docutils text processing library"),