# HG changeset patch # User Idan Kamara # Date 1313068161 -10800 # Node ID 297df22d6091ddc687a801aa094b36076e4b68b6 # Parent ffef7df076e862987759d7920f3d81a2691924f4 client: add backout command diff -r ffef7df076e8 -r 297df22d6091 hglib/client.py --- 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')