changeset 959:d39a5c8c82ad

evolve: advertise obsmarker creation in the transation hook This will let extensions hooks on marker exchange.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 03 Jun 2014 02:13:02 -0700
parents 6d18a1ab496c
children 0c1142059a82
files hgext/evolve.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Tue May 20 15:01:33 2014 -0700
+++ b/hgext/evolve.py	Tue Jun 03 02:13:02 2014 -0700
@@ -2379,6 +2379,7 @@
     op.repo.obsstore.mergemarkers(tr, obsdata)
     new = len(op.repo.obsstore._all) - old
     op.records.add('evo_obsmarkers', {'new': new, 'bytes': totalsize})
+    tr.hookargs['evolve_new_obsmarkers'] = str(new)
 
 def _buildpullobsmerkersboundaries(pullop):
     """small funtion returning the argument for pull markers call