Mercurial > python-hglib
comparison tests/test-outgoing-incoming.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 | eac8be119d81 |
children | b4e5c8745ef3 |
comparison
equal
deleted
inserted
replaced
14:e0d21c9db20b | 15:f1af31960414 |
---|---|
13 | 13 |
14 self.assertEquals(self.client.log(), bar.log()) | 14 self.assertEquals(self.client.log(), bar.log()) |
15 self.assertEquals(self.client.outgoing(path='bar'), bar.incoming()) | 15 self.assertEquals(self.client.outgoing(path='bar'), bar.incoming()) |
16 | 16 |
17 self.append('a', 'a') | 17 self.append('a', 'a') |
18 rev = self.client.commit('third') | 18 rev, node = self.client.commit('third') |
19 out = self.client.outgoing(path='bar') | 19 out = self.client.outgoing(path='bar') |
20 | 20 |
21 self.assertEquals(len(out), 1) | 21 self.assertEquals(len(out), 1) |
22 self.assertEquals(out[0], rev) | 22 self.assertEquals(out[0].node, node) |
23 | 23 |
24 self.assertEquals(out, bar.incoming()) | 24 self.assertEquals(out, bar.incoming()) |