What is a "tip"?

Matt Mackall mpm at selenic.com
Tue Dec 6 15:25:42 CST 2011


On Tue, 2011-12-06 at 15:47 -0500, Jordi Gutiérrez Hermoso wrote:
> 2011/12/6 Matt Mackall <mpm at selenic.com>:
> > On Tue, 2011-12-06 at 14:53 -0500, Jordi Gutiérrez Hermoso wrote:
> 
> >> Would it make sense to patch the tip command to at least accept an
> >> option to give you the tip of the current branch and do the global tip
> >> by default?
> >
> > I'd really just rather hide the concept of the global tip entirely,
> > including the tip command.
> 
> Well, it's helpful to know what plain "hg update" will do before it does it.

Indeed, but 'hg tip' has _no connection to that question_ when using
more than just one named branch. The repository tip can be any random
branch tip. Instead, the tip of branch X can be seen with 'hg log -r X'.

I suppose we could make 'hg tip <rev>' find the tip of the branch
associated with <rev>, eg 'hg tip .' to find the head of the current
branch.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list