Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 961:b729909d3793
tests: add tests where files are moved from root to trunk
It triggers a special case of missing path with a different root layout.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sat, 20 Oct 2012 22:24:32 +0200 |
parents | 9c3b4f59e7e6 |
children | d741f536f23a |
comparison
equal
deleted
inserted
replaced
960:502613f6b583 | 961:b729909d3793 |
---|---|
268 self.assertEqual(refgraph.strip(), graph.strip()) | 268 self.assertEqual(refgraph.strip(), graph.strip()) |
269 | 269 |
270 def test_fetch_revert_stupid(self): | 270 def test_fetch_revert_stupid(self): |
271 self.test_fetch_revert(stupid=True) | 271 self.test_fetch_revert(stupid=True) |
272 | 272 |
273 def test_fetch_movetotrunk(self, stupid=False): | |
274 repo = self._load_fixture_and_fetch('movetotrunk.svndump', | |
275 stupid=stupid, subdir='sub1/sub2') | |
276 graph = self.getgraph(repo) | |
277 refgraph = """\ | |
278 o changeset: 0:02996a5980ba | |
279 branch: | |
280 tags: tip | |
281 summary: move to trunk | |
282 files: a dir/b | |
283 """ | |
284 self.assertEqual(refgraph.strip(), graph.strip()) | |
285 | |
286 def test_fetch_movetotrunk_stupid(self): | |
287 self.test_fetch_movetotrunk(stupid=True) | |
288 | |
273 def suite(): | 289 def suite(): |
274 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), | 290 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), |
275 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), | 291 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), |
276 ] | 292 ] |
277 return unittest.TestSuite(all_tests) | 293 return unittest.TestSuite(all_tests) |