comparison tests/test_fetch_branches.py @ 375:af9fc01299b4

Make branch closing more Mercurial-like. We now use the 'close' value from extra instead of the old closed-branches branch.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 29 May 2009 15:24:12 +0200
parents a62965b179c1
children 1b9d004a8c0a
comparison
equal deleted inserted replaced
374:758d9dbae9f9 375:af9fc01299b4
62 62
63 def test_replace_trunk_with_branch(self, stupid=False): 63 def test_replace_trunk_with_branch(self, stupid=False):
64 repo = self._load_fixture_and_fetch('replace_trunk_with_branch.svndump', 64 repo = self._load_fixture_and_fetch('replace_trunk_with_branch.svndump',
65 stupid) 65 stupid)
66 self.assertEqual(repo['default'].parents()[0].branch(), 'test') 66 self.assertEqual(repo['default'].parents()[0].branch(), 'test')
67 self.assertEqual(node.hex(repo['closed-branches'].parents()[0].node()), 67 self.assertEqual(repo['tip'].branch(), 'default')
68 '2cd09772e0f6ddf2d13c60ef3c1be11ad5a7dfae') 68 self.assertEqual(repo['tip'].extra().get('close'), '1')
69 self.assertEqual(node.hex(repo['default'].node()),
70 '8a525ca0671f456e6b1417187bf86c6115d2cb78')
71 self.assertEqual(self.openbranches(repo), ['default']) 69 self.assertEqual(self.openbranches(repo), ['default'])
72 70
73 def test_replace_trunk_with_branch_stupid(self): 71 def test_replace_trunk_with_branch_stupid(self):
74 self.test_replace_trunk_with_branch(stupid=True) 72 self.test_replace_trunk_with_branch(stupid=True)
75 73