Add support for UCM:Tags in bzr

This commit is contained in:
Daniel Martí 2013-10-30 21:54:09 +01:00
parent d8d3f00e6b
commit 4c5cd7a360
3 changed files with 11 additions and 5 deletions

View file

@ -415,6 +415,12 @@ class vcs_bzr(vcs):
self.refreshed = False
self.srclib = None
def gettags(self):
p = subprocess.Popen(['bzr', 'tags'],
stdout=subprocess.PIPE, cwd=self.local)
return [tag.split(' ')[0].strip() for tag in
p.communicate()[0].splitlines()]
# Get the type expected for a given metadata field.
def metafieldtype(name):