Mercurial > hgsubversion
comparison tests/test_tags.py @ 1599:7bb6562feb85
compathacks: drop branchset() which is compat code for hg<2.9
| author | Pulkit Goyal <pulkit@yandex-team.ru> |
|---|---|
| date | Tue, 27 Nov 2018 14:08:11 +0300 |
| parents | e2d38f6b8afe |
| children |
comparison
equal
deleted
inserted
replaced
| 1598:394007c5efea | 1599:7bb6562feb85 |
|---|---|
| 49 """ | 49 """ |
| 50 self._test_tags('rename_tag_test.svndump', expected) | 50 self._test_tags('rename_tag_test.svndump', expected) |
| 51 | 51 |
| 52 def test_branch_from_tag(self): | 52 def test_branch_from_tag(self): |
| 53 repo = self._load_fixture_and_fetch('branch_from_tag.svndump') | 53 repo = self._load_fixture_and_fetch('branch_from_tag.svndump') |
| 54 self.assert_('branch_from_tag' in compathacks.branchset(repo)) | 54 self.assert_('branch_from_tag' in repo.branchmap()) |
| 55 self.assertEqual(repo[1], revsymbol(repo, 'tag_r3')) | 55 self.assertEqual(repo[1], revsymbol(repo, 'tag_r3')) |
| 56 self.assertEqual(revsymbol(repo, 'branch_from_tag').parents()[0], | 56 self.assertEqual(revsymbol(repo, 'branch_from_tag').parents()[0], |
| 57 revsymbol(repo, 'copied_tag')) | 57 revsymbol(repo, 'copied_tag')) |
| 58 | 58 |
| 59 def test_tag_by_renaming_branch(self): | 59 def test_tag_by_renaming_branch(self): |
