python-patch icon indicating copy to clipboard operation
python-patch copied to clipboard

PatchSet apply will not restore directory in case of failure

Open stefanoborini opened this issue 6 years ago • 0 comments

PatchSet.apply needs a context manager to restore the prevdir cwd in case of exception. As it is now, the path remains the new root, which may be puzzling.

stefanoborini avatar Jan 14 '19 14:01 stefanoborini