Apply-patch#
Description#
Taking a patch file as input, apply the changes previously calculated by the create-patch command.
The apply-patch command applies the changes recorded in a patch file to the target location. This is typically
used after create-patch has generated a patch file, or after install --patch has recorded conflicts.
For usage examples, see the Tutorial. For CLI options, run wrapp apply-patch --help.
Python API Reference#
- async wrapp.apply_patch(
- patch: str,
- *,
- context: CommandParameters = CommandParameters(debug=False, verbose=False, dry_run=False, log_file=None, hash_cache_file=None),
- scheduler: SchedulerContext | None = None,
Taking a patch file as input, apply the changes previously calculated by the create-patch command.
- Parameters:
patch – Specify filename of patch file (local file path)
context – Global configuration parameters
scheduler – Optionally pre-constructed SchedulerContext. When calling many functions in a row make sure to pre-construct the scheduler.
- Raises:
FailedCommand – in case the patch file specified cannot be found
StorageOperationError – in case of failed patch operations