# HG changeset patch # User Idan Kamara # Date 1313437605 -10800 # Node ID b6b75c71ac58b139bfb8eada8808e045f4b4c622 # Parent e185c3922c68c1b6138e834da3e7941205c1ed76 client: add tag command diff -r e185c3922c68 -r b6b75c71ac58 hglib/client.py --- a/hglib/client.py Mon Aug 15 22:46:45 2011 +0300 +++ b/hglib/client.py Mon Aug 15 22:46:45 2011 +0300 @@ -613,6 +613,16 @@ return l + def tag(self, names, rev=None, message=None, force=False, local=False, + remove=False, date=None, user=None): + if not isinstance(names, list): + names = [names] + + args = cmdbuilder('tag', *names, r=rev, m=message, f=force, l=local, + remove=remove, d=date, u=user) + + self.rawcommand(args) + def tip(self): args = cmdbuilder('tip', template=templates.changeset) out = self.rawcommand(args)