Add UCM:Tags support to hg

This commit is contained in:
Daniel Martí 2013-09-06 20:33:47 +02:00
parent 277788898e
commit 94b083063a
3 changed files with 10 additions and 4 deletions

View file

@ -342,6 +342,11 @@ class vcs_hg(vcs):
cwd=self.local) != 0:
raise VCSException("Hg checkout failed")
def gettags(self):
p = subprocess.Popen(['hg', 'tags', '-q'],
stdout=subprocess.PIPE, cwd=self.local)
return p.communicate()[0].splitlines()[1:]
class vcs_bzr(vcs):