def previous_rev(self, rev, path=''):
        assert rev % 3 == 1  # allow only 3n + 1
        return 3 - rev if rev > 0 else None
dataset/ETHPy150Open edgewall/trac/trac/versioncontrol/web_ui/tests/log.py/MockRepository.previous_rev/swapped operands of `-`