What is a "tip"?
durin42 at gmail.com
Mon Dec 5 20:08:07 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.
> 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.
Would it be clearer if the documentation for tip mentioned that there's both a tip of the repository and a tip of each branch?
> - Jordi G. H.
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
More information about the Mercurial-devel