evolve: advertise obsmarker creation in the transation hook
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 03 Jun 2014 02:13:02 -0700
changeset 959 d39a5c8c82ad
parent 958 6d18a1ab496c
child 960 0c1142059a82
evolve: advertise obsmarker creation in the transation hook This will let extensions hooks on marker exchange.
hgext/evolve.py
--- 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