diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-18 13:29:17 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-18 13:34:25 +0100 |
commit | 5eb0ee253316dc930a4f53a8366764c280ae8fe5 (patch) | |
tree | cb82a6bb54eb4d3bdff1f1a8c82f6af60ee820f8 /morphlib/artifact_tests.py | |
parent | ad31f7608febab04157e015a90f5047a6f0d8d83 (diff) | |
download | morph-5eb0ee253316dc930a4f53a8366764c280ae8fe5.tar.gz |
Add RemoteRepoCache and integrate it into _create_source_pool().
This adds a new setting called 'cache-server' to morph. It is None
by default and should be set to the HTTP URL of a morph cache server
to be used.
The RemoteRepoCache object provides two methods: resolve_ref() and
cat_file(), both of which wrap the communication with the cache
server and return a SHA1 string and file contents, respectively.
The _create_source_pool() method now takes a local and an optional
remote repo cache and tries to do whatever is best to resolve
refs and load morphologies for the Source objects it creates.
Diffstat (limited to 'morphlib/artifact_tests.py')
0 files changed, 0 insertions, 0 deletions