Bookmarks with hg update question

David Demelier demelier.david at gmail.com
Tue Jun 28 15:16:06 UTC 2016


Le 28/06/2016 03:00, Scott Palmer a écrit :
> It's not that it can't be done, but existing scripts will break (silently perhaps) and that sort of thing.
>
> If I have an *active* bookmark and I execute an update without specifying a revision it means I want to advance the bookmark as far as I can.  If you don't want the bookmark to move, don't activate it, or specify a revision with your update.

The problem is that even Mercurial advises to execute 'hg update' 
without arguments, see:

$ hg pull
pulling from /tmp/r1
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
(run 'hg update' to get a working copy)

This will obviously confuse users because they will invoke hg up with no 
arguments, potentially moving bookmarks at incorrect places.

-- 
David Demelier




More information about the Mercurial mailing list