summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-04-09 13:49:11 (GMT)
committerSteven Knight <knight@baldmt.com>2002-04-09 13:49:11 (GMT)
commit72b58192cc6bea9962cff01f2d72e8de77591bda (patch)
tree584a5efd3d6ca331f6b3cf93d17f49055ca890df /src/engine/SCons/Node/FS.py
parent3ccdd2cb4b633d5d3603d1af53c2e578f1af8f1d (diff)
downloadSCons-72b58192cc6bea9962cff01f2d72e8de77591bda.zip
SCons-72b58192cc6bea9962cff01f2d72e8de77591bda.tar.gz
SCons-72b58192cc6bea9962cff01f2d72e8de77591bda.tar.bz2
Implement content signature caching and --max-drift (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Node/FS.py')
-rw-r--r--src/engine/SCons/Node/FS.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index 0f8425f..c49361d 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -520,10 +520,19 @@ class File(Entry):
else:
return 0
- def store_sigs(self):
- """Update a file's .sconsign entry with its current info."""
- self.dir.sconsign().set(self.name, self.get_timestamp(),
- self.get_bsig(), self.get_csig())
+ def store_csig(self):
+ old = self.get_prevsiginfo()
+ self.dir.sconsign().set(self.name,
+ self.get_timestamp(),
+ old[1],
+ self.get_csig())
+
+ def store_bsig(self):
+ old = self.get_prevsiginfo()
+ self.dir.sconsign().set(self.name,
+ self.get_timestamp(),
+ self.get_bsig(),
+ old[2])
def get_prevsiginfo(self):
"""Fetch the previous signature information from the