summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-06 15:26:11 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-12 12:24:45 +0000
commita49db7757e2d2902989dc0601eda93557d1ee55c (patch)
tree4efaf4eedeb2c13a601dde282ccbf9eac9ff2fdd
parenteeb6c8bde8112dd760853a0f35d6d0d7d9676fa7 (diff)
downloaddefinitions-a49db7757e2d2902989dc0601eda93557d1ee55c.tar.gz
Add docstrings for some build functions
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index 332cdfe9..97f49eb4 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -1163,6 +1163,13 @@ class BranchAndMergePlugin(cliapp.Plugin):
def get_system_build_repos(self, system_branch, branch_dir,
branch_root, system_name):
+ '''Map upstream repository URLs to their checkouts in the system branch
+
+ Also provides the list of morphologies stored in each repository,
+ grouped by kind.
+
+ '''
+
build_repos = {}
def prepare_repo_info(repo, dirname):
@@ -1231,6 +1238,8 @@ class BranchAndMergePlugin(cliapp.Plugin):
info['build-ref'] = build_ref
def update_build_refs(self, build_repos, system_branch, build_uuid):
+ '''Update build branches for each repository with any local changes '''
+
# Define the committer.
committer_name = 'Morph (on behalf of %s)' % \
(morphlib.git.get_user_name(self.app.runcmd))