Mercurial > hgsubversion
comparison tests/test_tags.py @ 851:9ce00cb1d676
Merge alternate tunnel schemes.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 25 Feb 2012 14:51:22 -0600 |
parents | e9af7eba88db |
children | 04729f3a3d17 |
comparison
equal
deleted
inserted
replaced
850:d3bc067c0f72 | 851:9ce00cb1d676 |
---|---|
136 self.assertEqual(len(repo.heads()), headcount) | 136 self.assertEqual(len(repo.heads()), headcount) |
137 heads = repo.heads() | 137 heads = repo.heads() |
138 openheads = [h for h in heads if not repo[h].extra().get('close', False)] | 138 openheads = [h for h in heads if not repo[h].extra().get('close', False)] |
139 closedheads = set(heads) - set(openheads) | 139 closedheads = set(heads) - set(openheads) |
140 self.assertEqual(len(openheads), 1) | 140 self.assertEqual(len(openheads), 1) |
141 self.assertEqual(len(closedheads), headcount-1) | 141 self.assertEqual(len(closedheads), headcount - 1) |
142 closedheads = sorted(list(closedheads), | 142 closedheads = sorted(list(closedheads), |
143 cmp=lambda x,y: cmp(repo[x].rev(), repo[y].rev())) | 143 cmp=lambda x, y: cmp(repo[x].rev(), repo[y].rev())) |
144 | 144 |
145 # closeme has no open heads | 145 # closeme has no open heads |
146 for h in openheads: | 146 for h in openheads: |
147 self.assertNotEqual('closeme', repo[openheads[0]].branch()) | 147 self.assertNotEqual('closeme', repo[openheads[0]].branch()) |
148 | 148 |