recode text files in repo

Marcin Kasperski Marcin.Kasperski at mekk.waw.pl
Wed Aug 28 08:59:15 UTC 2019


Victor Sudakov <vas at mpeks.tomsk.su> writes:

> Marcin Kasperski wrote:
>> >
>> > Does anybody know how to configure "hg convert" to put all text files
>> > through "iconv -f KOI8-R -t UTF8" ?
>> 
>> Hmm, wouldn't evolve help (giving track of obsolete2current commits
>> mapping as a bonus)?
>
> If possible, first I would like to try out some means without touching/modifying the history.

By definition you are modifying history. You are taking most of your
changesets and editing their contents (and even those which happened
later, are rebased).

In fact the final effect of hg convert with patches, and of evolve,
should be similar (the difference: after evolve your old commits will be
in your local repo, just marked as obsolete, after convert yuou will
have new unrelated repo with unrelated history)




More information about the Mercurial mailing list