Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 22070:c1ca47204590
phase: add a transaction argument to retractboundary
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 05 Aug 2014 23:52:21 -0700 |
parents | 616a455b02ca |
children | fff8e1cec90f |
comparison
equal
deleted
inserted
replaced
22069:616a455b02ca | 22070:c1ca47204590 |
---|---|
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, tr, 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, tr, targetphase, nodes) |
4589 tr.close() | 4589 tr.close() |
4590 finally: | 4590 finally: |
4591 if tr is not None: | 4591 if tr is not None: |
4592 tr.release() | 4592 tr.release() |
4593 lock.release() | 4593 lock.release() |