comparison tests/test-bundle.py @ 54:29d01b5dc38c

client: add bundle command
author Idan Kamara <idankk86@gmail.com>
date Fri, 19 Aug 2011 20:07:56 +0300
parents
children 4359cabcb0cc
comparison
equal deleted inserted replaced
53:066dfa5c0b70 54:29d01b5dc38c
1 import common
2
3 class test_bundle(common.basetest):
4 def test_no_changes(self):
5 self.append('a', 'a')
6 rev, node0 = self.client.commit('first', addremove=True)
7 self.assertFalse(self.client.bundle('bundle', destrepo='.'))
8
9 def test_basic(self):
10 self.append('a', 'a')
11 rev, node0 = self.client.commit('first', addremove=True)
12 self.client.clone(dest='other')
13
14 self.append('a', 'a')
15 rev, node1 = self.client.commit('second')
16
17 self.assertTrue(self.client.bundle('bundle', destrepo='other'))