Mercurial > python-hglib
comparison tests/test-summary.py @ 187:9062a6b935ad
summary: parse commit line less strictly (issue5637)
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 02 Aug 2017 23:43:16 +0900 |
parents | dbb21a4c0eb9 |
children |
comparison
equal
deleted
inserted
replaced
186:d06b48001662 | 187:9062a6b935ad |
---|---|
1 import unittest | |
1 from tests import common | 2 from tests import common |
2 import hglib | 3 import hglib |
3 from hglib.util import b | 4 from hglib.util import b |
4 | 5 |
5 class test_summary(common.basetest): | 6 class test_summary(common.basetest): |
35 b('update') : 0} | 36 b('update') : 0} |
36 if self.client.version >= (3, 5): | 37 if self.client.version >= (3, 5): |
37 d[b('phases')] = b('1 draft') | 38 d[b('phases')] = b('1 draft') |
38 | 39 |
39 self.assertEquals(self.client.summary(), d) | 40 self.assertEquals(self.client.summary(), d) |
41 | |
42 def test_secret_commit_clean(self): | |
43 if self.client.version < (2, 1): | |
44 raise unittest.SkipTest('phase not supported') | |
45 self.append('a', 'a') | |
46 rev, node = self.client.commit(b('first'), addremove=True) | |
47 self.client.phase([b('%d') % rev], secret=True, force=True) | |
48 e = self.client.summary() | |
49 self.assertTrue(e[b('commit')]) | |
40 | 50 |
41 def test_update(self): | 51 def test_update(self): |
42 self.append('a', 'a') | 52 self.append('a', 'a') |
43 rev, node = self.client.commit(b('first'), addremove=True) | 53 rev, node = self.client.commit(b('first'), addremove=True) |
44 self.append('a', 'a') | 54 self.append('a', 'a') |