diff hglib/client.py @ 15:f1af31960414

client: change return value of commit() to (rev, node) this is the original output hg emits with commit --debug
author Idan Kamara <idankk86@gmail.com>
date Wed, 10 Aug 2011 19:59:08 +0300
parents e0d21c9db20b
children 943aff89b068
line wrap: on
line diff
--- a/hglib/client.py	Wed Aug 10 19:59:03 2011 +0300
+++ b/hglib/client.py	Wed Aug 10 19:59:08 2011 +0300
@@ -186,7 +186,7 @@
 
         out = self.rawcommand(args)
         rev, node = out.splitlines()[-1].rsplit(':')
-        return self.log(node)[0]
+        return int(rev.split()[-1]), node
 
     def config(self, refresh=False):
         if not self._config or refresh: