def revert(self, strip=0, root=None):
        reverted = copy.deepcopy(self)
        reverted._reverse()
        return reverted.apply(strip, root)
apply patch in reverse order
dataset/ETHPy150Open ensime/ensime-sublime/patch.py/PatchSet.revert