Versioning recommendations

Status
Not open for further replies.

Sarekai

Seniorius Lurkius
45
Hi all -
Any recommendations for versioning software for a small group of developers (3). No experience with versioning software, and nothing in place.
Lot of php/mysql coding, but interested in tracking html/css as well. Perhaps even mySQL if possible. We do a lot of work with CMSes (LAMP side).
Dev's are mostly on Macs, some on Windows.
Looking for something that isn't incredibly convoluted and free.
SVN, Git, Mecurial?
halp!
 

Viðarr

Smack-Fu Master, in training
85
Hi,

just to make sure you know: I'm biased (towards Mercurial aka Hg).

I've tried Git and a little bit Bazaar. For Git my impression was that it was just a mashup of too many scripts rather than a coherent architecture. However, it works and I use it for some purposes. For example the Debian/Ubuntu package etckeeper used to use Git as default backend VCS.

Bazaar, when I tried it (over the last year), seemed to get pretty close to the power and scope of Hg, but there are some concepts I didn't agree with and it is not as mature in my opinion.

Personally I prefer Mercurial for various reasons, one being that the tool support for the OSs on which I have to work is adequate, unlike that for Git (rather weak on Windows) for example. I did have one strange problem once, which had to do with files appearing as modified (according to their time stamp) but not actually being modified. Otherwise it worked reliable.

However, the reason I am writing back is that I would like to point you to another option.

All of the above mentioned DVCS will, as far as I know, treat data the way they get it. Which is unlike SVN or CVS where textual data gets saved differently and the admin needs to mark files for binary treatment under some circumstances because otherwise the VCS will damage the files (and keep them in their damaged form).

Mercurial provides a system of hooks to be called before or after certain actions. That way you can keep files in the repo with Unix line endings and have them in the working copy part with Windows line endings. Pretty convenient. Unlike just about any C/C++ compiler on Windows, GCC on Linux (and friends) still chokes on Windows line endings.

Alright, this also means we can guarantee a level of compatibility between the working copy part (all outside .hg) of the Hg repo and, for example, the working copy of an SVN or CVS repo. Now why would that be important?

First off: sometimes you may have to work offline, but don't want to miss the wonders of version control. So you commit to your Hg/Bzr/Git repo which you created inside the working copy checked out from SVN/CVS.

Secondly: sometimes you may want to experiment with code while keeping your experiments under version control. "Abusing" the DVCS in the described way allows you to enjoy all the advantages of them and avoid painful mechanisms like "branching" and "merging" in CVS and SVN.

All in all I've found myself several times creating an Hg repo inside a working copy retrieved from a SVN/CVS repo and working on that until my code was in a shape to be committed to the SVN/CVS repo. This way I have the code under version control and yet no one needs to know that another VCS was involved.

And yes, this method works with Hg/Bzr/Git repos inside a working copy from SVN/CVS, although for Bazaar I can imagine a few problems due to the way branches are represented in the folder structure. But I could be wrong.
 
Status
Not open for further replies.