Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make rev() detect all parents of the given commits #1329

Conversation

christian-schilling
Copy link
Member

@christian-schilling christian-schilling commented May 8, 2024

The :rev() filter used to only apply filters if the specified revisions where encountered during traversal.
However, this meant that if an ancestor commit is reachable by multiple paths in the history and some include the specified revision and some don't, the ancestor has multiple corresponding filtered commits.
This resulted in duplicated commits in those more complicated histories and caused "non roundtrip" issues.
Now the rev filter will compute if a commit is reachable from the specifed commit in any way and apply if so.

Change: rev-all-parents
Co-authored-by: Ralf Jung post@ralfj.de

@christian-schilling christian-schilling force-pushed the @changes/master/christian.schilling.de@gmail.com/rev-all-parents branch 2 times, most recently from b0ab8c6 to 194387d Compare May 8, 2024 13:34
The `:rev()` filter used to only apply filters if the specified
revisions where encountered during traversal.
However, this meant that if an ancestor commit is reachable by
multiple paths in the history and some include the specified
revision and some don't, the ancestor has multiple corresponding
filtered commits.
This resulted in duplicated commits in those more complicated
histories and caused "non roundtrip" issues.
Now the rev filter will compute if a commit is reachable from the
specifed commit in any way and apply if so.

Change: rev-all-parents
Co-authored-by: Ralf Jung <post@ralfj.de>
@christian-schilling christian-schilling force-pushed the @changes/master/christian.schilling.de@gmail.com/rev-all-parents branch from 194387d to 1c7abe2 Compare May 8, 2024 13:52
@christian-schilling christian-schilling merged commit 9a97ca8 into master May 11, 2024
1 check passed
@christian-schilling christian-schilling deleted the @changes/master/christian.schilling.de@gmail.com/rev-all-parents branch May 11, 2024 09:44
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.

1 participant