News for hackers. Stuff that matters.
Re:Abandon Your DVCS and Return to Sanity (2015) by lmm on Wednesday June 01, 2016 @04:13AM (#11812809)
Blobs are different. You can tell that because even SVN has a flag that marks a file as a blob or not, and treats it differently in history and when merging if it is. We all know that when you have a function that takes a flag to do one of two different things, it's probably better to make it two different functions.

Missing functionality can be a good thing when that functionality lets you do something stupid. Yes, SVN + discipline about the size of your repos can be as good as git (on that particular aspect). But discipline isn't free.

DVCS true believers don't believe in submodules / subrepositories / etc. Those things are sops to the big-repository diehards. I've worked on small repositories and I've worked on one of those organization-wide repositories the author talks about; the big repositories aren't like that for good reasons, they're like that because of dysfunctional organizational politics. Sure, Facebook uses one, but Facebook also uses PHP.

You always needed to base your patch on the correct thing when contributing. You don't need to make a new local branch - it's useful to do so, but not required. Sending a patch email takes longer than pushing a commit to github and making a PR, it just doesn't sound like it because the author hasn't written "3. Open an email client 4. Click "attach" 5. Browse to the directory where you stored your patch ...". And you do gain a lot in terms of ability to rebase, which is vital when patches go ignored for as long as they do. A pull request from two years ago is often salvageable; a patchbomb simply isn't.

Re:Abandon Your DVCS and Return to Sanity (2015) by icebraining on Wednesday June 01, 2016 @04:22AM (#11812850)
I'm a DVCS believer, yet I've recently introduced submodules into our company. Why would a DVCS believer be a big-repo diehard?
Re:Abandon Your DVCS and Return to Sanity (2015) by pmontra on Wednesday June 01, 2016 @07:10AM (#11813472)
Well, I can't speak for myself but there is this comment from a Linux kernel developer https://news.ycombinator.com/item?id=11812763

It's the project git was born for.

Re:Abandon Your DVCS and Return to Sanity (2015) by lmm on Wednesday June 01, 2016 @04:34AM (#11812883)
> I'm a DVCS believer, yet I've recently introduced submodules into our company.

Huh. Why would you do that?

> Why would a DVCS believer be a big-repo diehard?

That's the opposite of what I said?

Re:Abandon Your DVCS and Return to Sanity (2015) by icebraining on Wednesday June 01, 2016 @04:46AM (#11812919)
Sorry, my poor English got in the way of comprehension; I thought 'sop' meant something else.

As for why would I use submodules, we have a modular system from which different client packages are produced, and we need to manage the lifecycle of each module independently for each client.

Re:Abandon Your DVCS and Return to Sanity (2015) by lmm on Wednesday June 01, 2016 @05:59AM (#11813226)
> we have a modular system from which different client packages are produced, and we need to manage the lifecycle of each module independently for each client.

That makes sense, but sounds like you're not particularly making use of the submodule-to-emulate-big-repository functionality? (that is, each module has its own lifecycle, so there's no need to coordinate between updates to multiple modules for a different client). Indeed it seems like you couldn't accomplish this with a single big repository at all.

(Personally I find submodules cumbersome as a way of managing a project in that setup (I'd rather just have releases of the modules, and then the per-client modules depend on releases), but if it's working for you then fair enough)

Re:Abandon Your DVCS and Return to Sanity (2015) by WorldMaker on Wednesday June 01, 2016 @02:19PM (#11816838)
Is there a reason not to make use of your language's package management tools instead? In my experience, most such "submodules" are better off handled as packages (npm, NuGet, jspm, gem, et al) than submodules. Certainly there are complications for private/enterprise feeds, but most of the package managers have options these days (including pointing at just about any git repository directly).
Re:Abandon Your DVCS and Return to Sanity (2015) by icebraining on Wednesday June 01, 2016 @06:10PM (#11818645)
There are two constraints: we use Python and we run multiple copies of the software (with potentially version-incompatible modules) on the same host.

That means we'd have to use virtualenv or similar, plus pip or easy_install to actually fetch and install the modules. On the developer side, it means having to manually update the dependencies file to upgrade a module, while with submodules they can just do "git pull" inside it and then "git add" in the parent repo, which auto-detects the new version.

I'd love to see a simpler approach, but I couldn't find it.

Re:Abandon Your DVCS and Return to Sanity (2015) by WorldMaker on Thursday June 02, 2016 @10:07AM (#11822533)
Ah, Python. Yeah, virtualenv + pip or docker + pip would probably be a better way to manage that sort of thing and increase separation of your git repositories (and better yet, better separation of your Python VMs), but I can see why submodules feel easier in this case if you are dealing with system global installs of Python packages right now.
Re:Abandon Your DVCS and Return to Sanity (2015) by ajdlinux on Wednesday June 01, 2016 @08:16AM (#11813732)
When I send a patch email, it's just a matter of running "git send-email -1 --to=linuxppc". :) (I'm not saying that we can't do better than patch emails, but after configuring my git client with an SMTP server, it's as easy as opening a GitHub PR.)