diff 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
line wrap: on
line diff
--- a/tests/test_fetch_command.py
+++ b/tests/test_fetch_command.py
@@ -139,6 +139,15 @@ class TestBasicRepoLayout(test_util.Test
     def test_entry_deletion_stupid(self):
         self.test_entry_deletion(stupid=True)
 
+    def test_fetch_when_trunk_has_no_files(self, stupid=False):
+        repo = self._load_fixture_and_fetch('file_not_in_trunk_root.svndump', stupid=stupid)
+        print repo['tip'].branch()
+        print repo['tip']
+        print repo['tip'].files()
+        self.assertEqual(repo['tip'].branch(), 'default')
+
+    def test_fetch_when_trunk_has_no_files_stupid(self):
+        self.test_fetch_when_trunk_has_no_files(stupid=True)
 
 class TestStupidPull(test_util.TestBase):
     def test_stupid(self):