diff mercurial/changegroup.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 97f86ce79abe
children c1ca47204590
line wrap: on
line diff
--- a/mercurial/changegroup.py	Wed Aug 06 00:54:37 2014 -0700
+++ b/mercurial/changegroup.py	Wed Aug 06 01:54:19 2014 -0700
@@ -700,12 +700,12 @@
             # We should not use added here but the list of all change in
             # the bundle
             if publishing:
-                phases.advanceboundary(repo, phases.public, srccontent)
+                phases.advanceboundary(repo, tr, phases.public, srccontent)
             else:
                 # Those changesets have been pushed from the outside, their
                 # phases are going to be pushed alongside. Therefor
                 # `targetphase` is ignored.
-                phases.advanceboundary(repo, phases.draft, srccontent)
+                phases.advanceboundary(repo, tr, phases.draft, srccontent)
                 phases.retractboundary(repo, phases.draft, added)
         elif srctype != 'strip':
             # publishing only alter behavior during push