Skip to content

Instantly share code, notes, and snippets.

@jborg
Created May 2, 2014 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jborg/5e3a948454ac3f8db84d to your computer and use it in GitHub Desktop.
Save jborg/5e3a948454ac3f8db84d to your computer and use it in GitHub Desktop.
diff --git a/attic/cache.py b/attic/cache.py
index 65362ff..d650ef4 100644
--- a/attic/cache.py
+++ b/attic/cache.py
@@ -205,6 +205,7 @@ class Cache(object):
stats.update(-size, -csize, False)
def file_known_and_unchanged(self, path_hash, st):
+ return
if self.files is None:
self._read_files()
entry = self.files.get(path_hash)
@@ -218,6 +219,7 @@ class Cache(object):
return None
def memorize_file(self, path_hash, st, ids):
+ return
# Entry: Age, inode, size, mtime, chunk ids
mtime_ns = st_mtime_ns(st)
self.files[path_hash] = 0, st.st_ino, st.st_size, mtime_ns, ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment