summaryrefslogtreecommitdiff
path: root/morphlib/workspace.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-09-17 14:29:43 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-09-17 14:34:04 +0000
commit4e6389c2f02c71cb2f2d3af738f421f8bbc5ea73 (patch)
treeab67dc4742b436aaa2f9e89b85345629022010f6 /morphlib/workspace.py
parent0fc54dcc96b52f97c1e270f079fc7bf1bc0abd2b (diff)
downloadmorph-4e6389c2f02c71cb2f2d3af738f421f8bbc5ea73.tar.gz
workspace: add method for listing system branches
Diffstat (limited to 'morphlib/workspace.py')
-rw-r--r--morphlib/workspace.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/workspace.py b/morphlib/workspace.py
index 93f699e6..27ccbe65 100644
--- a/morphlib/workspace.py
+++ b/morphlib/workspace.py
@@ -87,6 +87,11 @@ class Workspace(object):
dirname, root_repository_url, system_branch_name)
return sb
+ def list_system_branches(self):
+ return (morphlib.sysbranchdir.open(dirname)
+ for dirname in
+ morphlib.util.find_leaves(self.root, '.morph-system-branch'))
+
def open(dirname):
'''Open an existing workspace.