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/__init__.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/__init__.py')
-rw-r--r-- | morphlib/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/__init__.py b/morphlib/__init__.py index 859c0699..be3d7c5c 100644 --- a/morphlib/__init__.py +++ b/morphlib/__init__.py @@ -40,6 +40,7 @@ import localrepocache import morph2 import morphology import morphologyloader +import remoterepocache import savefile import source import sourcemanager |