comparison tests/test_diff.py @ 256:7932d098cb5f

Refactor commands to wrap their hg equivalent adding a --svn flag where sane.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Apr 2009 18:47:18 -0500
parents 28d0ee605308
children ffccf0080e54
comparison
equal deleted inserted replaced
255:246aaefb1cc0 256:7932d098cb5f
30 self._load_fixture_and_fetch('two_revs.svndump') 30 self._load_fixture_and_fetch('two_revs.svndump')
31 self.commitchanges([('foo', 'foo', 'This is missing a newline.'), 31 self.commitchanges([('foo', 'foo', 'This is missing a newline.'),
32 ('alpha', 'alpha', 'alpha\n\nadded line\n'), 32 ('alpha', 'alpha', 'alpha\n\nadded line\n'),
33 ]) 33 ])
34 u = ui.ui() 34 u = ui.ui()
35 svncommands.diff(u, self.repo, self.wc_path) 35 svncommands.diff(lambda x,y,z: None,
36 u, self.repo, svn=True)
36 self.assertEqual(u.stream.getvalue(), expected_diff_output) 37 self.assertEqual(u.stream.getvalue(), expected_diff_output)
37 38
38 39
39 def suite(): 40 def suite():
40 all = [unittest.TestLoader().loadTestsFromTestCase(DiffTests), 41 all = [unittest.TestLoader().loadTestsFromTestCase(DiffTests),