How to get rid of big binary files buried in my repository's history

Doug Philips dgou at mac.com
Wed Feb 25 19:52:44 CST 2009


On Wednesday, February 25, 2009, at 01:00PM, Matt Mackall indited:

>>> At the end of my hg->hg conversion all the tags are borked too,  
>> because of course all the changesets are different... (I'm using hg  
>> 1.1.2 on Mac OS X 10.5 FWIW). hg help convert says that  
>> convert.hg.saverev defaults to True
>
>convert -h says:
>
>    --config convert.hg.saverev=True          (boolean)
>        allow target to preserve source revision ID
>
>And on closer inspection "preserve" means "save original revision ids in
>the new changeset" and not "don't destroy my current changeset hashes". 
>This seems like a very unfortunate and self-defeating default AND option
>description. Guess I'll change it.

Thanks. Should I open a bug for it?
I ask because it seems that there might be three options:
True, False, OnlyIfDifferent.

The last option would be to keep the changeset the same where possible, but where not possible switch to including the extra convert_revision meta-data.

If I understand correctly, as of now, either all changesets will have the convert_revision meta-data and thus cannot have the same changeset hashs, or all changesets will not have the convert_revision meta-data and thus in cases where the changeset hashs aren't going to match, the meta-data is not going to be recorded.

--Doug



More information about the Mercurial mailing list