How to "give a name" to a head

hg user mercurialuser at gmail.com
Wed Aug 10 09:18:55 UTC 2011


I'm trying to clean up a repository.

This repository has now several heads. They started as "let me just try this
hack" and a couple of them had a lot of work in them.

Heads were just created as commits, some were created months ago. A couple
are also alternative implementations and cannot merged back, while I could
quite easily merge some of them.

Now I'd like to "give a name" to some of these heads so that it would be a
lot easier to see to which head do an "update -C". I think I may use a
branch name.

There are already some branches in the repository since it is a sourceforge
hosted open source project that I convert to hg.

Is this solution possible ?

hg update -C <revision of the head I want to name>
hg branch <name of branch>

Thanks
Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110810/9eb125ec/attachment-0002.html>


More information about the Mercurial mailing list