Skip to content

internal: Tweak change collapsing #14034

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

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Jan 26, 2023

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 26, 2023
@lnicola lnicola force-pushed the tweak-change-collapsing branch from 026a61b to fe30f3c Compare January 26, 2023 15:24
@lnicola
Copy link
Member Author

lnicola commented Jan 26, 2023

Not really tested, merge with care 😅.

@lnicola lnicola force-pushed the tweak-change-collapsing branch 3 times, most recently from d4598f6 to 0e265c3 Compare January 26, 2023 17:33
(Modify, Modify) => {}
// equivalent to `Modify`
(change @ Delete, Create) => *change = Modify,
// shouldn't occur, but collapse into `Create`
Copy link
Member Author

Choose a reason for hiding this comment

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

Small change in behavior on these two.

// We need to fix up the changed events a bit. If we have a create or modify for a file
// id that is followed by a delete we actually skip observing the file text from the
// earlier event, to avoid problems later on.
file_changes.clear();
Copy link
Member

Choose a reason for hiding this comment

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

this clear seems unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, fixed.

@lnicola lnicola force-pushed the tweak-change-collapsing branch from 0e265c3 to 683cc8b Compare January 26, 2023 18:37
@lnicola lnicola marked this pull request as draft January 27, 2023 07:11
@lnicola lnicola force-pushed the tweak-change-collapsing branch from 683cc8b to deff5f2 Compare January 29, 2023 15:20
@lnicola
Copy link
Member Author

lnicola commented Jan 29, 2023

This wasn't was actually no longer dropping the Create-Delete pairs, hope it's better now 😬.

@lnicola lnicola marked this pull request as ready for review January 29, 2023 15:21
@Veykril
Copy link
Member

Veykril commented Jan 31, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Jan 31, 2023

📌 Commit deff5f2 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 31, 2023

⌛ Testing commit deff5f2 with merge be76f35...

@bors
Copy link
Contributor

bors commented Jan 31, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing be76f35 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Jan 31, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing be76f35 to master...

@bors bors merged commit be76f35 into rust-lang:master Jan 31, 2023
@bors
Copy link
Contributor

bors commented Jan 31, 2023

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

@lnicola lnicola deleted the tweak-change-collapsing branch January 31, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants