Mercurial > hgsubversion
diff tests/test_fetch_branches.py @ 344:4dfab1b8b7be
Mention what failed when given a non-numeric revision to clone/pull.
Replace test_branch_tip_update_to_branch_anchor with test_branch_pull_anchor
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 20 May 2009 21:15:47 +0200 |
parents | 46e69be8e2c8 |
children | a62965b179c1 |
line wrap: on
line diff
--- a/tests/test_fetch_branches.py +++ b/tests/test_fetch_branches.py @@ -3,6 +3,7 @@ import unittest from mercurial import hg from mercurial import node from mercurial import ui +from mercurial import util as hgutil import test_util @@ -78,11 +79,13 @@ class TestFetchBranches(test_util.TestBa def test_branch_tip_update_to_default_stupid(self): self.test_branch_tip_update_to_default(True) - def test_branch_tip_update_to_branch_anchor(self): + def test_branch_pull_anchor(self): + self.assertRaises(hgutil.Abort, + self._load_fixture_and_fetch_with_anchor, + 'unorderedbranch.svndump', 'NaN') repo = self._load_fixture_and_fetch_with_anchor( - 'unorderedbranch.svndump', 'branch') - self.assertEqual(repo[None].branch(), 'branch') - self.assertEqual(repo[None].parents()[0], repo[repo.branchheads()[0]]) + 'unorderedbranch.svndump', '4') + self.assertTrue('c' not in repo.branchtags()) def test_branches_weird_moves(self, stupid=False): repo = self._load_fixture_and_fetch('renamedproject.svndump', stupid,