[PATCH 0 of 2 RFC] forward current bookmark on hg update

Eduard-Cristian Stefan alexandrul.ct at gmail.com
Wed Apr 20 12:07:02 CDT 2011


On 2011-04-20 19:29, Idan K wrote:
> I actually didn't know pull will move the current bookmark, just noticed that 
> after you mentioned it. FWIW I'm not entirely sure I would expect it to.
> 
> If I'm working on something using a bookmark and I incidentally decide to pull,
> that doesn't mean my next step would be a 'hg update' (or merge for that matter).
> So if I continue working without a hg update, I basically need to 'hg bookmark -f...' to
> get it back.
> I would expect it to move when (if) I actually decide to update my working copy to what I just pulled.
> 
> Also, I may be thinking ahead here but if we ever introduce bookmark namespaces
> (per entry in paths for example), the way I see things the consequence of a pull would be to move
> the remote bookmark rather than the local one (much like git does for that matter).
> Only if I follow up with a 'hg upd/merge remote/bookmark-name', the local bookmark should be moved.

+1


More information about the Mercurial-devel mailing list