# HG changeset patch # User Pierre-Yves David # Date 1401786782 25200 # Node ID d39a5c8c82ade2748abeec579d556c14ea8d34f5 # Parent 6d18a1ab496cffcb32af7868035249b82a0fd6f3 evolve: advertise obsmarker creation in the transation hook This will let extensions hooks on marker exchange. diff -r 6d18a1ab496c -r d39a5c8c82ad 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