Mercurial > python-hglib
view tests/test_parents.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 | a2afbf236ca8 |
children |
line wrap: on
line source
from tests import common from hglib.util import b class test_parents(common.basetest): def test_noparents(self): self.assertEqual(self.client.parents(), None) def test_basic(self): self.append('a', 'a') rev, node = self.client.commit(b('first'), addremove=True) self.assertEqual(node, self.client.parents()[0].node) self.assertEqual(node, self.client.parents(file=b('a'))[0].node) def test_two_parents(self): pass