What is a "tip"?

Kevin Bullock kbullock+mercurial at ringworld.org
Tue Dec 6 11:01:52 CST 2011


On Dec 5, 2011, at 7:57 PM, Jordi Gutiérrez Hermoso wrote:

> I think this is a documentation bug. Consider,
> 
>    jordi at Iris:~$ hg help tip
>    [...]
>        The tip revision (usually just called the tip) is the
>        changeset most recently added to the repository (and therefore
>        the most recently changed head).
> 
> as opposed to
> 
>    jordi at Iris:~$ hg help update
>    [...]
>        Update the repository's working directory to the specified
>        changeset. If no changeset is specified, update to the tip of
>        the current named branch.

I think our recent usage of terminology would have this as "head of the current named branch". Talking about a "branch tip" is something I try not to do because it's confusing.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock

> My point is that tip says that there is one unique tip, whereas hg
> update says that each branch has a tip. The confusion matters if you
> remember that "hg update" by default updates to tip, but not to the
> global tip that "hg help tip" refers to, but to the latest commit made
> on the current named branch.
> 
> - Jordi G. H.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111206/10d9b29a/attachment.html>


More information about the Mercurial-devel mailing list