diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-07-18 16:10:20 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-07-22 15:55:26 +0100 |
commit | 416594f21f672f651a383f37dd244381af61b10b (patch) | |
tree | ad1aeb73451c94625be429f94c6d7bf4efed17d3 /morphlib/morphologyfactory_tests.py | |
parent | d0496731276c7b5314e7201117ca8536be4b5308 (diff) | |
download | morph-416594f21f672f651a383f37dd244381af61b10b.tar.gz |
Use chunk morpholgy contents in cache keys
Previously the contents of the morphology would be included by virtue of
the fact that it came from the source repository, so would be included
in the "tree" field.
Now that chunk morphologies can come from the definitions repository, it
is not always included in the "tree" field, so the logical contents of
the morphology need to be included in the cache key computation.
Build commands are included after looking them up in the build-system,
so that in future, we don't need to change the chunk morphology
compatibility version when we change how build-systems work.
Since we may be moving the morphologies about in the definitions
repository, it would suck if we had to do a full rebuild after we move
things, so I dropped the filename from the cache key.
This also tweaks the system and stratum cache keys to include the
contents directly, rather than hashed in the "morphology-sha1" field.
Diffstat (limited to 'morphlib/morphologyfactory_tests.py')
0 files changed, 0 insertions, 0 deletions