comparison tests/test_push_renames.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 04729f3a3d17
comparison
equal deleted inserted replaced
850:d3bc067c0f72 851:9ce00cb1d676
77 ('geek/alpha', 'geek/alpha', 'content',), 77 ('geek/alpha', 'geek/alpha', 'content',),
78 ('geek/beta', 'geek/beta', 'content',), 78 ('geek/beta', 'geek/beta', 'content',),
79 ('geek/delta', 'geek/delta', 'content',), 79 ('geek/delta', 'geek/delta', 'content',),
80 ('geek/gamma', 'geek/gamma', 'content',), 80 ('geek/gamma', 'geek/gamma', 'content',),
81 ('geek/later/pi', 'geek/later/pi', 'content geek/later/pi',), 81 ('geek/later/pi', 'geek/later/pi', 'content geek/later/pi',),
82 ('geek/later/rho', 'geek/later/rho', 'content geek/later/rho', ), 82 ('geek/later/rho', 'geek/later/rho', 'content geek/later/rho',),
83 ('geek/other/blah', 'geek/other/blah', 'content geek/other/blah', ), 83 ('geek/other/blah', 'geek/other/blah', 'content geek/other/blah',),
84 ('geek/other/another/layer', 'geek/other/another/layer', 'content deep file', ), 84 ('geek/other/another/layer', 'geek/other/another/layer', 'content deep file',),
85 ] 85 ]
86 86
87 self.commitchanges(changes) 87 self.commitchanges(changes)
88 self.pushrevisions() 88 self.pushrevisions()
89 self.assertchanges(changes, self.repo['tip']) 89 self.assertchanges(changes, self.repo['tip'])
90 90
91 changes = [ 91 changes = [
92 # rename (copy + remove) all of geek to greek 92 # rename (copy + remove) all of geek to greek
93 ('geek/alpha', 'greek/alpha', None, ), 93 ('geek/alpha', 'greek/alpha', None,),
94 ('geek/beta', 'greek/beta', None, ), 94 ('geek/beta', 'greek/beta', None,),
95 ('geek/delta', 'greek/delta', None, ), 95 ('geek/delta', 'greek/delta', None,),
96 ('geek/gamma', 'greek/gamma', None, ), 96 ('geek/gamma', 'greek/gamma', None,),
97 ('geek/later/pi', 'greek/later/pi', None, ), 97 ('geek/later/pi', 'greek/later/pi', None,),
98 ('geek/later/rho', 'greek/later/rho', None, ), 98 ('geek/later/rho', 'greek/later/rho', None,),
99 ('geek/other/blah', 'greek/other/blah', None, ), 99 ('geek/other/blah', 'greek/other/blah', None,),
100 ('geek/other/another/layer', 'greek/other/another/layer', None, ), 100 ('geek/other/another/layer', 'greek/other/another/layer', None,),
101 101
102 ('geek/alpha', None, None, ), 102 ('geek/alpha', None, None,),
103 ('geek/beta', None, None, ), 103 ('geek/beta', None, None,),
104 ('geek/delta', None, None, ), 104 ('geek/delta', None, None,),
105 ('geek/gamma', None, None, ), 105 ('geek/gamma', None, None,),
106 ('geek/later/pi', None, None, ), 106 ('geek/later/pi', None, None,),
107 ('geek/later/rho', None, None, ), 107 ('geek/later/rho', None, None,),
108 ('geek/other/blah', None, None, ), 108 ('geek/other/blah', None, None,),
109 ('geek/other/another/layer', None, None, ), 109 ('geek/other/another/layer', None, None,),
110 ] 110 ]
111 self.commitchanges(changes) 111 self.commitchanges(changes)
112 self.pushrevisions() 112 self.pushrevisions()
113 # print '\n'.join(sorted(self.svnls('trunk'))) 113 # print '\n'.join(sorted(self.svnls('trunk')))
114 assert reduce(lambda x, y: x and y, 114 assert reduce(lambda x, y: x and y,
115 ('geek' not in f for f in self.svnls('trunk'))),( 115 ('geek' not in f for f in self.svnls('trunk'))), (
116 'This failure means rename of an entire tree is broken.' 116 'This failure means rename of an entire tree is broken.'
117 ' There is a print on the preceding line commented out ' 117 ' There is a print on the preceding line commented out '
118 'that should help you.') 118 'that should help you.')
119 119
120 120
121 def suite(): 121 def suite():
122 all = [unittest.TestLoader().loadTestsFromTestCase(TestPushRenames), 122 all_tests = [unittest.TestLoader().loadTestsFromTestCase(TestPushRenames),
123 ] 123 ]
124 return unittest.TestSuite(all) 124 return unittest.TestSuite(all_tests)