Mercurial > hgsubversion
comparison tests/test_push_renames.py @ 1106:5cb6c95e0283 stable
Merge default and stable so I can do stable releases again.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 11 Feb 2014 12:48:49 -0500 |
parents | 9a740cbb6895 |
children | a36e87ae2380 |
comparison
equal
deleted
inserted
replaced
1020:b5b1fce26f1f | 1106:5cb6c95e0283 |
---|---|
2 | 2 |
3 import sys | 3 import sys |
4 import unittest | 4 import unittest |
5 | 5 |
6 class TestPushRenames(test_util.TestBase): | 6 class TestPushRenames(test_util.TestBase): |
7 obsolete_mode_tests = True | |
8 stupid_mode_tests = True | |
9 | |
7 def setUp(self): | 10 def setUp(self): |
8 test_util.TestBase.setUp(self) | 11 test_util.TestBase.setUp(self) |
9 self.repo_path = self.load_and_fetch('pushrenames.svndump', | 12 self.repo_path = self.load_and_fetch('pushrenames.svndump')[1] |
10 stupid=True)[1] | |
11 | 13 |
12 def _debug_print_copies(self, ctx): | 14 def _debug_print_copies(self, ctx): |
13 w = sys.stderr.write | 15 w = sys.stderr.write |
14 for f in ctx.files(): | 16 for f in ctx.files(): |
15 if f not in ctx: | 17 if f not in ctx: |
111 assert reduce(lambda x, y: x and y, | 113 assert reduce(lambda x, y: x and y, |
112 ('geek' not in f for f in test_util.svnls(self.repo_path, 'trunk'))), ( | 114 ('geek' not in f for f in test_util.svnls(self.repo_path, 'trunk'))), ( |
113 'This failure means rename of an entire tree is broken.' | 115 'This failure means rename of an entire tree is broken.' |
114 ' There is a print on the preceding line commented out ' | 116 ' There is a print on the preceding line commented out ' |
115 'that should help you.') | 117 'that should help you.') |
116 | |
117 | |
118 def suite(): | |
119 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestPushRenames), | |
120 ] | |
121 return unittest.TestSuite(all_tests) |