comparison tests/test_fetch_branches.py @ 585:c3ba4ca81d16

editor: fix replaced files content in replay mode
author Patrick Mezard <pmezard@gmail.com>
date Tue, 02 Mar 2010 17:06:06 +0100
parents 44c56a7727c4
children c06f59441f8e
comparison
equal deleted inserted replaced
584:d000b9a361e4 585:c3ba4ca81d16
143 ctx = repo[5] 143 ctx = repo[5]
144 self.assertEqual(set(['a', 'c']), set(ctx)) 144 self.assertEqual(set(['a', 'c']), 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 # a replacement does not work yet 148 self.assertEqual('d\n', ctx['a'].data())
149 #self.assertEqual('d\n', ctx['a'].data())
150 149
151 def test_replace_branch_with_branch_stupid(self, stupid=False): 150 def test_replace_branch_with_branch_stupid(self, stupid=False):
152 self.test_replace_branch_with_branch(True) 151 self.test_replace_branch_with_branch(True)
153 152
154 def suite(): 153 def suite():