Skip to content

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Jun 11, 2025

Fixes #4465

Checklist

If applicable:

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

yuja added 3 commits June 11, 2025 15:49
Since merge_operations() may rebase descendants of the rewritten commits, it
can't produce the exactly same results.

jj-vcs#4465
A dummy merge shouldn't be visible to users. Only the merged view should matter.
Unfortunately, we can't reproduce a merge in bit-exact manner. The shape of the
commits graphs should be identical, but commit/change ids differ. I don't think
we would want to see the list of "identical" changes, so this patch disables
show_op_diff() for merge operations. "op diff" is unchanged because it doesn't
fail, and the diff functionality might be useful for debugging problems.

Alternatively, we could show diff from the auto-merge state without rebasing
descendants, but I don't think that would be useful either. The state before
rebase_descendants() isn't visible to users, so it shouldn't be the stuff the
user would care about.

Fixes jj-vcs#4465
@yuja yuja requested a review from a team as a code owner June 11, 2025 14:44
Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

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

Thanks for fixing, and thanks to Benjamin for reviewing

@yuja yuja added this pull request to the merge queue Jun 12, 2025
Merged via the queue into jj-vcs:main with commit 46dde13 Jun 12, 2025
28 checks passed
@yuja yuja deleted the push-wmqysospnmus branch June 12, 2025 00:27
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.

Panic in jj op show on "reconcile divergent operations"
3 participants