comparison tests/test-branch.py @ 12:c2a9b716cd80

client: rewrite branches(), return a list of (branchname, rev, node)
author Idan Kamara <idankk86@gmail.com>
date Wed, 10 Aug 2011 00:24:01 +0300
parents 0549d00a617d
children f1af31960414
comparison
equal deleted inserted replaced
11:0549d00a617d 12:c2a9b716cd80
9 self.assertEquals(self.client.branch('foo'), 'foo') 9 self.assertEquals(self.client.branch('foo'), 'foo')
10 self.append('a', 'a') 10 self.append('a', 'a')
11 rev = self.client.commit('first', addremove=True) 11 rev = self.client.commit('first', addremove=True)
12 12
13 self.assertEquals(rev.branch, 'foo') 13 self.assertEquals(rev.branch, 'foo')
14 self.assertEquals(self.client.branches()[rev.branch], rev) 14 self.assertEquals(self.client.branches(),
15 [(rev.branch, int(rev.rev), rev.node[:12])])
15 16
16 def test_reset_with_name(self): 17 def test_reset_with_name(self):
17 self.assertRaises(ValueError, self.client.branch, 'foo', clean=True) 18 self.assertRaises(ValueError, self.client.branch, 'foo', clean=True)
18 19
19 def test_reset(self): 20 def test_reset(self):