comparison tests/test_fetch_command.py @ 207:b20a6c149021

fetch: Fix a bogus case where no files in the root level of trunk caused breakage in the branch detection.
author Augie Fackler <durin42@gmail.com>
date Mon, 09 Mar 2009 12:01:40 -0500
parents 907c160c6289
children b5ef9a404f5d
comparison
equal deleted inserted replaced
206:c2e51d6a2d7b 207:b20a6c149021
137 self.assertEqual(['aa', 'd1/c', 'd1/d2prefix'], files) 137 self.assertEqual(['aa', 'd1/c', 'd1/d2prefix'], files)
138 138
139 def test_entry_deletion_stupid(self): 139 def test_entry_deletion_stupid(self):
140 self.test_entry_deletion(stupid=True) 140 self.test_entry_deletion(stupid=True)
141 141
142 def test_fetch_when_trunk_has_no_files(self, stupid=False):
143 repo = self._load_fixture_and_fetch('file_not_in_trunk_root.svndump', stupid=stupid)
144 print repo['tip'].branch()
145 print repo['tip']
146 print repo['tip'].files()
147 self.assertEqual(repo['tip'].branch(), 'default')
148
149 def test_fetch_when_trunk_has_no_files_stupid(self):
150 self.test_fetch_when_trunk_has_no_files(stupid=True)
142 151
143 class TestStupidPull(test_util.TestBase): 152 class TestStupidPull(test_util.TestBase):
144 def test_stupid(self): 153 def test_stupid(self):
145 repo = test_util.load_fixture_and_fetch('two_heads.svndump', 154 repo = test_util.load_fixture_and_fetch('two_heads.svndump',
146 self.repo_path, 155 self.repo_path,