comparison tests/test-branches.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 4359cabcb0cc
comparison
equal deleted inserted replaced
14:e0d21c9db20b 15:f1af31960414
11 self.append('a', 'a') 11 self.append('a', 'a')
12 rev1 = self.client.commit('second') 12 rev1 = self.client.commit('second')
13 branches = self.client.branches() 13 branches = self.client.branches()
14 14
15 expected = [] 15 expected = []
16 for r in (rev1, rev0): 16 for r, n in (rev1, rev0):
17 r = self.client.log(r)[0]
17 expected.append((r.branch, int(r.rev), r.node[:12])) 18 expected.append((r.branch, int(r.rev), r.node[:12]))
18 19
19 self.assertEquals(branches, expected) 20 self.assertEquals(branches, expected)
20 21
21 def test_active_closed(self): 22 def test_active_closed(self):