comparison mercurial/bundle2.py @ 33770:119e1c6be1ce

bundle2: fix transaction availability detection Changeset 5fc4ddfbe626 introduce more complex logic around 'bundleoperation.gettransaction'. In that process it turns the old "attribute" into a proper method which breaks the code that detects the "transaction availability". The change was visible in 'test-acl.t', fixing this reverts the test changes. Differential Revision: https://phab.mercurial-scm.org/D303
author Boris Feld <boris.feld@octobus.net>
date Wed, 09 Aug 2017 17:01:21 +0200
parents 373ca5103ba8
children 1bf5c5507614
comparison
equal deleted inserted replaced
33769:dd35abc409ee 33770:119e1c6be1ce
371 unbundler.params 371 unbundler.params
372 if repo.ui.debugflag: 372 if repo.ui.debugflag:
373 msg = ['bundle2-input-bundle:'] 373 msg = ['bundle2-input-bundle:']
374 if unbundler.params: 374 if unbundler.params:
375 msg.append(' %i params' % len(unbundler.params)) 375 msg.append(' %i params' % len(unbundler.params))
376 if op.gettransaction is None or op.gettransaction is _notransaction: 376 if op._gettransaction is None or op._gettransaction is _notransaction:
377 msg.append(' no-transaction') 377 msg.append(' no-transaction')
378 else: 378 else:
379 msg.append(' with-transaction') 379 msg.append(' with-transaction')
380 msg.append('\n') 380 msg.append('\n')
381 repo.ui.debug(''.join(msg)) 381 repo.ui.debug(''.join(msg))