# HG changeset patch # User Julien Cristau # Date 1441007554 -7200 # Node ID 568bca4ff58e0ac906091e3b066966562bdf5753 # Parent 8bc9c076cbb6848d2dc92675822093f841fc8ebc tests: update test-summary for mercurial 3.5 changeset 1ef96a3b8b89 added some phases information to 'hg summary'. Reported at https://bugs.debian.org/797287 diff -r 8bc9c076cbb6 -r 568bca4ff58e tests/test-summary.py --- a/tests/test-summary.py Fri Jul 31 12:20:22 2015 -0500 +++ b/tests/test-summary.py Mon Aug 31 09:52:34 2015 +0200 @@ -19,6 +19,8 @@ b('branch') : b('default'), b('commit') : True, b('update') : 0} + if self.client.version >= (3, 5): + d[b('phases')] = '1 draft' self.assertEquals(self.client.summary(), d) @@ -31,6 +33,8 @@ b('branch') : b('default'), b('commit') : False, b('update') : 0} + if self.client.version >= (3, 5): + d[b('phases')] = '1 draft' self.assertEquals(self.client.summary(), d) @@ -45,6 +49,8 @@ b('branch') : b('default'), b('commit') : True, b('update') : 1} + if self.client.version >= (3, 5): + d[b('phases')] = '2 draft' self.assertEquals(self.client.summary(), d) @@ -90,6 +96,8 @@ else: tags = b('tip') d[b('parent')] = [(1, node[:12], tags, b('second in other'))] + if self.client.version >= (3, 5): + d[b('phases')] = '1 draft' self.assertEquals(other.summary(remote=True), d) @@ -111,5 +119,7 @@ b('branch') : b('default'), b('commit') : False, b('update') : 0} + if self.client.version >= (3, 5): + d[b('phases')] = '3 draft' self.assertEquals(self.client.summary(), d)