comparison hgext/simple4server.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 4ae115cf3efd
children f80e8e3c3726
comparison
equal deleted inserted replaced
887:0ea9cecbbd28 888:097ddcb0da25
55 tr.close() 55 tr.close()
56 finally: 56 finally:
57 tr.release() 57 tr.release()
58 finally: 58 finally:
59 lock.release() 59 lock.release()
60 repo.hook('evolve_pushobsmarkers')
60 return wireproto.pushres(0) 61 return wireproto.pushres(0)
61 62
62 # from mercurial.obsolete: 19e9478c1a22 63 # from mercurial.obsolete: 19e9478c1a22
63 def _encodemarkersstream(fp, markers): 64 def _encodemarkersstream(fp, markers):
64 """write a binary version of a set of markers 65 """write a binary version of a set of markers