changing repository history

Benoit Boissinot bboissin at gmail.com
Fri Aug 31 11:43:08 CDT 2007


On 8/31/07, Manlio Perillo <manlio_perillo at libero.it> wrote:
> Hi.
>
> I have two questions about how to "change" a repository history (of
> course during a clone)
>
> 1) Is it possible to modify commit messages?
>     I have some projects started as for personal use, with commit
>     messages in italian language, and I would like to convert them to
>     english.
>
> 2) Is is possible to exclude "sections" of a repository?
>     I have a repository converted from Subversion with this layout
>
>        |- branches
>     -A-|- trunk
>        |       |- a
>        |- tags
>
>        |- branches
>     -B-|- trunk
>        |       |- b
>        |- tags
>
> And I want to create a repository with the content only from A/trunk

It is not possible to change the history, everything is hashed
recursively so changing a single byte in the commit message will
invalidate the hash.

What you can do is use/hack convert to do that, with a hg -> hg
conversion (I believe you can already do the filtering, I'm not sure
what is the best way to do change the commit message).

regards,

Benoit


More information about the Mercurial mailing list