diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-02-20 17:28:45 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-03-20 17:46:42 +0900 |
commit | 93e29955910527cde4b7895f78f72d1a7672d0bd (patch) | |
tree | c3fb3eda8255d988d54cdfd05c46d919e21733db /buildstream/plugins/sources/bzr.py | |
parent | 19cad981007d514cf15218b783ae05ed16cb511a (diff) | |
download | buildstream-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.py | 3 |
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 |