diff 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
line wrap: on
line diff
--- a/tests/test_fetch_branches.py
+++ b/tests/test_fetch_branches.py
@@ -64,10 +64,8 @@ class TestFetchBranches(test_util.TestBa
         repo = self._load_fixture_and_fetch('replace_trunk_with_branch.svndump',
                                             stupid)
         self.assertEqual(repo['default'].parents()[0].branch(), 'test')
-        self.assertEqual(node.hex(repo['closed-branches'].parents()[0].node()),
-                         '2cd09772e0f6ddf2d13c60ef3c1be11ad5a7dfae')
-        self.assertEqual(node.hex(repo['default'].node()),
-                         '8a525ca0671f456e6b1417187bf86c6115d2cb78')
+        self.assertEqual(repo['tip'].branch(), 'default')
+        self.assertEqual(repo['tip'].extra().get('close'), '1')
         self.assertEqual(self.openbranches(repo), ['default'])
 
     def test_replace_trunk_with_branch_stupid(self):