def post_revert(self, cat, res, total_num, num, info):
if self._staged_defs is None:<EOL><INDENT>return<EOL><DEDENT>for cat,def_name,def_value in self._staged_defs:<EOL><INDENT>self.defs.setdefault(cat, {}).setdefault(def_name, deque()).append(def_value)<EOL><DEDENT>self._staged_defs = None<EOL>
Commit any staged rule definition changes (rule generation went
        smoothly).