Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 110:a4dcffaa6538 | 111:5497d1264b4d |
|---|---|
| 102 'd73002bcdeffe389a8df81ee43303d36e79e8ca4') | 102 'd73002bcdeffe389a8df81ee43303d36e79e8ca4') |
| 103 self.assertEqual(repo['tip'].parents()[0].parents()[0], | 103 self.assertEqual(repo['tip'].parents()[0].parents()[0], |
| 104 repo['oldest']) | 104 repo['oldest']) |
| 105 self.assertEqual(node.hex(repo['tip'].node()), | 105 self.assertEqual(node.hex(repo['tip'].node()), |
| 106 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') | 106 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') |
| 107 #'1316ef606dda89354ee8c4df725e6264177b5129') | 107 |
| 108 def test_empty_prop_val_executable(self): | |
| 109 repo = self._load_fixture_and_fetch('executable_file_empty_prop.svndump') | |
| 110 self.assertEqual(node.hex(repo['tip'].node()), | |
| 111 'b19e2bdd93da30b09c2396cfdb987cc85271249a') | |
| 112 self.assertEqual(repo['tip']['foo'].flags(), 'x') | |
| 108 | 113 |
| 109 | 114 |
| 110 class TestStupidPull(test_util.TestBase): | 115 class TestStupidPull(test_util.TestBase): |
| 111 def test_stupid(self): | 116 def test_stupid(self): |
| 112 repo = test_util.load_fixture_and_fetch('two_heads.svndump', | 117 repo = test_util.load_fixture_and_fetch('two_heads.svndump', |
| 137 'd73002bcdeffe389a8df81ee43303d36e79e8ca4') | 142 'd73002bcdeffe389a8df81ee43303d36e79e8ca4') |
| 138 self.assertEqual(repo['tip'].parents()[0].parents()[0], | 143 self.assertEqual(repo['tip'].parents()[0].parents()[0], |
| 139 repo['oldest']) | 144 repo['oldest']) |
| 140 self.assertEqual(node.hex(repo['tip'].node()), | 145 self.assertEqual(node.hex(repo['tip'].node()), |
| 141 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') | 146 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') |
| 147 | |
| 148 def test_empty_prop_val_executable(self): | |
| 149 repo = test_util.load_fixture_and_fetch( | |
| 150 'executable_file_empty_prop.svndump', | |
| 151 self.repo_path, | |
| 152 self.wc_path, | |
| 153 True) | |
| 154 self.assertEqual(repo['tip']['foo'].flags(), 'x') | |
| 155 self.assertEqual(node.hex(repo['tip'].node()), | |
| 156 'b19e2bdd93da30b09c2396cfdb987cc85271249a') | |
| 157 | |
| 142 | 158 |
| 143 def suite(): | 159 def suite(): |
| 144 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), | 160 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), |
| 145 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), | 161 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), |
| 146 ] | 162 ] |
