comparison tests/test_fetch_branches.py @ 131:4d42dbbb5127

hg_delta_editor: fix parent revision detection on branch copy Project items copyfrom revisions are irrelevant to parent revision detection, only the project one or those of its ancestors matter. Items copyfrom is useful when retrieving items content. Former code resulted in incorrect converted graph for pyglet repository, especially on the following revision: ------------------------------------------------------------------------ r274 | r1chardj0n3s | 2006-12-21 02:02:14 +0100 (Jeu, 21 Dec 2006) | 2 lines Changed paths: A /branches/richard-glx-version (from /trunk:269) M /branches/richard-glx-version/pyglet/window/xlib/__init__.py R /branches/richard-glx-version/tests/test.py (from /trunk/tests/test.py:270) R /branches/richard-glx-version/tools/info.py (from /trunk/tools/info.py:272) R /branches/richard-glx-version/website/get_involved.php (from /trunk/website/get_involved.php:273) Branching to horribly mangle GLX
author Patrick Mezard <pmezard@gmail.com>
date Wed, 10 Dec 2008 11:03:22 -0600
parents f508c1fa19a5
children 2242dd1163c6
comparison
equal deleted inserted replaced
130:c2a84d436202 131:4d42dbbb5127
18 self.assertEqual(heads['branch2'].manifest().keys(), ['a', 'b']) 18 self.assertEqual(heads['branch2'].manifest().keys(), ['a', 'b'])
19 19
20 def test_unrelatedbranch_stupid(self): 20 def test_unrelatedbranch_stupid(self):
21 self.test_unrelatedbranch(True) 21 self.test_unrelatedbranch(True)
22 22
23 def test_unorderedbranch(self, stupid=False):
24 repo = self._load_fixture_and_fetch('unorderedbranch.svndump', stupid)
25 r = repo['branch']
26 self.assertEqual(0, r.parents()[0].rev())
27 self.assertEqual(['a', 'c', 'z'], sorted(r.manifest()))
28
29 def test_unorderedbranch_stupid(self):
30 self.test_unorderedbranch(True)
31
23 def suite(): 32 def suite():
24 all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchBranches), 33 all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchBranches),
25 ] 34 ]
26 return unittest.TestSuite(all) 35 return unittest.TestSuite(all)