diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-09-05 17:13:30 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-09-05 17:13:30 +0000 |
commit | ae969415ce067d8c06795d51f8247d26cb23808b (patch) | |
tree | 717dc4f9b8fe3301f889b980c25b7dd59da6da11 /morphlib/cachekeycomputer.py | |
parent | b9488584415d94fc28c2e064b917183b851af07b (diff) | |
download | morph-ae969415ce067d8c06795d51f8247d26cb23808b.tar.gz |
Compute cache keys using tree SHA1s instead of commit SHA1s
This avoids rebuilding things when commits are made that do not
change the actual source code or the morphologies.
Diffstat (limited to 'morphlib/cachekeycomputer.py')
-rw-r--r-- | morphlib/cachekeycomputer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py index ca6776b7..a11334e3 100644 --- a/morphlib/cachekeycomputer.py +++ b/morphlib/cachekeycomputer.py @@ -87,7 +87,7 @@ class CacheKeyComputer(object): kind = artifact.source.morphology['kind'] if kind == 'chunk': - keys['ref'] = artifact.source.sha1 + keys['tree'] = artifact.source.tree elif kind in ('system', 'stratum'): morphology = artifact.source.morphology le_dict = dict((k, morphology[k]) for k in morphology.keys()) |