What is a "tip"?

Jordi Gutiérrez Hermoso jordigh at octave.org
Mon Dec 5 19:57:17 CST 2011


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.

- Jordi G. H.


More information about the Mercurial-devel mailing list