Is applyPatch atomic? #2041
-
The description for
Does this imply that when given a list of patches, if applying one of the patches fails, it will revert all patches that have been applied so far? I am looking for function that tries to apply a list of patches, and if fails, it reverts the patches applied so far and also returns a list of inversePatches that it used to revert. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't think it'll revert anything. I made a quick demo and it looks like it will apply as many good patches as it can, and then throw an error without any type of cleanup. You may want to handle the error yourself and keep track of patches/revert on error or something. |
Beta Was this translation helpful? Give feedback.
I don't think it'll revert anything. I made a quick demo and it looks like it will apply as many good patches as it can, and then throw an error without any type of cleanup. You may want to handle the error yourself and keep track of patches/revert on error or something.