4 ms·
git is pretty good at dealing with lots of local branches. it has git-stash which supports that even further (stash it now, come back to it later). it has a sta
by utx00 18y ago
git is pretty good at dealing with lots of local branches. it has git-stash which supports that even further (stash it now, come back to it later). it has a staging area which allows you to slice and dice your commits. it seems to be better and allowing you to rewrite the commit history.
i don't like git-repack, git-gc. i prefer the hg revlog approach.
hg can package all of its state from a given commit into what they call bundles. git only has git-format. can git-format be as self-describing as a bundle?
you can't delete named branches from mercurial. i say, so what. we have an inactive branch. we merge uninteresting branches into there. hg branches -a then shows you the unmerged (active) branches.
they're both good. it mostly depends on the way you and your team work.
- silentbicycle 18y agoAgreed. I prefer hg overall, but I know it's more due to style than a clear technical advantage one way or the other. Is it possible to set branches -a to be the default in your hgrc, by the way? (I was going to check on that this weekend.)
- utx00 18y agoi don't think so no. you may have to go with a wrapper script or an alias. do you know if it's possible to do bundles in git?
- silentbicycle 18y agoHaven't tried, sorry. It looks like you can add [defaults] branches = -a to your hgrc to ignore inactive branches by default, though.