How to get rid of useless heads
Matt Nordhoff
mnordhoff at mattnordhoff.com
Mon Nov 12 09:00:54 UTC 2007
Sandro Dentella wrote:
>> 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.
FWIW, I had the same experience when using Tailor to convert from Bazaar
to Mercurial a few months ago. Bazaar does have real rename support.
Whenever a changeset *only* removed things, it became a head. I
eventually just "hg merge"d them all. Not great to pollute the history
with conversion bug cleanup, but it worked.
I wonder, where's the bug? Probably in Tailor's hg output code?
--
More information about the Mercurial
mailing list