summaryrefslogtreecommitdiff
path: root/morphlib/__init__.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-05 14:04:06 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-05 14:04:06 +0000
commit9ee503f122b12b0c1c57470ea9fb391d9079642a (patch)
tree837d2d1e7745fda8535330c7f1b8852c5fd4ab3c /morphlib/__init__.py
parentcb842f99895da98a9696cfa770d42e8324c9fdb4 (diff)
downloadmorph-9ee503f122b12b0c1c57470ea9fb391d9079642a.tar.gz
morphlib: Add MorphologyFinder class
MorphologyFinder is a small wrapper on top of GitDirectory that allows the inspection of morphologies in the repository. Its purpose is to isolate the logic for reading morphologies into one place. It is used by passing a GitDirectory and optionally a ref to the MorpholgyFinder constructor, then list_morphologies and read_morphology may be used. The ref is passed directly to the GitDirectory, so its semantics for a ref of None or omitted are used. i.e. It uses the working tree. Ref resolving is deferred until a morphology is listed or read, so it will not raise an exception for an invalid ref until then.
Diffstat (limited to 'morphlib/__init__.py')
-rw-r--r--morphlib/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/morphlib/__init__.py b/morphlib/__init__.py
index bcdd733b..b1e3c7c3 100644
--- a/morphlib/__init__.py
+++ b/morphlib/__init__.py
@@ -65,6 +65,7 @@ import localrepocache
import mountableimage
import morph2
import morphologyfactory
+import morphologyfinder
import morph3
import morphloader
import morphset