Mercurial > hgsubversion
diff tests/test_fetch_symlinks.py @ 901:bd12a4da0f35
replay: workaround svn not telling us about x/l flags (issue346)
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Sun, 13 May 2012 15:28:50 +0200 |
parents | 04729f3a3d17 |
children | d741f536f23a |
line wrap: on
line diff
--- a/tests/test_fetch_symlinks.py +++ b/tests/test_fetch_symlinks.py @@ -50,7 +50,17 @@ class TestFetchSymlinks(test_util.TestBa def test_symlinks_stupid(self): self.test_symlinks(True) +class TestMergeSpecial(test_util.TestBase): + def test_special(self): + repo = self._load_fixture_and_fetch('addspecial.svndump', + subdir='trunk') + ctx = repo['tip'] + self.assertEqual(ctx['fnord'].flags(), 'l') + self.assertEqual(ctx['exe'].flags(), 'x') + def suite(): - all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestFetchSymlinks), - ] + all_tests = [ + unittest.TestLoader().loadTestsFromTestCase(TestFetchSymlinks), + unittest.TestLoader().loadTestsFromTestCase(TestMergeSpecial), + ] return unittest.TestSuite(all_tests)