Mercurial > hgsubversion
diff tests/test_fetch_branches.py @ 1103:6e1dbf6cbc92
compathacks: new module to collect hacks to work around hg internals changing
This includes branchset(), which provides a portable way to get the
set of branches present in a repository.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 03 Feb 2014 01:55:56 -0500 |
parents | 9a7e3dbd0f6e |
children | ba8485b9fee0 |
line wrap: on
line diff
--- a/tests/test_fetch_branches.py +++ b/tests/test_fetch_branches.py @@ -6,6 +6,8 @@ from mercurial import error from mercurial import hg from mercurial import node +from hgsubversion import compathacks + class TestFetchBranches(test_util.TestBase): stupid_mode_tests = True @@ -88,7 +90,7 @@ class TestFetchBranches(test_util.TestBa 'unorderedbranch.svndump', 'NaN') repo = self._load_fixture_and_fetch_with_anchor( 'unorderedbranch.svndump', '4') - self.assertTrue('c' not in repo.branchtags()) + self.assertTrue('c' not in compathacks.branchset(repo)) def test_branches_weird_moves(self): repo = self._load_fixture_and_fetch('renamedproject.svndump',