changing repository history
Manlio Perillo
manlio_perillo at libero.it
Fri Aug 31 11:43:24 CDT 2007
Peter Arrenbrecht ha scritto:
> 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.
>
> I modified hgsvn when I converted my svn repository to hg to adjust
> commit messages and users.
>
> Probably easiest if you first "svn log >file", then translate the
> messages in that file, and finally read commit messages per svn rev-id
> from that file in hgsvn to get the commit messages to use. There is a
> function near the end of common.py (not in the one in the "run"
> subfolder) of hgsvn that does the commits.
>
Thanks, this seems a good solution.
>> 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
>
> If possible you can reconvert from svn using hgsvn and then tell it to
> only convert trunk by giving it the trunk url instead of the base
> repository url.
>
Thanks again, it worked without any problems!
> -peo
Regards Manlio Perillo
More information about the Mercurial
mailing list