Mercurial > hgsubversion
diff tests/test_fetch_branches.py @ 425:f5222d021665
tests: fix for new branch heads change in upstream hg.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 15 Jun 2009 12:26:19 -0500 |
parents | 1b9d004a8c0a |
children | 45df4d9320fa |
line wrap: on
line diff
--- a/tests/test_fetch_branches.py +++ b/tests/test_fetch_branches.py @@ -22,9 +22,9 @@ class TestFetchBranches(test_util.TestBa return hg.repository(ui.ui(), self.wc_path) def openbranches(self, repo): - hctxs = [repo[hn] for hn in repo.heads(closed=False)] - branches = set(ctx.branch() for ctx in hctxs) - branches.discard('closed-branches') + hctxs = [repo[hn] for hn in repo.heads()] + branches = set(ctx.branch() for ctx in hctxs if + ctx.extra().get('close', None) != '1') return sorted(branches) def test_unrelatedbranch(self, stupid=False):