diff hglib/client.py @ 23:223e463c25e0

client: add bookmark command
author Idan Kamara <idankk86@gmail.com>
date Thu, 11 Aug 2011 17:53:56 +0300
parents 297df22d6091
children ca0d7e212cf8
line wrap: on
line diff
--- 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')