comparison tests/test-outgoing-incoming.py @ 27:46908f4b87d5

client: add bookmarks support to incoming and outgoing
author Idan Kamara <idankk86@gmail.com>
date Thu, 11 Aug 2011 22:59:05 +0300
parents b4e5c8745ef3
children 4359cabcb0cc
comparison
equal deleted inserted replaced
26:b4e5c8745ef3 27:46908f4b87d5
30 30
31 self.assertEquals(len(out), 1) 31 self.assertEquals(len(out), 1)
32 self.assertEquals(out[0].node, node) 32 self.assertEquals(out[0].node, node)
33 33
34 self.assertEquals(out, other.incoming()) 34 self.assertEquals(out, other.incoming())
35
36 def test_bookmarks(self):
37 self.append('a', 'a')
38 self.client.commit('first', addremove=True)
39 self.append('a', 'a')
40 self.client.commit('second')
41
42 self.client.clone(dest='other')
43 other = hglib.open('other')
44
45 self.client.bookmark('bm1', 1)
46
47 self.assertEquals(other.incoming(bookmarks=True),
48 [('bm1', self.client.tip().node[:12])])
49
50 self.assertEquals(self.client.outgoing(path='other', bookmarks=True),
51 [('bm1', self.client.tip().node[:12])])