Mercurial > python-hglib
comparison hglib/client.py @ 42:b6b75c71ac58
client: add tag command
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 15 Aug 2011 22:46:45 +0300 |
parents | e185c3922c68 |
children | 77ebb51f5f36 |
comparison
equal
deleted
inserted
replaced
41:e185c3922c68 | 42:b6b75c71ac58 |
---|---|
611 else: | 611 else: |
612 l.append(tuple(entry.split(' ', 1))) | 612 l.append(tuple(entry.split(' ', 1))) |
613 | 613 |
614 return l | 614 return l |
615 | 615 |
616 def tag(self, names, rev=None, message=None, force=False, local=False, | |
617 remove=False, date=None, user=None): | |
618 if not isinstance(names, list): | |
619 names = [names] | |
620 | |
621 args = cmdbuilder('tag', *names, r=rev, m=message, f=force, l=local, | |
622 remove=remove, d=date, u=user) | |
623 | |
624 self.rawcommand(args) | |
625 | |
616 def tip(self): | 626 def tip(self): |
617 args = cmdbuilder('tip', template=templates.changeset) | 627 args = cmdbuilder('tip', template=templates.changeset) |
618 out = self.rawcommand(args) | 628 out = self.rawcommand(args) |
619 out = out.split('\0') | 629 out = out.split('\0') |
620 | 630 |