Mercurial > python-hglib
changeset 22:297df22d6091
client: add backout command
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 11 Aug 2011 16:09:21 +0300 |
parents | ffef7df076e8 |
children | 223e463c25e0 |
files | hglib/client.py |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hglib/client.py Thu Aug 11 16:02:01 2011 +0300 +++ b/hglib/client.py Thu Aug 11 16:09:21 2011 +0300 @@ -140,6 +140,16 @@ self.server = None return ret + def backout(self, rev, merge=False, parent=None, tool=None, message=None, + logfile=None, date=None, user=None): + if message and logfile: + raise ValueError("cannot specify both a message and a logfile") + + args = cmdbuilder('backout', r=rev, merge=merge, parent=parent, t=tool, + m=message, l=logfile, d=date, u=user) + + self.rawcommand(args) + def branch(self, name=None, clean=False, force=False): if name and clean: raise ValueError('cannot use both name and clean')