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

Re: coming from git, understanding mercurial branching

From
TCTim Chase <git@tim.thechases.com>
Date
Sep 6, 2013, 19:29 UTC
Message-ID
<20130906142927.279a994a@bigbox.christie.dr>
In-Reply-To
<20130906175124.7d08947410503681449642ad@domain007.com>
On 2013-09-06 17:51, Konstantin Khomoutov wrote:
Show 5 quoted lines
> 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/

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"
- once you want a branch to be public, consider making a "real"
  branch using "hg branch"
- if you want complete isolation in case you screw up something like
  merging, use a clone

I still prefer Git's way, but at least I'm not left scratching my head when I have to play with Mercurial branches.

Thanks, all.
-tkc
Previous: Philip OakleyNext: Felipe Contreras
Message 6 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.