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

lib id_prefix: look for divergent changes outside short prefix set #3989

Merged
merged 2 commits into from
Jun 29, 2024

Conversation

ilyagr
Copy link
Collaborator

@ilyagr ilyagr commented Jun 29, 2024

Fixes #2476.

Previously, if there was a change id match within the short prefix
lookup set, jj would not look for commits with that same change id
outside the short prefix set. So, it wouldn't find the conflicted
commits for a commit with a divergent (AKA conflicted) change id.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • n/a I have updated the documentation (README.md, docs/, demos/)
  • n/a I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@ilyagr ilyagr marked this pull request as ready for review June 29, 2024 04:52
@ilyagr ilyagr force-pushed the changeid branch 4 times, most recently from 896bf8f to 2440fc9 Compare June 29, 2024 05:02
@ilyagr ilyagr marked this pull request as draft June 29, 2024 05:10
@ilyagr ilyagr force-pushed the changeid branch 2 times, most recently from 0daf8ac to 63cd408 Compare June 29, 2024 05:14
@ilyagr ilyagr marked this pull request as ready for review June 29, 2024 05:14
@ilyagr ilyagr force-pushed the changeid branch 6 times, most recently from 62264ed to cb5ac06 Compare June 29, 2024 05:38
Copy link
Collaborator

@yuja yuja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

lib/tests/test_id_prefix.rs Outdated Show resolved Hide resolved
ilyagr added 2 commits June 29, 2024 11:34
Fixes jj-vcs#2476.

Previously, if there was a change id match within the short prefix
lookup set, `jj` would not look for commits with that same change id
outside the short prefix set. So, it wouldn't find the conflicted
commits for a commit with a divergent (AKA conflicted) change id.
@ilyagr
Copy link
Collaborator Author

ilyagr commented Jun 29, 2024

Thank you, Yuya!

@ilyagr ilyagr enabled auto-merge (rebase) June 29, 2024 18:37
@ilyagr ilyagr merged commit 1b658ea into jj-vcs:main Jun 29, 2024
17 checks passed
@ilyagr ilyagr deleted the changeid branch June 29, 2024 19:28
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.

jj log -r <change id prefix> can miss some commits in divergent change
2 participants