TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Google/FB engineers, Do you like Mercurial?

45 点作者 gitdude大约 10 年前
All the Google and Facebook engineers who are currently using Mercurial, I want to hear from them how they feel about Mercurial over Git. If they leave GooG or FB, will they still use Mercurial?

8 条评论

andreastt大约 10 年前
The problem with this question is that there are so many _different ways_ to use Mercurial. hg&#x27;s core is fairly minimal and everyone I know who uses it rely heavily on core- and third party extensions to get any productive work done.<p>Mercurial does a good job at facilitating everyone&#x27;s favourite, yet obscure, workflow. There are people who prefer using things like mq (patchset queues), which until recently also was Mozilla&#x27;s recommended workflow. Queues are a novel way to organise your work in progress, but is quite different from what people are used to coming from svn or git.<p>More recently bookmarks were added (also as an extension you have to opt-in to), which are reminiscent of git branches. They make it possible to have a HEAD-based workflow where you rebase frequently, much like you would with git, only that the defaults of `hg log` and various other commands don&#x27;t interop very well, which means you have to memorise a lot of flags and arguments.<p>There are also many strange defaults in hg that you simply have to get used to, for example that `hg push` by default pushes everything. I have a hook in place on the remote end which prevents me from doing that.<p>By far the most frustrating experience with hg is that you cannot expect the default installation to come with sensible defaults. The argument is that keeping &quot;advanced&quot; functionality out of core prevents new users from accidentally using it.<p>An unintended consequence is that it sometimes makes it difficult for other people to help when you&#x27;re stuck because more often than not their environment won&#x27;t match yours.<p>One frequently lauded aspect of hg is that the user interface is easier to understand. Whilst I appreciate difference in taste, my experience is the opposite. If you follow the HEAD-based bookmark-style workflow, I find many cognitive dissonances in how the bookmark feature interacts with other commands.<p>At Mozilla we use hg for the canonical repositories and we have many Mozilla related extensions, but whereas I use hg every day now and it&#x27;s a fine experience as long as I stay within the marked lines, I would return to git in a heartbeat if I had the chance.
评论 #9505079 未加载
评论 #9505109 未加载
评论 #9504772 未加载
评论 #9505247 未加载
mrweasel大约 10 年前
Why only Google and Facebook engineers?<p>I use both Mercurial and Git, and honestly, they aren&#x27;t that different. Unless you&#x27;re doing something very specific I don&#x27;t see why you would choose one over the other.
评论 #9504599 未加载
评论 #9504591 未加载
gcb0大约 10 年前
heavy mercurial user. all my open source projects are on it. first at Google code (rip) and now on bitbucket.<p>though i have to use git at work daily. github to add insult...<p>my finger memory is now on git. and that&#x27;s where git &quot;wins&quot;. the chance that you will be forced to use it and learn the awful laundry list of steps to properly use it (hint, if you ever type &quot;pull&quot; you are doing it wrong) you get your finger memory and then curse when you have to use the simple and more intuitive solutions. damn dumb fingers.
评论 #9504785 未加载
FraaJad大约 10 年前
the question about mercurial by &quot;gitdude&quot; is very umm.. leading.
评论 #9504878 未加载
heyts大约 10 年前
Honest question: could someone summarize why would one use mercurial vs git? Both seems really close in features. What would be a use case where one would outshine the other?
评论 #9505351 未加载
jordigh大约 10 年前
Google is working on integrating Mercurial into their workflows, but hasn&#x27;t quite achieved this goal yet. They are growing their hg team with hopes of replicating what Facebook has done, but they aren&#x27;t there yet. Check out their contributions:<p><a href="http:&#x2F;&#x2F;selenic.com&#x2F;hg&#x2F;log?rev=google.com&amp;revcount=80" rel="nofollow">http:&#x2F;&#x2F;selenic.com&#x2F;hg&#x2F;log?rev=google.com&amp;revcount=80</a><p>Facebook is almost entirely hg by this point, though.
raldi大约 10 年前
Mercurial is almost unknown at Google.
marvel_boy大约 10 年前
I did some work on Hg and I liked, but now EVERYBODY is using Git. Very similar systems by the way. I work on iOs apps.