diff mercurial/phases.py @ 22940:e803186296ab

phases: inform transaction-related hooks that a phase was moved We do not have enough information to provide finer data, but this is still useful information.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sun, 12 Oct 2014 08:03:20 -0700
parents c40be72dc177
children 936b0ff34346
line wrap: on
line diff
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -227,6 +227,7 @@
         self.dirty = True
 
         tr.addfilegenerator('phase', ('phaseroots',), self._write)
+        tr.hookargs['phases_moved'] = '1'
 
     def advanceboundary(self, repo, tr, targetphase, nodes):
         # Be careful to preserve shallow-copied values: do not update