Hg update should prefer heads without bookmarks
Matt Mackall
mpm at selenic.com
Fri May 29 17:27:17 UTC 2015
On Wed, 2015-05-27 at 11:14 -0700, cowwoc wrote:
> Hi,
>
> Following up on this old discussion:
> http://www.kevinberridge.com/2012/05/hg-bookmarks-made-me-sad.html
>
> Is there a way to configure a Mercurial repository so that client-side "hg
> clone <repo>" and "hg pull -u" resolve to the latest changeset on the
> "default" branch not containing a bookmark?
You could create a post-clone hook. But you should probably investigate
using the @ bookmark if you're using any bookmarks. It plays the same
role for bookmarks as default does for branches.
> Notice that I am asking for a workaround, but obviously I would prefer
> changing the default behavior to do exactly that (what is the benefit of the
> existing behavior anyway?)
Such a change would break the Mercurial project's own usage of bookmarks
and probably many others.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list