News for hackers. Stuff that matters.
Re:Abandon your DVCS and return to sanity by cssmoo on Tuesday March 03, 2015 @11:25AM (#9138512)
* until you work on a project which has a 9Gb repo and history...
Re:Abandon your DVCS and return to sanity by makmanalp on Tuesday March 03, 2015 @11:34AM (#9138564)
You can do a shallow clone in any reasonable versioning system: http://stackoverflow.com/questions/6941889/is-git-clone-dept...
Re:Abandon your DVCS and return to sanity by CHY872 on Tuesday March 03, 2015 @11:46AM (#9138676)
but then you lose the ability to git bisect, blame etc, which is the root comment's advantage of doing git.

I've worked on a project where the git repository was man gigabytes - because at some point someone decided to put some binary files in the repository, which periodically got updated - now years on the repository's about 10GB, and you can't really delete the stuff clogging it up without rewriting history from years prior and making the 200 devs life hell.

Importantly, you do need all that history, because there are commits from the same time that are relevant.

Re:Abandon your DVCS and return to sanity by samastur on Tuesday March 03, 2015 @11:37AM (#9138592)
But then git blame or bisect don't really work anymore.
Re:Abandon your DVCS and return to sanity by IanCal on Tuesday March 03, 2015 @11:54AM (#9138741)
I'm not too sure what could be realistically done to implement offline bisect without getting the all the history you care about.
Re:Abandon your DVCS and return to sanity by ufo on Tuesday March 03, 2015 @07:08PM (#9141779)
One approach would be to query the server for these operations. And unlike what happens in Git, where blame is an O(N) operation, a centralized server is free to spend some extra storage to add some caches or indexes to make these searches faster.
Re:Abandon your DVCS and return to sanity by IanCal on Wednesday March 04, 2015 @07:37AM (#9143819)
Querying the server rarely works when you're offline.
Re:Abandon your DVCS and return to sanity by Tobani on Tuesday March 03, 2015 @11:47AM (#9138685)
It may work well enough.
Re:Abandon your DVCS and return to sanity by Semiapies on Tuesday March 03, 2015 @12:20PM (#9138944)
And if you never do, even after fifteen years working dozens of different project? Including a few projects that have run for most of those fifteen years?

I agree that git is weak for binaries, but the only binaries I need to keep in it are a few images and installer - nothing that has many versions, nothing that causes me problems. Similarly, a lot of open source software is mostly made up of code, not blobs.

As for distributed work, even when I'm the only developer on a project, it helps not to have to worry about a central server, especially if I'm on-site. It's also hugely faster than SVN ever was.

Re:Abandon your DVCS and return to sanity by JoachimS on Tuesday March 03, 2015 @01:38PM (#9139628)
9 Gbit really aint that much.
Re:Abandon your DVCS and return to sanity by lutorm on Tuesday March 03, 2015 @02:30PM (#9140009)
Ours is 370GB. git-svn typically falls over and dies on that, if you're brave enough to try.
Re:Abandon your DVCS and return to sanity by Crito on Tuesday March 03, 2015 @02:43PM (#9140115)
370GB is peanuts. Try keeping a centralized version control server up and operating when you have dozens of terabytes and thousands of developers.

Better to abandon the ultimately doomed monolithic repo scheme and tool your build and deployment systems to expect a multi-repo ecosystem. Then allow your teams to create their own repos on the fly, one for each individual project if they please. Once you reach that point, there is little reason to not use a more sensible VCS like hg or git.