Mercurial > hgsubversion
diff tests/test_single_dir_clone.py @ 1570:d55c9d0ba350
tests: use scmutils.revsymbol instead of repo.__getitem__ for non-integers
author | Paul Morelle <paul.morelle@octobus.net> |
---|---|
date | Fri, 25 May 2018 11:52:03 +0200 |
parents | a36e87ae2380 |
children | 7bb6562feb85 |
line wrap: on
line diff
--- a/tests/test_single_dir_clone.py +++ b/tests/test_single_dir_clone.py @@ -12,6 +12,8 @@ from mercurial import ui from hgsubversion import compathacks +revsymbol = test_util.revsymbol + class TestSingleDirClone(test_util.TestBase): stupid_mode_tests = True @@ -36,7 +38,7 @@ class TestSingleDirClone(test_util.TestB layout='auto') self.assertEqual(compathacks.branchset(repo), set(['default', 'branch_from_tag'])) - oldmanifest = test_util.filtermanifest(repo['default'].manifest().keys()) + oldmanifest = test_util.filtermanifest(revsymbol(repo, 'default').manifest().keys()) # remove standard layout shutil.rmtree(self.wc_path) # try again with subdir to get single dir clone @@ -44,7 +46,7 @@ class TestSingleDirClone(test_util.TestB layout='auto', subdir='trunk') self.assertEqual(compathacks.branchset(repo), set(['default', ])) - self.assertEqual(repo['default'].manifest().keys(), oldmanifest) + self.assertEqual(revsymbol(repo, 'default').manifest().keys(), oldmanifest) def test_clone_subdir_is_file_prefix(self): FIXTURE = 'subdir_is_file_prefix.svndump'