comparison tests/test-bundle2.t @ 21604:c399bf961cb9

bundle2: the ability to set ``data`` attribute of the part is now official We make it safe to set the data attribute after part creation. It is an allowed operation as long as the part has not started to be generated.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 22 May 2014 11:21:26 -0700
parents 5e08f3b65510
children f9dabfceb259
comparison
equal deleted inserted replaced
21603:31be5a6fa716 21604:c399bf961cb9
82 > if opts['reply']: 82 > if opts['reply']:
83 > capsstring = 'ping-pong\nelephants=babar,celeste\ncity%3D%21=celeste%2Cville' 83 > capsstring = 'ping-pong\nelephants=babar,celeste\ncity%3D%21=celeste%2Cville'
84 > bundler.newpart('b2x:replycaps', data=capsstring) 84 > bundler.newpart('b2x:replycaps', data=capsstring)
85 > 85 >
86 > if opts['pushrace']: 86 > if opts['pushrace']:
87 > dummynode = '01234567890123456789' 87 > # also serve to test the assignement of data outside of init
88 > bundler.newpart('b2x:check:heads', data=dummynode) 88 > part = bundler.newpart('b2x:check:heads')
89 > part.data = '01234567890123456789'
89 > 90 >
90 > revs = opts['rev'] 91 > revs = opts['rev']
91 > if 'rev' in opts: 92 > if 'rev' in opts:
92 > revs = scmutil.revrange(repo, opts['rev']) 93 > revs = scmutil.revrange(repo, opts['rev'])
93 > if revs: 94 > if revs: