diff hglib/client.py @ 38:32f6a2bbf63e

client: add identify command
author Idan Kamara <idankk86@gmail.com>
date Mon, 15 Aug 2011 22:46:45 +0300
parents 5506a241c826
children 0555d58a7313
line wrap: on
line diff
--- a/hglib/client.py	Mon Aug 15 22:46:45 2011 +0300
+++ b/hglib/client.py	Mon Aug 15 22:46:45 2011 +0300
@@ -356,6 +356,13 @@
 
             return self.rawcommand(args)
 
+    def identify(self, rev=None, source=None, num=False, id=False, branch=False,
+                 tags=False, bookmarks=False):
+        args = cmdbuilder('identify', source, r=rev, n=num, i=id, b=branch, t=tags,
+                          B=bookmarks)
+
+        return self.rawcommand(args)
+
     def import_(self, patches, strip=None, force=False, nocommit=False,
                 bypass=False, exact=False, importbranch=False, message=None,
                 date=None, user=None, similarity=None):