Why Does Update with No Args Move Bookmark?

Becker, Mischa J mischa.becker at fredmeyer.com
Thu Oct 17 18:05:24 UTC 2013


From: Martin Geisler [mailto:martin at geisler.net]
Sent: Wednesday, October 16, 2013 11:57 PM
Subject: Re: Why Does Update with No Args Move Bookmark?
>
> "Becker, Mischa J" <mischa.becker at fredmeyer.com> writes:
>
>> My impression is that bookmarks were implemented to generally act how
>> Git branches do. With my luck, that's probably completely wrong. :p
>> But as someone who has never used Git and doesn't share repos with a
>> large number of other people, bookmarks never seem to act the way I
>> want\expect them to and I've mostly stopped using them.
>>
>> i.e. When I'm bookmarking a revision, I'm bookmarking that specific
>> change set, not that branch, not that tip, etc. If I add a new commit,
>> I want the bookmark to stay where it was.
>
> That sounds like a local tag.
>
> --
> Martin Geisler

You are right, local tags are exactly what I want.  Thanks to the several people who suggested them.

Now I'm wondering if I missed -local  because I didn't really understand it or if that functionality was added after I stopped using tags.  Even with people recommending -local, I wasn't originally sure I wanted to mess with tags again.  The tag help says,

     ... This also means that tagging creates a new commit. The file ".hg/localtags" is
     used for local tags (not shared among repositories).'

My brain got hung up on 'creates a new commit', which is one of the reasons I stopped using tags, and never made the connection that 'not shared among repositories' meant 'does NOT create a commit', which seems obvious in retrospect. :p

Mischa

________________________________

This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.



More information about the Mercurial mailing list