Page MenuHomeFreeBSD

mfc-candidates: filter out candidates marked to not be MFCed
AbandonedPublic

Authored by bz on Oct 4 2023, 1:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 10:51 PM
Unknown Object (File)
Oct 3 2024, 6:11 PM
Unknown Object (File)
Oct 2 2024, 6:00 AM
Unknown Object (File)
Sep 30 2024, 3:57 PM
Unknown Object (File)
Sep 27 2024, 6:52 AM
Unknown Object (File)
Sep 15 2024, 10:53 PM
Unknown Object (File)
Sep 9 2024, 10:00 AM
Unknown Object (File)
Sep 9 2024, 2:56 AM
Subscribers

Details

Reviewers
emaste
Summary

Some people use {X,}-MFC: {NO,no,never} to mark commits to not be
MFCed. Searching your ocmmits manually and putting them in an
exclude file is tedious so automate this.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 53830
Build 50721: arc lint + arc unit

Event Timeline

bz requested review of this revision.Oct 4 2023, 1:04 PM

Probably not the most elegant solution and adds awk as a dependency but seems to work.

Other ones I was pondering which is used more often is "X-MFC with" to sort them together (a bit more tricky to implement) and X-MFC to: (to sort out commits_to which are not intended to be MFCed to the target branch). Probably should be options...?

Basically I didn't want to lose this and put it out for further consideration.

Any reason we do also add an exclude file? You never really know at commit time for some changes. Later you discover the problems...

Apart from this adding yet another pass over all the commits since the branch point, it isn't bad.

I have a similar script I should see if it's better or not...

We support an exclude file already, with -X exclude_file.

I don't object to this functionality but am worried about increased runtime. We could perhaps check only the candidates found, i.e. in the while read hash; do loop just below?

We support an exclude file already, with -X exclude_file.

I don't object to this functionality but am worried about increased runtime. We could perhaps check only the candidates found, i.e. in the while read hash; do loop just below?

Sounds like a way more intelligent solution :) I'll update this the next days.

Love -X... somehow missed it.

Maybe we should add per stable branch versions of it? My FreeBSD changes are a big false positive hit for example

Hmm, forgot about this. We'll probably want to reimplement it on top of D47416.

I think I should have abandoned it. Not that I love Lua but -X has since done my job, especially since -X can have comments.