comparison tests/test_fetch_branches.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 22162380c4b9
children 91c818377703
comparison
equal deleted inserted replaced
153:46f6b872c988 154:6fa97cfbf62f
33 33
34 def test_renamed_branch_to_trunk(self, stupid=False): 34 def test_renamed_branch_to_trunk(self, stupid=False):
35 repo = self._load_fixture_and_fetch('branch_rename_to_trunk.svndump', 35 repo = self._load_fixture_and_fetch('branch_rename_to_trunk.svndump',
36 stupid) 36 stupid)
37 self.assertEqual(node.hex(repo['default'].node()), 37 self.assertEqual(node.hex(repo['default'].node()),
38 'b479347c1f56d1fafe5e32a7ce0d1b7099637784') 38 '14d252aef315857df241dd3fa4bc7833b09bd2f5')
39 self.assertEqual(repo['tip'].parents()[0].branch(), 'dev_branch') 39 self.assertEqual(repo['tip'].parents()[0].branch(), 'dev_branch')
40 self.assertEqual(repo['old_trunk'].parents()[0].branch(), 'default') 40 self.assertEqual(repo['old_trunk'].parents()[0].branch(), 'default')
41 41
42 def test_renamed_branch_to_trunk_stupid(self): 42 def test_renamed_branch_to_trunk_stupid(self):
43 self.test_renamed_branch_to_trunk(stupid=True) 43 self.test_renamed_branch_to_trunk(stupid=True)
45 def test_replace_trunk_with_branch(self, stupid=False): 45 def test_replace_trunk_with_branch(self, stupid=False):
46 repo = self._load_fixture_and_fetch('replace_trunk_with_branch.svndump', 46 repo = self._load_fixture_and_fetch('replace_trunk_with_branch.svndump',
47 stupid) 47 stupid)
48 self.assertEqual(repo['default'].parents()[0].branch(), 'test') 48 self.assertEqual(repo['default'].parents()[0].branch(), 'test')
49 self.assertEqual(node.hex(repo['closed-branches'].parents()[0].node()), 49 self.assertEqual(node.hex(repo['closed-branches'].parents()[0].node()),
50 'f46d6f10e6329a069503af6c0c12903994c083b2') 50 '2cd09772e0f6ddf2d13c60ef3c1be11ad5a7dfae')
51 self.assertEqual(node.hex(repo['default'].node()), 51 self.assertEqual(node.hex(repo['default'].node()),
52 '7bb5386f1a8e752888183cd86e43bdaf9abd1a95') 52 '8a525ca0671f456e6b1417187bf86c6115d2cb78')
53 53
54 def test_replace_trunk_with_branch_stupid(self): 54 def test_replace_trunk_with_branch_stupid(self):
55 self.test_replace_trunk_with_branch(stupid=True) 55 self.test_replace_trunk_with_branch(stupid=True)
56 56
57 def suite(): 57 def suite():