comparison tests/test_single_dir_clone.py @ 888:c6388ed0ec0a

svnmeta: only remove directory components in normalize() Previously, a file beginning with the repository subdirectory would be stripped, resulting in a leftover file name with a wrong name. A subsequent pull of a revision modifying the file would add it under its correct name, but leave the leftover file.
author Dan Villiom Podlaski Christiansen <dan@cabo.dk>
date Wed, 14 Dec 2011 00:07:57 +0100
parents 51fd75ae62b9
children d741f536f23a
comparison
equal deleted inserted replaced
887:f95c429124f3 888:c6388ed0ec0a
41 stupid=False, 41 stupid=False,
42 layout='auto', 42 layout='auto',
43 subdir='trunk') 43 subdir='trunk')
44 self.assertEqual(repo.branchtags().keys(), ['default', ]) 44 self.assertEqual(repo.branchtags().keys(), ['default', ])
45 self.assertEqual(repo['default'].manifest().keys(), oldmanifest) 45 self.assertEqual(repo['default'].manifest().keys(), oldmanifest)
46
47 def test_clone_subdir_is_file_prefix(self, stupid=False):
48 FIXTURE = 'subdir_is_file_prefix.svndump'
49 repo = self._load_fixture_and_fetch(FIXTURE,
50 stupid=stupid,
51 layout='single',
52 subdir=test_util.subdir[FIXTURE])
53 self.assertEqual(repo.branchtags().keys(), ['default'])
54 self.assertEqual(repo['tip'].manifest().keys(), ['flaf.txt'])
46 55
47 def test_externals_single(self): 56 def test_externals_single(self):
48 repo = self._load_fixture_and_fetch('externals.svndump', 57 repo = self._load_fixture_and_fetch('externals.svndump',
49 stupid=False, 58 stupid=False,
50 layout='single') 59 layout='single')