diff tests/test_single_dir_clone.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 d55c9d0ba350
children
line wrap: on
line diff
--- a/tests/test_single_dir_clone.py
+++ b/tests/test_single_dir_clone.py
@@ -21,7 +21,7 @@ class TestSingleDirClone(test_util.TestB
         repo = self._load_fixture_and_fetch('branch_from_tag.svndump',
                                             layout='single',
                                             subdir='')
-        self.assertEqual(compathacks.branchset(repo),
+        self.assertEqual(set(repo.branchmap()),
                          set(['default']))
         self.assertEqual(sorted(repo['tip'].manifest().keys()),
                          ['branches/branch_from_tag/alpha',
@@ -36,7 +36,7 @@ class TestSingleDirClone(test_util.TestB
     def test_auto_detect_single(self):
         repo = self._load_fixture_and_fetch('branch_from_tag.svndump',
                                             layout='auto')
-        self.assertEqual(compathacks.branchset(repo),
+        self.assertEqual(set(repo.branchmap()),
                          set(['default', 'branch_from_tag']))
         oldmanifest = test_util.filtermanifest(revsymbol(repo, 'default').manifest().keys())
         # remove standard layout
@@ -45,7 +45,7 @@ class TestSingleDirClone(test_util.TestB
         repo = self._load_fixture_and_fetch('branch_from_tag.svndump',
                                             layout='auto',
                                             subdir='trunk')
-        self.assertEqual(compathacks.branchset(repo), set(['default', ]))
+        self.assertEqual(set(repo.branchmap()), set(['default', ]))
         self.assertEqual(revsymbol(repo, 'default').manifest().keys(), oldmanifest)
 
     def test_clone_subdir_is_file_prefix(self):
@@ -53,7 +53,7 @@ class TestSingleDirClone(test_util.TestB
         repo = self._load_fixture_and_fetch(FIXTURE,
                                             layout='single',
                                             subdir=test_util.subdir[FIXTURE])
-        self.assertEqual(compathacks.branchset(repo), set(['default']))
+        self.assertEqual(set(repo.branchmap()), set(['default']))
         self.assertEqual(repo['tip'].manifest().keys(), ['flaf.txt'])
 
     def test_externals_single(self):