comparison tests/test_fetch_branches.py @ 397:1b9d004a8c0a

branches: correctly deal with branch closing directly after copy/rename
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 11 Jun 2009 18:00:58 +0200
parents af9fc01299b4
children f5222d021665
comparison
equal deleted inserted replaced
396:11c4c7242a36 397:1b9d004a8c0a
66 self.assertEqual(repo['default'].parents()[0].branch(), 'test') 66 self.assertEqual(repo['default'].parents()[0].branch(), 'test')
67 self.assertEqual(repo['tip'].branch(), 'default') 67 self.assertEqual(repo['tip'].branch(), 'default')
68 self.assertEqual(repo['tip'].extra().get('close'), '1') 68 self.assertEqual(repo['tip'].extra().get('close'), '1')
69 self.assertEqual(self.openbranches(repo), ['default']) 69 self.assertEqual(self.openbranches(repo), ['default'])
70 70
71 def test_copybeforeclose(self, stupid=False):
72 repo = self._load_fixture_and_fetch('copybeforeclose.svndump', stupid)
73 self.assertEqual(repo['tip'].branch(), 'test')
74 self.assertEqual(repo['test'].extra().get('close'), '1')
75 self.assertEqual(repo['test']['b'].data(), 'a\n')
76
77 def test_copybeforeclose_stupid(self):
78 self.test_copybeforeclose(True)
79
71 def test_replace_trunk_with_branch_stupid(self): 80 def test_replace_trunk_with_branch_stupid(self):
72 self.test_replace_trunk_with_branch(stupid=True) 81 self.test_replace_trunk_with_branch(stupid=True)
73 82
74 def test_branch_create_with_dir_delete_works(self, stupid=False): 83 def test_branch_create_with_dir_delete_works(self, stupid=False):
75 repo = self._load_fixture_and_fetch('branch_create_with_dir_delete.svndump', 84 repo = self._load_fixture_and_fetch('branch_create_with_dir_delete.svndump',