comparison tests/test_fetch_command.py @ 43:af7ac6c03452

Fix a bug with added files from outside branches/trunk/tags.
author Augie Fackler <durin42@gmail.com>
date Mon, 27 Oct 2008 12:33:52 -0500
parents 496c0354019c
children 430af23bef4a
comparison
equal deleted inserted replaced
42:485ae93bc358 43:af7ac6c03452
102 'test_files_copied_from_outside_btt.svndump') 102 'test_files_copied_from_outside_btt.svndump')
103 self.assertEqual(node.hex(repo['tip'].node()), 103 self.assertEqual(node.hex(repo['tip'].node()),
104 'c4e669a763a70f751c71d4534a34a65f398d71d4') 104 'c4e669a763a70f751c71d4534a34a65f398d71d4')
105 self.assertEqual(len(repo.changelog), 2) 105 self.assertEqual(len(repo.changelog), 2)
106 106
107 def test_file_renamed_in_from_outside_btt(self):
108 repo = self._load_fixture_and_fetch(
109 'file_renamed_in_from_outside_btt.svndump')
110 self.assert_('LICENSE.file' in repo['tip'])
111
107 class TestStupidPull(unittest.TestCase): 112 class TestStupidPull(unittest.TestCase):
108 def setUp(self): 113 def setUp(self):
109 self.oldwd = os.getcwd() 114 self.oldwd = os.getcwd()
110 self.tmpdir = tempfile.mkdtemp('svnwrap_test') 115 self.tmpdir = tempfile.mkdtemp('svnwrap_test')
111 self.repo_path = '%s/testrepo' % self.tmpdir 116 self.repo_path = '%s/testrepo' % self.tmpdir