Mercurial > evolve
comparison hgext/evolve.py @ 888:097ddcb0da25
evolve: add a hook related to the new pushobsmarkers command
Before the current expericment, people could hook on obsolescence marker push
using pushkey. We add a new hook to serve the same purpose.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 27 Mar 2014 11:12:56 -0700 |
parents | 0ea9cecbbd28 |
children | 7de15cfd79f7 |
comparison
equal
deleted
inserted
replaced
887:0ea9cecbbd28 | 888:097ddcb0da25 |
---|---|
2224 tr.close() | 2224 tr.close() |
2225 finally: | 2225 finally: |
2226 tr.release() | 2226 tr.release() |
2227 finally: | 2227 finally: |
2228 lock.release() | 2228 lock.release() |
2229 repo.hook('evolve_pushobsmarkers') | |
2229 return wireproto.pushres(0) | 2230 return wireproto.pushres(0) |
2230 | 2231 |
2231 def _buildpullobsmerkersboundaries(pullop): | 2232 def _buildpullobsmerkersboundaries(pullop): |
2232 """small funtion returning the argument for pull markers call | 2233 """small funtion returning the argument for pull markers call |
2233 may to contains 'heads' and 'common'. skip the key for None. | 2234 may to contains 'heads' and 'common'. skip the key for None. |