r/git • u/[deleted] • Jul 07 '18
What It Was Like Using Version Control Before Git
https://twobithistory.org/2018/07/07/cvs.html7
u/PotbellyPanda Jul 07 '18
Branching in CVS is quite frustrated by modern perspective because that every single file can be in different branches and you have no idea what your files in the directory structure might be in. Also, because of its nature, empty or removed directory is the pain in the ass.
One thing I actually like in CVS is that every single file have its version number. Yes that is the philosophy of Git, but I think many people don't need it just because GitHub has a PR number/history to help us track records.
4
u/MonokelPinguin Jul 07 '18
Could you expand on why you like version numbers for every file in CVS? In my experience the biggest problem with CVS is that it versions each file individually, which makes commits with multiple files changed worse to work with. Usually I want the revision of a directory with multiple files, which is a lot harder in CVS. If I wanted a specific file content in git, I would probably use a commit sha + file path or the file sha directly.
3
u/IvanMalison Jul 07 '18
Files in git also have 'version numbers' in the sense that there is hash associated with the version. Do you mean that the CVS version numbers are PROPER numbers and that the numbers have semantic meaning i.e. greater numbers come later?
3
Jul 08 '18
Yes, CVS has real version numbers per file. It also had special keywords like
$Id$that you could include in your source and that would than expand on checkout to:$Id: keyword.html,v 1.3 1999/12/23 21:59:22 markd Exp $You could also use
$Log$to attach a changelog to the file. It was kind of neat in the days without alway-online and mostly tarball based distribution.It's not like you can't recreate it in git, but hardly anybody bothers with it these days, as you can just run
git logon the file or click around on GitHub. Back in CVS days the keyword use was pretty normal.
6
u/SprigOfSpiceGirls Jul 07 '18
Holy shit, git was introduced in 2005?
5
u/ccharles Magit + CLI + GitLab Jul 07 '18
...yes? Did you think it was newer or older?
9
u/SprigOfSpiceGirls Jul 07 '18
Older. By the time I started programming, it was a staple. I figured it was made in the 90s at least.
0
Jul 07 '18
[deleted]
10
u/parkerSquare Jul 07 '18
In a weekend, out of disgust at the alternatives after having a commercial SCM pulled out from under the Linux project.
4
u/phord Jul 07 '18
SVN was a game changer in its day, as was rcs before it. But along the way I used a large, clunky, very expensive system called CCM. I hated most of it. But then we got the concept of "tasks", which are something like feature branches, and I loved that part. But the rest of the experience was pretty awful.
Then along came git. I originally used it to help sort out a nasty merge of two long branches in a subversion project. What had been a two-week nightmare in svn turned into a two-hour task in git. I was sold. I started using git as my primary subversion client because it had local branches and magical merging.
Another big advantage to git is the economical file transfer to a remote. I don't have comparisons for git here, but I once had a subversion commit that took over 14 hours to complete because I was in a Chinese hotel talking to a US server. I mean, if I didn't even need to share the work, I'd be stuck because there were no local commits on svn. But git also forced us to be more responsible with our repositories and not check in huge-assed binary images that we could just build from source anyway.
But merges and rebases and history rewriting are all things we didn't really, properly, have with free SCMs before git.
Ok, yes, technically, svn had merging; but it was so awful that no one did it in practice.
3
Jul 07 '18
was?
You've clearly never been in a ClearCase shop.
And if they migrated to IBM Jazz SCM my god have mercy on your soul and update your resume.
3
u/paul_h Jul 07 '18
Lucas Ward and I wrote this in 2010 - A maturity model for source-control ... but he lost his domain and though the item is still there in blogger no doubt it is inaccessible for now.
5
u/bannedtom Jul 07 '18
Quite a disturbing thought, that Git was created roughly when I started programming, but it is a software that is in existence forever for me... (It was never this fancy new thing, just new for me at some point)
2
u/takuhi Jul 07 '18
When I joined my current company they were still using CVS. This was only a few years ago and I hadn’t even heard of it, it was a total shock coming from an almost exclusive Git experience. It took me 18 months to finally work my way through all the politics and layers to get Git introduced across the board. It’s now well established and most teams are working far more efficiently (apart from some people who don’t understand why you’d ever want a branch...).
I’ll never miss booking entire afternoons off for merging in CVS....
2
Jul 07 '18
I used rcs and cvs for over a decade before git and I have to say...it's much, much better today. I don't think I could live without instant, lightweight branches anymore.
2
u/Isvara Jul 08 '18
My history of using version control, in approximate chronological order:
CVS
Subversion
StarTeam
MKS
Perforce
Darcs
Mercurial
Git
It makes me wonder how long it will be before Git is no longer flavor of the month and what innovation might follow it.
1
u/lhxtx Jul 09 '18
It’s mercurial. Lightyears better now than it was when git “won”. They’ve been quietly innovating in the background the last decade. The evolve extension is incredible.
1
u/Isvara Jul 09 '18
What's better about Mercurial now than in, say, 2009, which was when I last used it?
1
1
2
u/HayabusaJack Jul 07 '18
Interesting. I used RCS to manage configuration files back in the 90’s and use it now to manage work scripts and my personal programming projects. I’m in the process of switching it in both places to git mainly to be familiar with git and CI/CD pipelines than because it doesn’t still work just fine.
1
u/spizzike Jul 09 '18
oh man. I started out with CVS around 2001 or 2002, mostly because I started my first OSS project and wanted to post it to sourceforge and they didn't have support for anything other than CVS yet. I gotta say that it kinda blew my mind with what it could do and it was great to be able to go back to old code without resorting to having a ton of myproject-2001-03-01-00 directories to hunt through.
my move from CVS->svn (~2004) was HUGE. especially since around that time, I started dabbling with web development and I was storing the site to my project under version control (CVS didn't support having 2 files in your project with the same name, so you're entire repo could only have a single index.html for example). svn brought all kinds of new (to me) concepts to the table including tagging and branching, although I never really got a hang of merging in svn.
git is really where it's at though. I was a little apprehensive about git because at the time, at work, we had a huge monolithic repo which had dozens of projects in it and externals that mounted subtrees from other projects in the same repo. it was a huge spaghetti mess, but it worked and I understood it and you could check out subtrees for deployment and to save time/space. but the thing that really got me migrated over was Capistrano (a ruby parallel ssh tool used primarily for deployments) since it enabled the more granular deployment of a lot of small repos.
It's funny because I felt like I was so late to git since a lot of the engineers that I looked up to were already using it and talking about rebaseing and .gitignore and I had no idea what they were talking about, but I got on the git train in late 2008 with Unfuddle (I chose unfuddle because I was very familiar with Redmine and Trac up to this point and Unfuddle just felt more natural) and then later, github.
I have to use svn a lot at work still (we have a monster repo that's been around a really long time and is hundreds of GBs) and every time I have to do anything with it, it feels like I'm taking crazy pills. the lack of the ability to granularly stage commits and also the fact that when you do commit, it's instantly up makes me very uncomfortable. and when you're offline you can't commit or do anything kinda sucks.
0
Jul 07 '18
[deleted]
15
u/three18ti https://xkcd.com/1296/ Jul 07 '18
I stayed on SVN for years because the learning curve on git. When I finally just made the switch I was so pissed I had put it off for so long.
-3
u/mashmorgan Jul 08 '18
Same scenario and because of other stubborns.admin, in the end all devs moved to gitorious, and attitudes.arguments kinda had to move on.. FlightGear.org the opensource simulator.. and debate after debate after debate after..stick to what works.. for now..
-13
u/mashmorgan Jul 08 '18
ohh and full version control and history.. which no one kinda looked at..
svn > git git > pretend to be svn..
But thanks DR Torvals...u given me the two most pwoerfull tools.. I would want..
a FOSS operating system
and a SCM for doing stuff in..
Thanks u mad diver.. and a fin et all.
Anyone one thought that Linus.. is what they would send as an alinen? after all..
got world control
monispesense
a complete OS to startup and alein species
are thereby in your home....
and can control behaviour by curtting off comms..
and we;d end up back at #1 of howling, whilsting and weeting..
11
u/adrianmonk Jul 07 '18
Not that I would go back, but some of these older systems did have some advantages or nice features that Git doesn't have:
Keeping all the history centrally means your first checkout is pretty quick. Overall, git is very fast, but the initial clone can take a while on a huge repo.
Possibly as a side effect of the fact it was more work to create a repository, they supported checking out a subset of the repo. This in turn pretty much automatically gives you support for a mono-repo model, for those who want that.
Granular access control. Since everyone who can commit at all must have access to the main (only) repo, practically speaking this means commits are going to be a self-service automatic process. There are no pull requests or other type of queue of items that a person can review and decide whether to merge into the authoritative process. Which means you need stronger support for letting the repo decide in an automated fashion what commits are allowed. So for example Subversion will let you create a directory with an access control list of who can commit to it. Or even who can read it.