diff tests/test-branch.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 c2a9b716cd80
children 1b47146a4a2c
line wrap: on
line diff
--- a/tests/test-branch.py	Wed Aug 10 19:59:03 2011 +0300
+++ b/tests/test-branch.py	Wed Aug 10 19:59:08 2011 +0300
@@ -8,7 +8,9 @@
     def test_basic(self):
         self.assertEquals(self.client.branch('foo'), 'foo')
         self.append('a', 'a')
-        rev = self.client.commit('first', addremove=True)
+        rev, node = self.client.commit('first', addremove=True)
+
+        rev = self.client.log(node)[0]
 
         self.assertEquals(rev.branch, 'foo')
         self.assertEquals(self.client.branches(),