[PATCH 0 of 6] improve help and hints, then add 'update --bookmark'

Idan Kamara idankk86 at gmail.com
Wed Dec 7 14:30:18 CST 2011


On Wed, Dec 7, 2011 at 10:01 PM, Kevin Bullock <
kbullock+mercurial at ringworld.org> wrote:

> On Dec 7, 2011, at 12:32 PM, Idan Kamara wrote:
>
> > Why would you not want to move the *active* bookmark when updating to a
> > descendant? When opening issue2894 this is the behavior I expected,
> others
> > disagreed but I didn't understand the use cases in which this is
> undesired.
>
>
> The use case is using bookmarks as a replacement for localtags (and Matt
> has explicitly stated he considers localtags deprecated in favor of
> bookmarks). Example:
>
> Alice has done a major experimental refactoring and wants Bob to review
> it. She bookmarks the last non-experimental revision as 'last-stable', and
> the head as 'experimental'. Bob clones (with bookmarks) and updates to
> 'last-stable' to inspect it. He then runs `hg update` to inspect the head
> of Alice's work.
>
> On no account should the 'last-stable' bookmark move in this case.
>

Well, one might argue that if the user has no intention of moving a
bookmark, it shouldn't be active.

But I can now see that this might be surprising to some, so a flag might be
the lesser evil of the two.
I just hope we don't end up with too many bookmark-centric flags on the
various commands, so using them will also feel lightweight...


>
> pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
> Kevin R. Bullock
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111207/998c068a/attachment.html>


More information about the Mercurial-devel mailing list