[PATCH RESEND] update: delete bookmarks.current when updating out of it

Idan Kamara idankk86 at gmail.com
Wed Apr 20 17:49:24 CDT 2011


On Thu, Apr 21, 2011 at 1:32 AM, Idan Kamara <idankk86 at gmail.com> wrote:

> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1303214506 -10800
> # Node ID 0532a3ed01cdc0dd31a74dc81739da13ad7002fa
> # Parent  0b37fcad00032da47cdf97c655a22c6370549ca1
> update: delete bookmarks.current when updating out of it
>
> Previously, when currently updated to a bookmark and then updating
> to a different rev which isn't a bookmark, the .hg/bookmarks.current
> file would stay there.
>
> This might be a problem because:
>
> 1. Tools might be looking at that file to figure out if we're
>   currently updated to a bookmark (the only other way atm is
>   to look for a '*' in the output of 'hg bookmarks').
>   This doesn't fully solve it since pull/unbundle may also advance
>   the current bookmark.


On second thought that last sentence is irrelevant.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110421/5b667759/attachment.htm>


More information about the Mercurial-devel mailing list