comparison tests/test_push_renames.py @ 832:e9af7eba88db

globally: clean up whitespace around operators and commas to conform with PEP8 Mostly autoformatted by Eclipse. A few manual corrections were performed where Eclipse's autoformatter did something non-idiomatic.
author Yonggang Luo <luoyonggang@gmail.com>
date Wed, 12 Oct 2011 15:35:25 +0800
parents d2ef7220a079
children 312b37bc5e20
comparison
equal deleted inserted replaced
831:be5bbb2f2d68 832:e9af7eba88db
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