-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[vcs] fossil ignore settings is different from git/hg #4482
Comments
I'm not an expert on either so no argument from me, but I don't know what you mean by "sync with git/hg". Are you imagining using the ignore files as a way to keep the same directory in separate git and fossil repos? For that use case you're probably better off using fossil's export tooling |
Oh, let me clarify: I was referring to the fact that we want, for any VSC in use, the same set of files to be ignored. Here's how it's implemented for git and hg: cargo/src/cargo/ops/cargo_new.rs Lines 395 to 404 in 36ddeff
As you can see here, git and hg ignore files have three rules:
As noted there in the code, the VSC-specific logic for git and hg is kept in sync. We want to have the same for all other VSCs, including fossil. At the moment, Lines 57 to 63 in 36ddeff
And now that we're here, I should note that the Pijul support actually misses all ignore logic. I don't have any experience with Pijul, so not sure how it's usually handled there. But, IMHO, something worth keep track of. |
Update cargo 8 commits in e51522ab3db23b0d8f1de54eb1f0113924896331..070e459c2d8b79c5b2ac5218064e7603329c92ae 2021-05-07 21:29:52 +0000 to 2021-05-11 18:12:23 +0000 - Fix rustdoc warnings (rust-lang/cargo#9468) - Improve performance of git status check in `cargo package`. (rust-lang/cargo#9478) - Link to the new rustc tests chapter. (rust-lang/cargo#9477) - Bump index cache version to deal with semver metadata version mismatch. (rust-lang/cargo#9476) - Fix Url::into_string deprecation warning (rust-lang/cargo#9475) - Fix rust-lang/cargo#4482 and rust-lang/cargo#9449: set Fossil ignore and clean settings locally (rust-lang/cargo#9469) - Improve two error messages (rust-lang/cargo#9472) - Fix `cargo install` with a semver metadata version. (rust-lang/cargo#9467)
cargo/src/cargo/util/vcs.rs
Lines 57 to 63 in 36ddeff
Having the ignore setting set in VSC's
init()
method rather thancargo_new()
(https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/cargo_new.rs#L391) results in a different behavior: for git/hg, the ignore setting is eventually set for the directory, no matter if the VSC is new or not; for fossil, it's only set if the repo is new.Also, the ignore setting for fossil is not synced with git/hg, which is kind of the result of the code living in separate areas.
@ketralnis, maybe we make the fossil config follow the git/hg pattern? Or if that doesn't work for this VSC, maybe update the code to sync with git/hg and add a comment on both sides to keep them in sync?
The text was updated successfully, but these errors were encountered: