Mercurial > hgsubversion
diff tests/test_fetch_command.py @ 111:5497d1264b4d
fetch_command: Fix mis-converted executable when svn:executable was set to the
empty string.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 09:45:38 -0600 |
parents | a3b717e4abf5 |
children | e58c2f1de059 |
line wrap: on
line diff
--- a/tests/test_fetch_command.py +++ b/tests/test_fetch_command.py @@ -104,7 +104,12 @@ class TestBasicRepoLayout(test_util.Test repo['oldest']) self.assertEqual(node.hex(repo['tip'].node()), '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') - #'1316ef606dda89354ee8c4df725e6264177b5129') + + def test_empty_prop_val_executable(self): + repo = self._load_fixture_and_fetch('executable_file_empty_prop.svndump') + self.assertEqual(node.hex(repo['tip'].node()), + 'b19e2bdd93da30b09c2396cfdb987cc85271249a') + self.assertEqual(repo['tip']['foo'].flags(), 'x') class TestStupidPull(test_util.TestBase): @@ -139,6 +144,17 @@ class TestStupidPull(test_util.TestBase) repo['oldest']) self.assertEqual(node.hex(repo['tip'].node()), '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') + + def test_empty_prop_val_executable(self): + repo = test_util.load_fixture_and_fetch( + 'executable_file_empty_prop.svndump', + self.repo_path, + self.wc_path, + True) + self.assertEqual(repo['tip']['foo'].flags(), 'x') + self.assertEqual(node.hex(repo['tip'].node()), + 'b19e2bdd93da30b09c2396cfdb987cc85271249a') + def suite(): all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout),