comparison tests/test_push_dirs.py @ 851:9ce00cb1d676

Merge alternate tunnel schemes.
author Augie Fackler <durin42@gmail.com>
date Sat, 25 Feb 2012 14:51:22 -0600
parents 312b37bc5e20
children db3a651494f9
comparison
equal deleted inserted replaced
850:d3bc067c0f72 851:9ce00cb1d676
46 ['d2', 'd2/b', 'd31', 'd31/d32', 'd31/d32/a', ]) 46 ['d2', 'd2/b', 'd31', 'd31/d32', 'd31/d32/a', ])
47 47
48 def test_push_new_dir_project_root_not_repo_root(self): 48 def test_push_new_dir_project_root_not_repo_root(self):
49 self._load_fixture_and_fetch('fetch_missing_files_subdir.svndump', 49 self._load_fixture_and_fetch('fetch_missing_files_subdir.svndump',
50 subdir='foo') 50 subdir='foo')
51 changes = [('magic_new/a', 'magic_new/a', 'ohai', ), 51 changes = [('magic_new/a', 'magic_new/a', 'ohai',),
52 ] 52 ]
53 self.commitchanges(changes) 53 self.commitchanges(changes)
54 self.pushrevisions() 54 self.pushrevisions()
55 self.assertEqual(self.svnls('foo/trunk'), ['bar', 55 self.assertEqual(self.svnls('foo/trunk'), ['bar',
56 'bar/alpha', 56 'bar/alpha',
62 'magic_new/a']) 62 'magic_new/a'])
63 63
64 def test_push_new_file_existing_dir_root_not_repo_root(self): 64 def test_push_new_file_existing_dir_root_not_repo_root(self):
65 self._load_fixture_and_fetch('empty_dir_in_trunk_not_repo_root.svndump', 65 self._load_fixture_and_fetch('empty_dir_in_trunk_not_repo_root.svndump',
66 subdir='project') 66 subdir='project')
67 changes = [('narf/a', 'narf/a', 'ohai', ), 67 changes = [('narf/a', 'narf/a', 'ohai',),
68 ] 68 ]
69 self.commitchanges(changes) 69 self.commitchanges(changes)
70 self.assertEqual(self.svnls('project/trunk'), ['a', 70 self.assertEqual(self.svnls('project/trunk'), ['a',
71 'narf',]) 71 'narf',
72 ])
72 self.pushrevisions() 73 self.pushrevisions()
73 self.assertEqual(self.svnls('project/trunk'), ['a', 74 self.assertEqual(self.svnls('project/trunk'), ['a',
74 'narf', 75 'narf',
75 'narf/a']) 76 'narf/a'])
76 changes = [('narf/a', None, None, ), 77 changes = [('narf/a', None, None,),
77 ] 78 ]
78 self.commitchanges(changes) 79 self.commitchanges(changes)
79 self.pushrevisions() 80 self.pushrevisions()
80 self.assertEqual(self.svnls('project/trunk'), ['a' ,]) 81 self.assertEqual(self.svnls('project/trunk'), ['a'])
81 82
82 def test_push_single_dir_change_in_subdir(self): 83 def test_push_single_dir_change_in_subdir(self):
83 # Tests simple pushing from default branch to a single dir repo 84 # Tests simple pushing from default branch to a single dir repo
84 # Changes a file in a subdir (regression). 85 # Changes a file in a subdir (regression).
85 repo = self._load_fixture_and_fetch('branch_from_tag.svndump', 86 repo = self._load_fixture_and_fetch('branch_from_tag.svndump',
102 'tag_r3/alpha', 103 'tag_r3/alpha',
103 'tag_r3/beta', 104 'tag_r3/beta',
104 'tag_r3/new']) 105 'tag_r3/new'])
105 106
106 def suite(): 107 def suite():
107 all = [unittest.TestLoader().loadTestsFromTestCase(TestPushDirectories), 108 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestPushDirectories),
108 ] 109 ]
109 return unittest.TestSuite(all) 110 return unittest.TestSuite(all_tests)