# HG changeset patch # User Idan Kamara # Date 1313074436 -10800 # Node ID 223e463c25e05f5e191163ca444ed3c4bdc82834 # Parent 297df22d6091ddc687a801aa094b36076e4b68b6 client: add bookmark command diff -r 297df22d6091 -r 223e463c25e0 hglib/client.py --- a/hglib/client.py Thu Aug 11 16:09:21 2011 +0300 +++ b/hglib/client.py Thu Aug 11 17:53:56 2011 +0300 @@ -150,6 +150,13 @@ self.rawcommand(args) + def bookmark(self, name, rev=None, force=False, delete=False, inactive=False, + rename=None): + args = cmdbuilder('bookmark', name, r=rev, f=force, d=delete, + i=inactive, m=rename) + + self.rawcommand(args) + def branch(self, name=None, clean=False, force=False): if name and clean: raise ValueError('cannot use both name and clean')