Repository navigation
tree discover: find the maintainer trees from MAINTAINERS and Next/Trees - #1
Merged
Merged
Conversation
A maintainer applied a series without replying, and with no trees configured the tree check could not see it. The trees a patch goes to are already written down: MAINTAINERS sections (F:/X:/N:, matched as get_maintainer.pl does) name them on T: lines, and linux-next's Next/Trees gives the branch where a T: line omits it. `tree discover` lists, for each open series, the covering sections and their trees, and marks which are already checked; `--add` adds the rest. In a kernel checkout it needs no options: - MAINTAINERS comes from --maintainers, else the mainline tree, else the repository in the current directory. - Next/Trees comes from --next-trees (a file, a URL, or "none"), else the next tree's copy, else linux-next's own on git.kernel.org: one request, made only for the kernel's MAINTAINERS. lore.get_text reads it with the same User-Agent and retries as the archive requests. - A tree in neither file has no known branch, and it is never guessed: mt76's tree has a "pending" branch, which means not applied. Its branches are listed (trees.remote_heads; --no-ls-remote skips), and with --add in a terminal it asks which one (Enter skips); otherwise it prints the `tree add` command to run. - Series sent to none of the file's L: lists belong to another project and are set aside; matching on people put a U-Boot series through the kernel's file. Tests mock the ls-remote and the Next/Trees fetch, so they stay offline. This change was developed with the help of an LLM coding assistant.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A maintainer applied a series without replying, and with no trees configured the tree check could not see it. The trees a patch goes to are already written down: MAINTAINERS sections (F:/X:/N:, matched as get_maintainer.pl does) name them on T: lines, and linux-next's Next/Trees gives the branch where a T: line omits it.
tree discoverlists, for each open series, the covering sections and their trees, and marks which are already checked;--addadds the rest. In a kernel checkout it needs no options:tree addcommand to run.Tests mock the ls-remote and the Next/Trees fetch, so they stay offline.
This change was developed with the help of an LLM coding assistant.