Changing the tip

Marijn Vriens marijn at metronomo.cl
Thu Oct 22 11:32:15 UTC 2009


2009/10/22 Hans Meine <meine at informatik.uni-hamburg.de>

> On Thursday 22 October 2009 11:30:38 Romain Pelisse wrote:
> > Now I want my repo's tip to come back to (N-5) revision,  and leave
> > the extra next one as a "dead branch". How should I do this ? change
> > the 'tip' name ? close the branch ?
>

"tip" is just an alias for the latest committed revision in the repository
(the one with the highest revision number)


> First, simply update to the good rev. and proceed from there (committing
> etc.), this will create a new branch.
>
> You may later close or even remove the dead branch.  Closing is done using
> "hg commit --close-branch", but AFAIK this new idea is not fully integrated
> (yet?).  I mean, even hg itself does not ignore such closed branches in "hg
> heads" for example.
>

Careful here, I suspect Romain is not referring to "named-branches" at all.
--close-branch is about closing those.

When updating to a previous revision and doing a commit from there, you will
create a new "head", effectively splitting off a new line of changes, which
are, confusingly, also called "branches" but are much more light-weight then
"named-branches". The way to remove a head is to merge it with an other
head, or use history editing commands to remove the "line-of-changes".

Regards,
     Marijn Vriens.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20091022/ea5a1e72/attachment-0001.html>


More information about the Mercurial mailing list