- _, tokens_added, tokens_removed = state.process(rev.text, rev.id, text_sha1)
+
+ if not self.persist_legacy:
+ _, tokens_added, tokens_removed = state.update(rev.text, rev.id)
+
+ else:
+ _, tokens_added, tokens_removed = state.process(rev.text, rev.id, text_sha1)
+