How to "give a name" to a head

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Aug 10 15:30:26 UTC 2011


On Aug 10, 2011, at 5:04 AM, Masklinn wrote:

> On 2011-08-10, at 11:40 , hg user wrote:
>> Thanks for the answer but from what I understand bookmarks are local only. I
>> use HG also to sync several PCs.
> Nope. This has been changed since 1.6. And I believe bookmarks are now even pushed by default.

They're not pushed by default, nor should they be. You have to explicitly choose what bookmarks should be shared. This lets you trivially have local-only bookmarks coexist with shared bookmarks (which then get automatically updated on push/pull).

>> Since I'm the only user of the repository, and it is not a problem to have
>> them added "mid-flight". The important thing is that these branch names are
>> available on each PC I use.
> Both bookmarks and branches can be pushed to remotes.


Agreed, bookmarks are what you want here. As of 1.8 they don't require you to enable an extension, either.

pacem in terris / mir / shanti / salaam / heiwa
Kevin R. Bullock




More information about the Mercurial mailing list