File: test_clone.py

package info (click to toggle)
python-hglib 2.6.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: python: 3,245; makefile: 20
file content (16 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
from tests import common
import hglib
from hglib.util import b

class test_clone(common.basetest):
    def test_basic(self):
        self.append('a', 'a')
        self.client.commit(b('first'), addremove=True)
        cloned = hglib.clone(b('.'), b('cloned'))
        self.assertRaises(ValueError, cloned.log)
        cloned.open()
        self.assertEqual(self.client.log(), cloned.log())

    def test_clone_uncompressed(self):
        hglib.clone(b('.'), b('cloned'), uncompressed=True)