changeset 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 e0eb4899b7c2
files hgext/evolve.py hgext/simple4server.py
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Wed Mar 19 20:15:55 2014 -0700
+++ b/hgext/evolve.py	Thu Mar 27 11:12:56 2014 -0700
@@ -2226,6 +2226,7 @@
             tr.release()
     finally:
         lock.release()
+    repo.hook('evolve_pushobsmarkers')
     return wireproto.pushres(0)
 
 def _buildpullobsmerkersboundaries(pullop):
--- a/hgext/simple4server.py	Wed Mar 19 20:15:55 2014 -0700
+++ b/hgext/simple4server.py	Thu Mar 27 11:12:56 2014 -0700
@@ -57,6 +57,7 @@
             tr.release()
     finally:
         lock.release()
+    repo.hook('evolve_pushobsmarkers')
     return wireproto.pushres(0)
 
 # from mercurial.obsolete: 19e9478c1a22