Converting SVN repo used by morons

Jens Bäckman jens.backman at gmail.com
Thu Apr 15 12:20:00 CDT 2010


2010/4/15 Giorgos Keramidas <keramida at ceid.upatras.gr>:
> On Thu, 15 Apr 2010 14:38:37 +0200, Jens Bäckman <jens.backman at gmail.com> wrote:
>> Let me first state that Mercurial converts my repository just fine. No
>> errors, no lost files, whole history intact.
>>
>> The repository I'm converting has an "interesting" past history. There
>> are several files in the early development history that were created,
>> modified, rewritten, deleted, recreated, deleted again... This makes
>> the history for one file look something like this:
>>
>> r1: Created point.cpp
>> r8: Rewrote using pig latin
>> r12: Only use roman numerals
>> r19: Deleted idiotic file
>> r25: Reinstated idiotic file
>> r62: Deleted idiotic file again, it was 250kb of junk
>> r9841: point: Created point class
>> r14135: point: Made calculations use double instead of ints
>>
>> What I want to do is keep all of the history, but remove the nonsense
>> changes to this specific file.
>
> Does converting the final hg repository once more but with a filemap
> that strips all the changesets of these files work for you?

Unfortunately, no. Some of the changesets contains changes that are
essential, as well as the idiotic changes that aren't needed. I'm
already removing other useless files with exclude statements to
filemap.

The svndumpfilter method suggested by Dirkjan is probably the way to go.


More information about the Mercurial mailing list