view tests/test_bundle.py @ 227:484b56ac4aec default tip

hglib: cat accepts a template argument
author Julien Cristau <jcristau@mozilla.com>
date Mon, 17 Jun 2024 17:17:58 +0200
parents 8341f2494b3f
children
line wrap: on
line source

from tests import common
from hglib.util import b

class test_bundle(common.basetest):
    def test_no_changes(self):
        self.append('a', 'a')
        rev, node0 = self.client.commit(b('first'), addremove=True)
        self.assertFalse(self.client.bundle(b('bundle'), destrepo=b('.')))

    def test_basic(self):
        self.append('a', 'a')
        rev, node0 = self.client.commit(b('first'), addremove=True)
        self.client.clone(dest=b('other'))

        self.append('a', 'a')
        rev, node1 = self.client.commit(b('second'))

        self.assertTrue(self.client.bundle(b('bundle'), destrepo=b('other')))