Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think it's interesting to note that Google's "default" model now (what's recommend to incoming engineers) is the fully trunk-based monorepo, in a Perforce clone called Piper... But with a Mercurial based interface for actual development.

In your individual checkout you can have arbitrary branching structures, then it just gets squashed down to a linear model when you submit to the monorepo.

It's a bit annoying from a technical POV that there are two separate VCS, but the conceptual model works well IMO.



Reminds me of a friend wondering how he could keep local wip changes without polluting his git repo, or accidentally push WIPs to his colleagues. I suggested adding a personal Mercurial repo to the same folder. I think he was happy with that.

Personally I often have lots of messy WIPs in temporary local git branches. With some rebase, squash and occasional reflog to keep main tidy.


Quite a lot of people don't bother with the Mercurial layer, and it barely got a mention at my orientation three years ago.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: