comparison tests/test_fetch_branches.py @ 587:c06f59441f8e

editor: fix replaced directory copies Known failures: - Replaced directories copy records are wrong in stupid mode - Replaced files copy records are probably wrong in all modes
author Patrick Mezard <pmezard@gmail.com>
date Tue, 02 Mar 2010 17:06:06 +0100
parents c3ba4ca81d16
children 2723152c8111
comparison
equal deleted inserted replaced
586:704d2ce1d906 587:c06f59441f8e
139 ctx = repo['tip'] 139 ctx = repo['tip']
140 self.assertEqual('1', ctx.extra().get('close', '0')) 140 self.assertEqual('1', ctx.extra().get('close', '0'))
141 self.assertEqual('branch1', ctx.branch()) 141 self.assertEqual('branch1', ctx.branch())
142 # r5 is where the replacement takes place 142 # r5 is where the replacement takes place
143 ctx = repo[5] 143 ctx = repo[5]
144 self.assertEqual(set(['a', 'c']), set(ctx)) 144 self.assertEqual(set(['a', 'c', 'dir/e', 'dir2/e']), set(ctx))
145 self.assertEqual('0', ctx.extra().get('close', '0')) 145 self.assertEqual('0', ctx.extra().get('close', '0'))
146 self.assertEqual('branch1', ctx.branch()) 146 self.assertEqual('branch1', ctx.branch())
147 self.assertEqual('c\n', ctx['c'].data()) 147 self.assertEqual('c\n', ctx['c'].data())
148 self.assertEqual('d\n', ctx['a'].data()) 148 self.assertEqual('d\n', ctx['a'].data())
149 self.assertEqual('e\n', ctx['dir/e'].data())
150 self.assertEqual('e\n', ctx['dir2/e'].data())
149 151
150 def test_replace_branch_with_branch_stupid(self, stupid=False): 152 def test_replace_branch_with_branch_stupid(self, stupid=False):
151 self.test_replace_branch_with_branch(True) 153 self.test_replace_branch_with_branch(True)
152 154
153 def suite(): 155 def suite():