diff hglib/client.py @ 17:b68c444d42bb

client: add missing options to log() leaving --patch/stat out for now
author Idan Kamara <idankk86@gmail.com>
date Wed, 10 Aug 2011 23:27:57 +0300
parents 943aff89b068
children 518149e32888
line wrap: on
line diff
--- a/hglib/client.py	Wed Aug 10 20:33:08 2011 +0300
+++ b/hglib/client.py	Wed Aug 10 23:27:57 2011 +0300
@@ -266,8 +266,15 @@
         out = util.eatlines(out, 2).split('\0')[:-1]
         return self._parserevs(out)
 
-    def log(self, revrange=None):
-        args = cmdbuilder('log', template=templates.changeset, rev=revrange)
+    def log(self, revrange=None, files=[], follow=False, followfirst=False,
+            date=None, copies=False, keyword=None, removed=False, onlymerges=False,
+            user=None, branch=None, prune=None, hidden=False, limit=None,
+            nomerges=False, include=None, exclude=None):
+        args = cmdbuilder('log', *files, template=templates.changeset,
+                          r=revrange, f=follow, follow_first=followfirst,
+                          d=date, C=copies, k=keyword, removed=removed,
+                          m=onlymerges, u=user, b=branch, P=prune, h=hidden,
+                          l=limit, M=nomerges, I=include, X=exclude)
 
         out = self.rawcommand(args)
         out = out.split('\0')[:-1]