Hacker News new | past | comments | ask | show | jobs | submit login

No, we use it because it's superior to the competition.

It's much better than Subversion that was the standard before git arrived.

And it's much better than Mercurial that was competing to become the source control system to replace SVN.




As someone about to migrate from Mercurial to Git i absolutely agree that Git is the superior tool.

Pull Requests were never going to happen with Mercurial and it's also not possible to delete a branch without some black magic server-side.

And with Git hopefully it will be possible to move to Trunk-based development, although that requires a lot more than just switching to Git.


There are at least two different commercial hosting sites that implement a pull request model. If you want ephemeral branches like in git, hg branches are indeed not the right choice. But that doesn't mean that they don't have their place. Try topic or bookmarks if you want gitish behavior.I have absolutely no clue what you mean with trunk-based development...


We might have been able to do pull requests in Mercurial, but were using a special tool to manage multiple Mercurial repos.

Trunk-based development is where you use a single branch for development, instead of multiple branches that you have to merge between.

More info at:

https://trunkbaseddevelopment.com/


Funny, I rarely use branches (or topics) in Mercurial unless it is a complicated long-term project. Modern "everything on a branch" was invented by git users because the UI forces naming things. Mercurial allows sharing code and still linearizing history with rebase safely, so much less need for merges. I've always found pull requests to be only useful for the passing-by contribution. They are a pretty awful interface for anything else driven by GitHub internals more than anything else...


> Pull Requests were never going to happen with Mercurial

TBF, AIUI they're not, strictly speaking, happening with git either: They're an external addition, invented by GitHub or some such, and not actually part of git itself.


That is correct, but an important part of pull requests is that the pull request branch can be deleted afterwards.


How does that work; is it something technical built into it? Or do you mean just because after that one knows that it's incorporated upstream, so not needed as a separate entity any more? Because that would also go for a "pull request" by, say, e-mail or whatever.




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

Search: