comparison tests/test_tags.py @ 133:2242dd1163c6

hg_delta_editor: fix bad parent revision calculation in the case of a branch recycling a name. Also implemented marking branches as closed in both replay and stupid paths.
author Augie Fackler <durin42@gmail.com>
date Wed, 10 Dec 2008 14:29:05 -0600
parents 291925677a9f
children 6fa97cfbf62f
comparison
equal deleted inserted replaced
132:3a9d6cd18332 133:2242dd1163c6
75 75
76 def test_tag_by_renaming_branch(self, stupid=False): 76 def test_tag_by_renaming_branch(self, stupid=False):
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(node.hex(repo['tip'].node()), 81 self.assertEqual(node.hex(repo['tip'].node()),
81 '1b941f92acc343939274bd8bbf25984fa9706bb9') 82 'dd2dccc3180631192f058468ec7215899223a6d8')
83 taggedrev = repo['tip'].parents()[0]
84 self.assertEqual(node.hex(taggedrev.node()),
85 '68f5f7d82b00a2efe3aca28b615ebab98235d55f')
82 self.assertEqual(node.hex(repo['tag/dummy'].node()), 86 self.assertEqual(node.hex(repo['tag/dummy'].node()),
83 '68f5f7d82b00a2efe3aca28b615ebab98235d55f') 87 '68f5f7d82b00a2efe3aca28b615ebab98235d55f')
84 88
85 def test_tag_by_renaming_branch_stupid(self): 89 def test_tag_by_renaming_branch_stupid(self):
86 self.test_tag_by_renaming_branch(stupid=True) 90 self.test_tag_by_renaming_branch(stupid=True)