logoalt Hacker News

From CVS to Git, thirty years of source control

48 pointsby andsoitislast Saturday at 11:51 AM45 commentsview on HN

Comments

zabzonktoday at 9:32 AM

I sometimes wonder what would have happened if Atlassian had stuck with Mercurial support on Bitbucket - I don't think they can pretend that switching to git did very much for them. I love(d) Mercurial, and particularly TortoiseHg integration on Windows.

show 2 replies
e40today at 10:54 AM

Our main repo has git history back to 1985. RCS to CVS to git. Each step was lossless. I don’t remember the exact tool, but the CVS to git step was a fantastic Ruby program. It was incremental and each night I had a cron job that would update a checked out copy of the sources on the git side and diff with a copy from CVS. After 6 months I had confidence and the training of everyone was complete and we switched over.

binaryturtletoday at 9:17 AM

I use Subversion w/o a server too. You can have your repositories locally (file:///Path/to/repository). All my own (single man) projects are in local SVN repositories. For my use case git is just too much extra friction, and I still love to have my one single unique global revisions number that is linearly increasing with each commit. :)

show 3 replies
mhdtoday at 11:43 AM

One interesting predecessor were the versioned files of time-sharing systems. You can still access Donald Knuth's directory tree for example, and see that a lot of files have different revisions.

Knuth's Tex directory: https://www.saildart.org/%5BTEX,DEK%5D/

badsectoraculatoday at 11:23 AM

> What SVN didn't fix was the fundamental centralized model. You could not commit without a network connection. The repository was still a single server. "Working offline" meant "reading-only", you could browse history but not record any new work, and the day the server was down was the day the whole team waited.

FWIW this is how most projects work anyway. And IMO Subversion is still the best VCS when you have a lot of large binaries (the various extensions to Git like git-lfs are just hacks that graft a separate half-baked version control system to it and add further complexity to an already annoyingly complex system). I remember working at a gamedev company in early 2010s and out of curiosity i tried to put everything in the 250GB perforce workspace in a git repository only for git to choke and die before it managed to do anything. In comparison, ~5-6 years earlier i worked briefly at a game porting studio where every single game they had ported (which i'm almost certain went all the way back to the 90s), including all data and source (and these were AAA games, not tiny indie games), were into a single Subversion server.

Unfortunately Subversion lost the VCS fashion wars and nowadays it barely seems to have any development. I still use it for a few projects where i do have a lot of binary stuff, but most new things are in Git. I also have a bunch of stuff in Fossil (which also did handle binary files better than Git when i tested it years ago, though not as good as Subversion or P4) but nowadays i convert them to Git when i need to share because, well, pretty much everyone expects Git (and projects such as Codeberg and Forgejo make sharing and self-hosting easier).

Ironically the "fundamental issue" mentioned above was solved not too long ago with Subversion as nowadays you can have multiple "changelists" and each changelist is a full (hidden) SVN repository by itself, allowing you to do commits (as "shelving") and such locally and then push to remote when you're done. AFAIK changelists can also coexist (unlike Git where you can only work at one branch at each time). Unfortunately since Subversion is basically barely held together, only the command-line UI provides that functionality (at least in FLOSS clients) and even TortoiseSvn didn't seem to support it last time i checked.

show 1 reply
dn3500today at 9:43 AM

There were several proprietary systems in the late 1980s and early 1990s. The one I remember was DSEE from Apollo Computer. It was integrated with the file system such that commits and branches worked like zfs snapshots. You could just "cd" to whatever tag, branch, or individual commit you wanted. No checkouts required. Very cool, I wish we still had that today. DSEE was spun off as Clearcase, acquired by IBM, then I don't know what happened to it after that.

show 5 replies
stingraycharlestoday at 10:35 AM

Most surprising thing from this article is that svn’s reign was only two years. I vividly remember using it for much longer than that, but at the same time, adopting git almost as soon as it arrived.

It’s probably my memory playing tricks and svn was indeed a short term endeavor.

show 1 reply
TeriyakiBombtoday at 9:50 AM

Reading this as someone in the process of migrating several projects to Fossil, interesting to see no mention of it all

A great article though!

gritzkotoday at 12:03 PM

The most annoying thing about git is its jungle of commands. I had an idea of ordering all the turns and twists in some sort of "periodic table of VCS commands". Now I use it daily https://replicated.wiki/blog/partIII.html

KingOfCoderstoday at 9:50 AM

My first contact was VMS with its versioning file system. Then RCS - before that we copied zip files around.

show 1 reply
anthktoday at 10:06 AM

Fossil deserves a chance compared to Git, even more in Rust times.

obliotoday at 9:29 AM

Fairly accurate in my experience.

Also a note about a specific bias from old-heads:

At the start things move much faster and changes are more impactful, but the start is ultimately much shorter than the rest of the lifecycle. That's why a lot of the stories you read about tech are about the early years (let's say 5-10 years, chronologically) and less so about the mature years (which can span 3+ decades, chronologically). So the early period has outsized visibility because it's cooler, I guess?

* * *

Using SCMs as an example:

SSCS - 1972. But at that point there was no internet and the number of computer users was minuscule. So SCCS is just a curiousity, a footnote, probably used by 0.000001% of Git users. So at this point for most practitioners SCMs basically don't exist.

RCS - 1982. See SCCS. SCMs still practically don't exist for most practitioners.

CVS - 1986. Now the internet is getting started and the number of computers in the world has increased by orders of magnitude. Even so, adoption of core development technologies like SCMs is slow and yes, it took CVS at least 10 years to become somewhat established. Even at this point, probably at least 50% of software developers still don't use SCMs (especially less professional ones). Visual Source Safe runs in parallel to CVS, with its own problems described in the article.

SVN - 2000. The internet is in full swing, computers are ubiquitous, things are really moving. It's super hard to evaluate how many developers still don't use SCMs, but the number is going down (maybe 30-40%?) and SVN is taking the world by storm. Even after the launch of Git in 2005, until at least 2009-2010, SVN had a solid shot at winning. It's tooling was much better, especially the GUIs, TortoiseSVN & co.

Git - 2005. Git is launched in roughly the same era as SVN, just towards the end. Once Github gets going it starts to take over the SCM scape, primarily from SVN, sometimes from CVS, Perforce, and also from non-SCM people.

So, if you look at the real dates implied above: CVS, SVN, Git are widely adopted in about a 10-12 year span (something like 1998-2000 to 2008-2010). Then we reach the current mature (monoculture?) stage where we're already at least 16 years in and it's quite likely this phase will last decades.

This story has happened for lots of tech. Many different PC OSes during the 1970-1980s, then basically only 3 since about 30 years - 1995 (Windows, MacOS, Linux).

Many CPU architectures during the 1970-1980s, then basically only 2 since about 30 years (x86, ARM - maaaaybe RISC-V).

show 1 reply
hnarayanantoday at 9:27 AM

Where are my RCS people at?

show 2 replies
egberts1today at 11:15 AM

Uh? No SSCS? No VAX/CMS? No RCS? No DSEE? No ClearCase?

lysacetoday at 9:28 AM

The slow-branch problem, where the team avoided branching because it took five minutes to create one and an afternoon to merge it.

I kind of "enjoyed" this aspect of CVS (for small teams, at least) since it strongly encouraged trunk based development.

sgbealtoday at 9:19 AM

Web design tip: don't have animations within a short distance of text, as human eyes evolved to follow the flashiest/fastest-moving thing around, which makes such text literally illegible to many of us. This particular site takes the cake in that regard by animating the whole page background.

show 2 replies