Skip to content

tools: patchoulene: Handle reverts semi-automatically - #21

Merged
RevySR merged 3 commits into
dram/patl-diff-refactorfrom
dram/patl-revert-handling
Sep 2, 2026
Merged

tools: patchoulene: Handle reverts semi-automatically#21
RevySR merged 3 commits into
dram/patl-diff-refactorfrom
dram/patl-revert-handling

Conversation

@dramforever

Copy link
Copy Markdown
Contributor

The combination of these changes should allow for an okay experience when adding a "replacement" key to commit: patches, which is useful to handle upstream reverts.

This can happen if a commit was reverted and a new version was posted
later. In this case, the database would the new patch as the
replacement, and later record invocations would ignore this commit

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
If a patch in rev1 was removed because it was already replaced by some
other patch in rev1, mark the replacement as "~" instead of "+" to
indicate this special case.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
If a patch has both merged and replacement, then this is probably a
reverted patch, so disregard merged versions for the purposes of
comparison.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
@RevySR
RevySR merged commit 10ec154 into master Sep 2, 2026
@dramforever
dramforever deleted the dram/patl-revert-handling branch September 2, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants