Mercurial branching and bookmarks

后端 未结 1 451
温柔的废话
温柔的废话 2021-01-31 01:48

I read some information about named branches and working with bookmarks. Unfortunately I still don\'t see a difference between them. Is there any?

Is there any differenc

1条回答
  •  天涯浪人
    2021-01-31 02:17

    Bookmarks are tags that move forward automatically to subsequent changes, leaving no mark on the changesets that previously had that bookmark pointing toward them. Named branches, on the other hand, are indelible marks that are part of a changeset. Multiple heads can be on the same branch, but only one head at a time can be pointed to by the same bookmark. Named branches are pushed/pulled from repo to repo, and bookmarks don't travel.

    There's a great branching comparison here: http://stevelosh.com/blog/entry/2009/8/30/a-guide-to-branching-in-mercurial/

    0 讨论(0)
提交回复
热议问题