# HG changeset patch # User Ludovic Chabant # Date 1500823451 25200 # Node ID 812ca80863d4bf932ee9631cd827ced2be08724a # Parent f71d576835ee03193635ea18013fac3350e6f188 bake: Keep track of which pages were aborted for using other pages. diff -r f71d576835ee -r 812ca80863d4 piecrust/pipelines/page.py --- a/piecrust/pipelines/page.py Sun Jul 23 08:22:43 2017 -0700 +++ b/piecrust/pipelines/page.py Sun Jul 23 08:24:11 2017 -0700 @@ -20,6 +20,7 @@ def initialize(self): stats = self.app.env.stats stats.registerCounter('SourceUseAbortions', raise_if_registered=False) + stats.registerManifest('SourceUseAbortions', raise_if_registered=False) self._pagebaker = PageBaker(self.app, self.ctx.out_dir, @@ -131,6 +132,8 @@ logger.debug("Page was aborted for using source: %s" % content_item.spec) self.app.env.stats.stepCounter("SourceUseAbortions") + self.app.env.stats.addManifestEntry("SourceUseAbortions", + content_item.spec) result.next_step_job = self.createJob(content_item) finally: self.app.env.abort_source_use = False