hg up branchname surprise
Matt Mackall
mpm at selenic.com
Wed Dec 13 22:42:15 UTC 2006
On Wed, Dec 13, 2006 at 11:39:31PM +0100, Georg-W. Koltermann wrote:
> Hi,
>
> I just experimented with named branches, Hg 0.9.2.
>
> I noticed that "hg up <branchname>" will silently update to the most
> recent head of the given branch, even if the branch has multiple heads.
>
> This surprised me. I would expect a diagnostic if the branch has
> multiple heads.
>
> Is the behavior intended?
Yes. It's analogous to the behavior of "hg up" which takes you to tip
even if you have multiple heads.
What's missing is something like 'hg heads <branch>' which finds all
the heads of a given branch.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list