summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-08 17:45:25 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-08 17:50:41 +0000
commitc163d09ab436b6c219dc17f371f29c35d0c1d0da (patch)
tree20ea72d067822f3bc577ea04d45c07b42543ba55 /morph
parentb8cc5411736207df12b2a6a0bdcc299c8db22301 (diff)
downloadmorph-c163d09ab436b6c219dc17f371f29c35d0c1d0da.tar.gz
Cache submodule repositories recursively.
This commit introduces the following new classes: morphlib.git.Submodules: * takes a parent repo treeish * parses the .gitmodule file into morphlib.git.Submodule objects * provides iterator/container functionality for submodules morphlib.git.Submodule: * represents a single entry in a .gitmodules file * stores a Treeish for the corresponding repository In addition to this, the exception classes InvalidTreeish and SourceNotFound where renamed to InvalidReferenceError and RepositoryUpdateError. Several new exception classes were added for when resolving submodules fails. The SourceManager now resolves the Submodules and Submodule objects for the submodules of a Treeish in SourceManager.get_treeish() and also takes care of caching submodule repositories whenever necessary.
Diffstat (limited to 'morph')
0 files changed, 0 insertions, 0 deletions