git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: coming from git, understanding mercurial branching

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 8, 2013, 00:42 UTC
Message-ID
<CAMP44s3ypvEBWnsfN5c73wT8cvGhpTnd3vbmpPfn8GMb4FVLvQ@mail.gmail.com>
In-Reply-To
<20130906142927.279a994a@bigbox.christie.dr>
On Fri, Sep 6, 2013 at 2:29 PM, Tim Chase <git@tim.thechases.com> wrote:
Show 6 quoted lines
> On 2013-09-06 17:51, Konstantin Khomoutov wrote:
>> I found this guide [1] very useful back in the time I tried to grok
>> Mercurial.
>>
>> 1.
>> http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/
I've written various blog posts about the subject:

http://felipec.wordpress.com/2011/01/16/mercurial-vs-git-its-all-in-the-branches/ http://felipec.wordpress.com/2012/05/26/no-mercurial-branches-are-still-not-better-than-git-ones-response-to-jhws-more-on-mercurial-vs-git-with-graphs/ http://felipec.wordpress.com/2013/08/27/analysis-of-hg-and-git-branches/

Show 6 quoted lines
> Indeed, after reading it, that's the most sense I've been able to make
> of Mercurial's strange branching.  I guess it boils down to the
> following rough heuristic:
>
> - if you want to dink around locally, but don't want to publish your
>   branches (yet), default to bookmarks using "hg bookmark"

Kind of, but then they added support to push bookmarks, so now you can fetch and push them, so not exactly local.

In addition, they are starting to think on adding remote namespaces, like in Git, except that jon/devel becomes jon@devel.

> - once you want a branch to be public, consider making a "real"
>   branch using "hg branch"

Not necessarily. You can merge or rebase, so "the public" doesn't see the bookmark.

> - if you want complete isolation in case you screw up something like
>   merging, use a clone

I guess so. There's also the option of using the 'mq' extension, which I guess it's similar to quilt.

-- 
Felipe Contreras
Previous: Tim Chase
Message 7 of 7 in “coming from git, understanding mercurial branching”
  1. Tim ChaseSep 6, 2013
  2. Tay Ray ChuanSep 6, 2013
  3. Tim ChaseSep 6, 2013
  4. Konstantin KhomoutovSep 6, 2013
  5. Philip OakleySep 6, 2013
  6. Tim ChaseSep 6, 2013
  7. Felipe ContrerasSep 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.