ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm in a discussion with a friend about how you use a version control system. In this particular case SVN. He seems to think that it's OK to use certain parts of the SVN directory structure to check in files he's not sure will compile. In other words experimenting directly in the version control directories.
In my world you never check anything into a a version control system you're not already sure is working. You use your IDE to verify that everything works and #then# you check it in.
He uses the TFM to argue in favour of his actions. Intuitively though, it makes little sense to me.
Short of RTFM can anyone tell me if my intuition is correct?
Regards,
Soren
Edit: Sorry. We Danes are per definition a little slow on the uptake.
I don't have a lot of experience with subversion. I do use git quite a bit. I usually create a separate branch for testing changes. I even keep separate branches to track remote git repositories of similar code bases. That way it is easier to roll back changes without making the commit log dirty. It makes it very simple by deleting the branch locally. I almost never upload testing or temporary branches to my remote git server where I have full access.
I don't have a lot of experience with subversion. I do use git quite a bit. I usually create a separate branch for testing changes. I even keep separate branches to track remote git repositories of similar code bases. That way it is easier to roll back changes without making the commit log dirty. It makes it very simple by deleting the branch locally. I almost never upload testing or temporary branches to my remote git server where I have full access.
I would note that SVN encodes branches as directories (i.e., to make a branch in SVN, you copy your code to a new directory).
I’d say that code outside of trunk does not need to be correct similarly to how code outside of master branch (and all other release branches) doesn’t have to be correct in a git repository.
How else would you do a review? You need to share your code with others and that code isn’t necessarily its final version. Or you could have just a simple proof of concept which demonstrates an idea. Than again, I actually don’t know how you do reviews in Subversion.
With git though, once you’re ready to merge the branch you can rebase and play around with it to clean up the history such that each commit in the branch does compile and then merge that into master. I don’t know how that looks in Subversion.
you might want to put code into a version control system for different reasons: for example just to save it. You do not need to rely [only] on your on linux. Or because you want to share it with your staff.
But there is no general way of working, so you cannot have a common, global solution. It always depend on the team, the job and the other tools used.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.