summaryrefslogtreecommitdiff
path: root/morphlib/sysbranchdir_tests.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-20 10:23:11 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-20 13:48:33 +0000
commitafcb1146a2ed1a09244266f4e302ee78d8625b92 (patch)
tree6c0fb65b1632b3b11c4b393efea7c3a3e9c16446 /morphlib/sysbranchdir_tests.py
parent9cdeacaea8528c1bc090046715374882e9be0e15 (diff)
downloadmorph-afcb1146a2ed1a09244266f4e302ee78d8625b92.tar.gz
sourceresolver: Always try to read chunk morph files from definitions
This fixes the 'Morph ignores the chunk morph file I added to definitions' regression introduced in the recent build-graph speedups branch. The new 'detected-chunk-buildsystems' cache associates a (chunk repo, chunk ref) pair with the auto-detected build system. When calculating the build graph, if the is an auto-detected build system known already, that will be used instead of looking for a chunk morphology. There's a flaw here: if the user added or changed the chunk morphology in the definitions repo, the *chunk* ref won't necessarily have changed -- so Morph will ignore the user's changes, if it had already cached an autodetected buildsystem for that repo/ref pair. This doesn't cost much in terms of speed because we're just reading a file from disk. We can still avoid looking in the chunk repo for a chunk morph, because the chunk ref would be different if something had changed in the chunk repo.
Diffstat (limited to 'morphlib/sysbranchdir_tests.py')
0 files changed, 0 insertions, 0 deletions