comparison tests/test-clone.py @ 93:a4fcece7dd8e

hglib: add top level clone method
author Idan Kamara <idankk86@gmail.com>
date Thu, 22 Dec 2011 19:12:47 +0200
parents
children 4359cabcb0cc
comparison
equal deleted inserted replaced
92:07efbd3bd09a 93:a4fcece7dd8e
1 import os
2 import common
3 import hglib
4
5 class test_clone(common.basetest):
6 def test_basic(self):
7 self.append('a', 'a')
8 self.client.commit('first', addremove=True)
9 cloned = hglib.clone('.', 'cloned')
10 self.assertRaises(ValueError, cloned.log)
11 cloned.open()
12 self.assertEquals(self.client.log(), cloned.log())