Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
22939:e48277540413 | 22940:e803186296ab |
---|---|
225 self.phaseroots[phase] = newroots | 225 self.phaseroots[phase] = newroots |
226 self.invalidate() | 226 self.invalidate() |
227 self.dirty = True | 227 self.dirty = True |
228 | 228 |
229 tr.addfilegenerator('phase', ('phaseroots',), self._write) | 229 tr.addfilegenerator('phase', ('phaseroots',), self._write) |
230 tr.hookargs['phases_moved'] = '1' | |
230 | 231 |
231 def advanceboundary(self, repo, tr, targetphase, nodes): | 232 def advanceboundary(self, repo, tr, targetphase, nodes): |
232 # Be careful to preserve shallow-copied values: do not update | 233 # Be careful to preserve shallow-copied values: do not update |
233 # phaseroots values, replace them. | 234 # phaseroots values, replace them. |
234 | 235 |