Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 938:f9014e28721b
editor: start separating svn copies from open files
The separation is not complete as we still have to update the
RevisionData deleted set when registering svn copies. This will be
cleaned up once open files are themselves separated from RevisionData.
Copied symlinks are also being prefixed with 'link '.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Wed, 03 Oct 2012 21:27:02 +0200 |
parents | e252f9355933 |
children | a80b01ceb1fc |
comparison
equal
deleted
inserted
replaced
937:fb6f6b7fa5a5 | 938:f9014e28721b |
---|---|
224 self.assertEqual(repo['tip'].parents()[0].parents()[0], | 224 self.assertEqual(repo['tip'].parents()[0].parents()[0], |
225 repo['oldest']) | 225 repo['oldest']) |
226 self.assertEqual(node.hex(repo['tip'].node()), | 226 self.assertEqual(node.hex(repo['tip'].node()), |
227 '1a6c3f30911d57abb67c257ec0df3e7bc44786f7') | 227 '1a6c3f30911d57abb67c257ec0df3e7bc44786f7') |
228 | 228 |
229 def test_empty_repo(self, stupid=False): | |
230 # This used to crash HgEditor because it could be closed without | |
231 # having been initialized again. | |
232 self._load_fixture_and_fetch('emptyrepo2.svndump', stupid=stupid) | |
233 | |
234 def test_empty_repo_stupid(self): | |
235 self.test_empty_repo(stupid=True) | |
236 | |
229 def suite(): | 237 def suite(): |
230 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), | 238 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), |
231 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), | 239 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), |
232 ] | 240 ] |
233 return unittest.TestSuite(all_tests) | 241 return unittest.TestSuite(all_tests) |