Mercurial > hgsubversion
comparison tests/test_diff.py @ 257:ffccf0080e54
Move wrappers for hg commands to their own module.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Fri, 10 Apr 2009 22:38:29 -0500 |
parents | 7932d098cb5f |
children | 75f082b5897e |
comparison
equal
deleted
inserted
replaced
256:7932d098cb5f | 257:ffccf0080e54 |
---|---|
1 import unittest | 1 import unittest |
2 | 2 |
3 from mercurial import ui | 3 from mercurial import ui |
4 | 4 |
5 import svncommands | 5 import wrappers |
6 | 6 |
7 import test_util | 7 import test_util |
8 | 8 |
9 expected_diff_output = '''Index: alpha | 9 expected_diff_output = '''Index: alpha |
10 =================================================================== | 10 =================================================================== |
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(lambda x,y,z: None, | 35 wrappers.diff(lambda x,y,z: None, |
36 u, self.repo, svn=True) | 36 u, self.repo, svn=True) |
37 self.assertEqual(u.stream.getvalue(), expected_diff_output) | 37 self.assertEqual(u.stream.getvalue(), expected_diff_output) |
38 | 38 |
39 | 39 |
40 def suite(): | 40 def suite(): |