Automatically create `@' bookmark on hg init

Yawar Amin yawar.amin at gmail.com
Tue Apr 23 00:51:29 UTC 2013


On 2013-04-22 14:19, Kevin Bullock wrote:
> [...]
>
> Cloning and contributing to a Mercurial repo without bookmarks. Right
> now you don't have to worry about bookmarks _at all_ if you're not
> using them. Setting the '@' bookmark by default would change that. At
> the very least, you'd have to make sure it remained your active
> bookmark thru switching to other branches and back, or new clones
> would end up on old revisions.

Got a chance to think about this a bit more. Your idea of automatically
creating a second, base, bookmark whenever the user creates a
bookmark--is looking more and more appealing. It still seems a little
hacky, but I guess we're trying to fit a square peg in a round hole....

So when the user creates BOOKMARKNAME, if Mercurial automatically
creates a second bookmark BOOKMARKNAME@, that should automatically avoid
namespace issues and having to adjust the code that interprets commit
symbolic names.

And if I as the user can turn off this auto-backup bookmark with a
config setting, say, so much the better.

Regards,

Yawar



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 890 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130422/63452394/attachment.asc>


More information about the Mercurial mailing list