Mercurial > hgsubversion
comparison tests/test_template_keywords.py @ 851:9ce00cb1d676
Merge alternate tunnel schemes.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Sat, 25 Feb 2012 14:51:22 -0600 |
| parents | f089ca13cc4c |
| children | d741f536f23a |
comparison
equal
deleted
inserted
replaced
| 850:d3bc067c0f72 | 851:9ce00cb1d676 |
|---|---|
| 13 | 13 |
| 14 try: | 14 try: |
| 15 from mercurial import revset | 15 from mercurial import revset |
| 16 revset.methods | 16 revset.methods |
| 17 except ImportError: | 17 except ImportError: |
| 18 revset = None | 18 revset = None |
| 19 | 19 |
| 20 class CapturingUI(ui.ui): | 20 class CapturingUI(ui.ui): |
| 21 | 21 |
| 22 def __init__(self, *args, **kwds): | 22 def __init__(self, *args, **kwds): |
| 23 super(CapturingUI, self).__init__(*args, **kwds) | 23 super(CapturingUI, self).__init__(*args, **kwds) |
| 80 self.assertRaises(error.ParseError, | 80 self.assertRaises(error.ParseError, |
| 81 commands.log, self.ui(), repo, | 81 commands.log, self.ui(), repo, |
| 82 template='{rev}:{svnrev} ', **defaults) | 82 template='{rev}:{svnrev} ', **defaults) |
| 83 | 83 |
| 84 def suite(): | 84 def suite(): |
| 85 all = [unittest.TestLoader().loadTestsFromTestCase(TestLogKeywords),] | 85 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestLogKeywords), ] |
| 86 return unittest.TestSuite(all) | 86 return unittest.TestSuite(all_tests) |
