summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/bzr.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-02-20 17:28:45 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-03-20 17:46:42 +0900
commit93e29955910527cde4b7895f78f72d1a7672d0bd (patch)
treec3fb3eda8255d988d54cdfd05c46d919e21733db /buildstream/plugins/sources/bzr.py
parent19cad981007d514cf15218b783ae05ed16cb511a (diff)
downloadbuildstream-93e29955910527cde4b7895f78f72d1a7672d0bd.tar.gz
Source plugins: Implement load_ref() in all source plugins
Diffstat (limited to 'buildstream/plugins/sources/bzr.py')
-rw-r--r--buildstream/plugins/sources/bzr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/plugins/sources/bzr.py b/buildstream/plugins/sources/bzr.py
index 88349561c..93db3463c 100644
--- a/buildstream/plugins/sources/bzr.py
+++ b/buildstream/plugins/sources/bzr.py
@@ -84,6 +84,9 @@ class BzrSource(Source):
else:
return Consistency.RESOLVED
+ def load_ref(self, node):
+ self.ref = self.node_get_member(node, str, 'ref', '') or None
+
def get_ref(self):
return self.ref