comparison tests/test_fetch_branches.py @ 120:f508c1fa19a5

hg_delta_editor: do not assume branches are copied from trunk by default Here is what happen in jquery repository: - kelvin-dev branch is created in r1617 with an empty directory for the datePicker plugin - commits are done - datePicker plugin is merged in trunk Before the fix, the converter assumed the initial empty commit had for parent some other commit of trunk, therefore adding all its files, which was wrong. And we ended with 'alignDemo.html' in converted trunk@5946 while it was not in the source revision.
author Patrick Mezard <pmezard@gmail.com>
date Sat, 29 Nov 2008 11:25:01 -0600
parents 3afe404042a3
children 4d42dbbb5127
comparison
equal deleted inserted replaced
119:ea65fe2b0856 120:f508c1fa19a5
12 def test_unrelatedbranch(self, stupid=False): 12 def test_unrelatedbranch(self, stupid=False):
13 repo = self._load_fixture_and_fetch('unrelatedbranch.svndump', stupid) 13 repo = self._load_fixture_and_fetch('unrelatedbranch.svndump', stupid)
14 heads = [repo[n] for n in repo.heads()] 14 heads = [repo[n] for n in repo.heads()]
15 heads = dict([(ctx.branch(), ctx) for ctx in heads]) 15 heads = dict([(ctx.branch(), ctx) for ctx in heads])
16 # Let these tests disabled yet as the fix is not obvious 16 # Let these tests disabled yet as the fix is not obvious
17 #self.assertEqual(heads['branch1'].manifest().keys(), ['b']) 17 self.assertEqual(heads['branch1'].manifest().keys(), ['b'])
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 suite(): 23 def suite():