+ def stage_desc(match):
+ stage = match.group(1)
+ return _("Finished stage: %s") % constants.DOCUMENT_STAGES_DICT[stage]
+
+ for changeset in self.vstorage.page_history(title):
+ changeset['description'] = STAGE_TAGS_RE.sub(stage_desc, changeset['description'])
+ yield changeset
+