comparison tests/test_tags.py @ 154:6fa97cfbf62f

fetch: Refactor extra creation to be shared by real and diff replay. Add convert-compatible meta information to extra.
author Augie Fackler <durin42@gmail.com>
date Tue, 23 Dec 2008 11:10:32 -0600
parents 2242dd1163c6
children 91c818377703
comparison
equal deleted inserted replaced
153:46f6b872c988 154:6fa97cfbf62f
20 repo.__class__ = tag_repo.generate_repo_class(ui_, repo) 20 repo.__class__ = tag_repo.generate_repo_class(ui_, repo)
21 return repo 21 return repo
22 22
23 def _test_tag_revision_info(self, repo): 23 def _test_tag_revision_info(self, repo):
24 self.assertEqual(node.hex(repo[0].node()), 24 self.assertEqual(node.hex(repo[0].node()),
25 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') 25 '434ed487136c1b47c1e8f952edb4dc5a8e6328df')
26 self.assertEqual(node.hex(repo['tip'].node()), 26 self.assertEqual(node.hex(repo['tip'].node()),
27 'bf3767835b3b32ecc775a298c2fa27134dd91c11') 27 'c95251e0dd04697deee99b79cc407d7db76e6a5f')
28 self.assertEqual(repo['tip'], repo[1]) 28 self.assertEqual(repo['tip'], repo[1])
29 29
30 def test_tags(self, stupid=False): 30 def test_tags(self, stupid=False):
31 repo = self._load_fixture_and_fetch('basic_tag_tests.svndump', 31 repo = self._load_fixture_and_fetch('basic_tag_tests.svndump',
32 stupid=stupid) 32 stupid=stupid)
77 repo = self._load_fixture_and_fetch('tag_by_rename_branch.svndump', 77 repo = self._load_fixture_and_fetch('tag_by_rename_branch.svndump',
78 stupid=stupid) 78 stupid=stupid)
79 repo = self.getrepo() 79 repo = self.getrepo()
80 self.assertEqual(repo['tip'], repo['closed-branches']) 80 self.assertEqual(repo['tip'], repo['closed-branches'])
81 self.assertEqual(node.hex(repo['tip'].node()), 81 self.assertEqual(node.hex(repo['tip'].node()),
82 'dd2dccc3180631192f058468ec7215899223a6d8') 82 '2f0a3abe2004c0fa01f5f6074a8b5441e9c80c2a')
83 taggedrev = repo['tip'].parents()[0] 83 taggedrev = repo['tip'].parents()[0]
84 self.assertEqual(node.hex(taggedrev.node()), 84 self.assertEqual(node.hex(taggedrev.node()),
85 '68f5f7d82b00a2efe3aca28b615ebab98235d55f') 85 '50c67c73267987de705ee335183c5486641e56e9')
86 self.assertEqual(node.hex(repo['tag/dummy'].node()), 86 self.assertEqual(node.hex(repo['tag/dummy'].node()),
87 '68f5f7d82b00a2efe3aca28b615ebab98235d55f') 87 '50c67c73267987de705ee335183c5486641e56e9')
88 88
89 def test_tag_by_renaming_branch_stupid(self): 89 def test_tag_by_renaming_branch_stupid(self):
90 self.test_tag_by_renaming_branch(stupid=True) 90 self.test_tag_by_renaming_branch(stupid=True)
91 91
92 def suite(): 92 def suite():