Does anyone use named branches?

Matt Mackall mpm at selenic.com
Fri Oct 16 18:15:39 UTC 2009


On Fri, 2009-10-16 at 15:52 +0200, Mads Kiilerich wrote:
> On 10/16/2009 03:34 PM, Adrian Buehlmann wrote:
> > Using the branch name of the tip revision of the source repo seems
> > useless to me when cloning, since 'hg tip' may be from random named branches
> > (from whatever named branch the last added changeset may happen to
> > belong to -- quite random, that is).
> 
> It seems like the "tip" concept and command has become more or less 
> irrelevant with the introduction of named branches.
> 
> Perhaps it should be deprecated and replaced with something that clearly 
> refers to "tip of branch X" or "tip of current branch" or "tip of 
> default branch"?

'default' is actually synonymous with 'tip of the default branch' when
used in a revision id context. Other branch names work similarly.

A similar concept for 'tip of the current branch' would be nice, but
perhaps this should be dealt with by introducing the expanded revision
syntax we've talked about. 

-- 
http://selenic.com : development and support for Mercurial and Linux





More information about the Mercurial mailing list