comparison tests/test_push_dirs.py @ 323:067914ecb4eb

push: Fix a bug in deletion of an entire tree. This bug meant that if an entire subtree of the repo was deleted and there were files at varying levels of the hierarchy, then some of the files at higher levels might escape deletion when the revision was pushed to svn.
author Augie Fackler <durin42@gmail.com>
date Fri, 08 May 2009 16:26:33 -0500
parents 6ec5b5fc5b4d
children d2ef7220a079
comparison
equal deleted inserted replaced
322:05cd4a5138bf 323:067914ecb4eb
45 ('d31/d32/d33/d34/a', None, None), 45 ('d31/d32/d33/d34/a', None, None),
46 ] 46 ]
47 self.commitchanges(changes) 47 self.commitchanges(changes)
48 self.pushrevisions() 48 self.pushrevisions()
49 self.assertEqual(self.svnls('trunk'), 49 self.assertEqual(self.svnls('trunk'),
50 ['d2', 'd2/b', 'd31', 'd31/d32', 'd31/d32/a', 'd31/d32/d33']) 50 ['d2', 'd2/b', 'd31', 'd31/d32', 'd31/d32/a', ])
51 51
52 52
53 class TestPushDirsNotAtRoot(test_util.TestBase): 53 class TestPushDirsNotAtRoot(test_util.TestBase):
54 def test_push_new_dir_project_root_not_repo_root(self): 54 def test_push_new_dir_project_root_not_repo_root(self):
55 test_util.load_fixture_and_fetch('fetch_missing_files_subdir.svndump', 55 test_util.load_fixture_and_fetch('fetch_missing_files_subdir.svndump',