Automatically create `@' bookmark on hg init

Yawar Amin yawar.amin at gmail.com
Mon Apr 22 05:25:01 UTC 2013


Hi,

I've been thinking about better unifying Mercurial's bookmarks with the
more well-known named branches and one obstacle I see is that when we first
create a bookmark and start committing on it, that head takes the `default'
(or whatever) named branch forward along with it so it's difficult to
figure out where we started off from. My suggestion: create the `@'
bookmark with every new repo created with `hg init'. This way you always
have the `@' to come back to when you want to start another topic bookmark
separate from others. And if you never use bookmarks, the `@' bookmark just
moves along with your `default' branch's original head and doesn't affect
anything.

In effect, we cement `@' as the equivalent to git's `master'.

I don't see that this would require any changes to Mercurial
storage/transfer protocols or would affect existing users.

Regards,

Yawar

-- 
ZZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130422/3f2dc390/attachment-0002.html>


More information about the Mercurial mailing list