# HG changeset patch # User Idan Kamara # Date 1313437605 -10800 # Node ID 32f6a2bbf63e3f48c35f19a84012f4ec12466103 # Parent 5506a241c82658baab9f3c9b73e3ce767a182b92 client: add identify command diff -r 5506a241c826 -r 32f6a2bbf63e hglib/client.py --- 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):