How to get rid of useless heads

Sandro Dentella sandro at e-den.it
Sat Nov 10 16:10:03 UTC 2007


> You can create separate clones with each branch, with:
> 
> 	% hg clone -r branchname converted one-head

Thanks for this hint. I just did 'hg clone -r tip ...' and it (almost)
worked. I had to clean up a little by hand (see below)

What follow may be of interested just for those who use tailor to convert
repos... 

> These heads are usually separate branches in the original repository,
> and end up as 'named branches' in Mercurial.

really I thinks that tailor misinterprets cvs rename of files. I have not
being using cvs for a while and i really thought cvs didn't allow rename of
file, but each new head is created when the log in cvs had "rename of file
a".

The converted repo (te version with more heads) had the file in the correct
position, while after 

  hg clone -r tip old new

I correctly ended up with just one head but the files where in the old
position.

sandro
*:-)



More information about the Mercurial mailing list