comparison mercurial/commands.py @ 22069:616a455b02ca

phase: add a transaction argument to advanceboundary We now pass a transaction option to this phase movement function. The object is currently not used by the function, but it will be in the future. All call sites have been updated. Most call sites were already enclosed in a transaction for a long time. The handful of others have been recently updated in previous commit. The retractboundary function remains to be upgraded.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 06 Aug 2014 01:54:19 -0700
parents 56ccd95b49c6
children c1ca47204590
comparison
equal deleted inserted replaced
22068:d34058dd3246 22069:616a455b02ca
4581 # set phase 4581 # set phase
4582 if not revs: 4582 if not revs:
4583 raise util.Abort(_('empty revision set')) 4583 raise util.Abort(_('empty revision set'))
4584 nodes = [repo[r].node() for r in revs] 4584 nodes = [repo[r].node() for r in revs]
4585 olddata = repo._phasecache.getphaserevs(repo)[:] 4585 olddata = repo._phasecache.getphaserevs(repo)[:]
4586 phases.advanceboundary(repo, targetphase, nodes) 4586 phases.advanceboundary(repo, tr, targetphase, nodes)
4587 if opts['force']: 4587 if opts['force']:
4588 phases.retractboundary(repo, targetphase, nodes) 4588 phases.retractboundary(repo, targetphase, nodes)
4589 tr.close() 4589 tr.close()
4590 finally: 4590 finally:
4591 if tr is not None: 4591 if tr is not None: