Mercurial > hgsubversion
comparison tests/test_fetch_branches.py @ 1039:3df6ed4e7561
drop support for pre-2.0 versions of Mercurial
| author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
|---|---|
| date | Mon, 05 Aug 2013 20:49:53 +0200 |
| parents | a80b01ceb1fc |
| children | d741f536f23a |
comparison
equal
deleted
inserted
replaced
| 1038:aa043f64d8b7 | 1039:3df6ed4e7561 |
|---|---|
| 1 import test_util | 1 import test_util |
| 2 | 2 |
| 3 import unittest | 3 import unittest |
| 4 | 4 |
| 5 from mercurial import error | |
| 5 from mercurial import hg | 6 from mercurial import hg |
| 6 from mercurial import node | 7 from mercurial import node |
| 7 from mercurial import util as hgutil | |
| 8 | 8 |
| 9 class TestFetchBranches(test_util.TestBase): | 9 class TestFetchBranches(test_util.TestBase): |
| 10 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor): | 10 def _load_fixture_and_fetch_with_anchor(self, fixture_name, anchor): |
| 11 repo_path = self.load_svndump(fixture_name) | 11 repo_path = self.load_svndump(fixture_name) |
| 12 source = '%s#%s' % (test_util.fileurl(repo_path), anchor) | 12 source = '%s#%s' % (test_util.fileurl(repo_path), anchor) |
| 106 | 106 |
| 107 def test_branch_tip_update_to_default_stupid(self): | 107 def test_branch_tip_update_to_default_stupid(self): |
| 108 self.test_branch_tip_update_to_default(True) | 108 self.test_branch_tip_update_to_default(True) |
| 109 | 109 |
| 110 def test_branch_pull_anchor(self): | 110 def test_branch_pull_anchor(self): |
| 111 self.assertRaises(hgutil.Abort, | 111 self.assertRaises(error.RepoLookupError, |
| 112 self._load_fixture_and_fetch_with_anchor, | 112 self._load_fixture_and_fetch_with_anchor, |
| 113 'unorderedbranch.svndump', 'NaN') | 113 'unorderedbranch.svndump', 'NaN') |
| 114 repo = self._load_fixture_and_fetch_with_anchor( | 114 repo = self._load_fixture_and_fetch_with_anchor( |
| 115 'unorderedbranch.svndump', '4') | 115 'unorderedbranch.svndump', '4') |
| 116 self.assertTrue('c' not in repo.branchtags()) | 116 self.assertTrue('c' not in repo.branchtags()) |
