Hg update should prefer heads without bookmarks

Matt Mackall mpm at selenic.com
Tue Jun 23 17:19:18 UTC 2015


On Mon, 2015-06-22 at 10:40 -0400, cowwoc wrote:
> On 22/06/2015 10:37 AM, Matt Mackall wrote:
> > And what about creating the bookmark @ by default?
> > What about it? No bookmarks are created by default as bookmarks are an
> > entirely optional feature.
> 
> I'm still in favor of creating @ by default (it does no harm to have it 
> there).

False. It changes clone behavior. We don't want people asking "why does
clone leave me on an ancient commit?" when people who don't even want
bookmarks have one mysteriously appear. So this is definitely not on the
table for consideration.

>  Baring that, can you create @ by default the first time a 
> bookmark gets created? The idea here is to roll out a more intuitive 
> workflow for bookmarks out-of-the-box.

Even this is probably too surprising. But it might be worth issuing a
note or warning on creating the first bookmark. We should similarly
issue a note or a warning for people who try to make their first commit
on a branch not named default.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list