Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.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 | 445472225ccd |
children | c1ca47204590 |
line wrap: on
line diff
--- a/hgext/mq.py Wed Aug 06 00:54:37 2014 -0700 +++ b/hgext/mq.py Wed Aug 06 01:54:19 2014 -0700 @@ -932,7 +932,7 @@ if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase: tr = repo.transaction('qfinish') try: - phases.advanceboundary(repo, tphase, qfinished) + phases.advanceboundary(repo, tr, tphase, qfinished) tr.close() finally: tr.release()