-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
re-add a warning for old master branch, but with much simpler logic #135301
re-add a warning for old master branch, but with much simpler logic #135301
Conversation
r? @onur-ozkan rustbot has assigned @onur-ozkan. Use |
This comment has been minimized.
This comment has been minimized.
instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files. also make the wording much softer, so false positives are less alarming.
4288919
to
e1772e7
Compare
This comment has been minimized.
This comment has been minimized.
if len > 1000 { | ||
println!("hint: if this number seems too high, try running `git fetch origin master"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the if here should include "not a CI" check as we are not interested on this for CI environments.
@bors r+ |
Rollup of 6 pull requests Successful merges: - rust-lang#134074 (bootstrap: `std::io::ErrorKind::CrossesDevices` is finally stable) - rust-lang#135236 (Update a bunch of library types for MCP807) - rust-lang#135301 (re-add a warning for old master branch, but with much simpler logic) - rust-lang#135324 (Initial fs module for uefi) - rust-lang#135326 (support target specific `optimized-compiler-builtins`) - rust-lang#135347 (Use `NonNull::without_provenance` within the standard library) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#135301 - lolbinarycat:bootstrap-old-master-resurected, r=onur-ozkan re-add a warning for old master branch, but with much simpler logic instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files. also make the wording much softer, so false positives are less alarming. (warning was removed in rust-lang#134935)
instead of calling into git or checking the modification time of files, simply print the warning if there is a very large number of "modified" files.
also make the wording much softer, so false positives are less alarming.
(warning was removed in #134935)