Skip to content
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

cargo new --svn flag #9729

Open
dertuxmalwieder opened this issue Jul 27, 2021 · 10 comments
Open

cargo new --svn flag #9729

dertuxmalwieder opened this issue Jul 27, 2021 · 10 comments
Labels
A-vcs Area: general VCS issues C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-new S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

Comments

@dertuxmalwieder
Copy link

Cargo has support for (e.g.) Pijul and Fossil, and (although I do use Fossil as my main VCS), as those are not really widely used, I wonder if it makes sense to have Subversion support as well.

Given your consent, I'd try to implement that myself, as a warm-up for more meaningful contributions, if I'll find the time soon.

@dertuxmalwieder dertuxmalwieder added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Jul 27, 2021
@Eh2406
Copy link
Contributor

Eh2406 commented Jul 27, 2021

I think svn support would be good, if someone wants to impl it.

@dertuxmalwieder
Copy link
Author

Draft:
dertuxmalwieder@c603929

A problem which I did not consider when starting this:
SVN is strictly client-server; my current code basically creates a "server" repository and a checkout in the same directory.

Should there be a unique folder structure for that?

@Eh2406
Copy link
Contributor

Eh2406 commented Jul 27, 2021

I have never used SVN, so I don't know the idiomatic solution here.

@dertuxmalwieder
Copy link
Author

My question targets best practices for cargo new, not necessarily for SVN. :-)

@gilescope
Copy link
Contributor

Is there need for built-in svn support? I think the majority of the world has moved on to better version control systems. (I don't think there's need for CVS either despite me having had to use it as a version control system in the last year.)

@dertuxmalwieder
Copy link
Author

I don’t think Git was better than SVN, yet Cargo supports it.

@gilescope
Copy link
Contributor

Both git and mercurial are a lot better at merging than svn ever was. I had some large svn projects with 50-100 devs committing and it was not pretty at all.

@dertuxmalwieder
Copy link
Author

See, that's why there are many different version control systems; I, for one, never used branches for any of my personal projects.

@weihanglo weihanglo added the A-vcs Area: general VCS issues label Feb 19, 2023
@t-rapp
Copy link
Contributor

t-rapp commented May 17, 2023

It doesn't help much to try finding the "best" version control system(s) and only include support for them in Cargo. The question should be which VCSs are typically used for Rust projects.

That said I wonder what actions Cargo should perform to initialize a new folder for Subversion. The svn:ignore property can only be set after a folder has been imported and checked out.

@weihanglo
Copy link
Member

weihanglo commented May 17, 2023

Thanks for being interested in this. Please read this comment for the team's thought on adding new VCS support. In short,

  • We currently not accept adding any new VCS support.
  • It's unclear what it means to “have VCS support built-in” in Cargo.
  • We are interested in making VCS support more extensible, such as leveraging tooling from VCS itself or working on Cargo templates.

@weihanglo weihanglo added the S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. label May 17, 2023
@weihanglo weihanglo added S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted. and removed S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. labels Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-vcs Area: general VCS issues C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-new S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Projects
None yet
Development

No branches or pull requests

6 participants