Wildly inaccurate diff for imported PR #631
Labels
No labels
ai-review-please
Org/Team Modification
Private Issues
Runner Request
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forge/forge#631
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
An imported PR shows a wildly inaccurate diff and commit list
Details
I'm not sure how widespread this is, but I ran across this case.
koji/koji#4546/files
This PR was
Is this perhaps fallout from the solution to forge/forge#556 ?
The page claims the PR contains 40 commits changing 45 files, but the actual changes were only 5 commits changing 3 files.
Ok, I think what happened is that the fix for forge/forge#556 reset the merge_base to the original value from pagure, even though we'd already updated and merged this one. The merge_base value for this PR was reset to what pagure had.
Another case -- koji/koji!4542
@mikem — your analysis was correct. The
merge_basefor these two PRs was set to a stale value, causing the diff to show far more commits and changed files than the PR actually contained.I investigated and confirmed that only these two PRs in koji/koji were affected:
To check for other affected PRs, I:
merge_basevalue — only these two matchedThe
merge_basehas been corrected for both PRs. The diffs and commit lists should now display accurately.