Convert from mercurial to Mercurial two times
Ithier de Lestrange
ithier.de.lestrange at gesco.fr
Mon Jan 4 03:53:23 CST 2010
Hi,
Both solutions worked fine. I have used the first one as it avoids me to
modify mercurial system files.
Thank you very much.
Ithier
Patrick Mézard a écrit :
> Le 31/12/09 17:44, Ithier de Lestrange a écrit :
>
>> Hi,
>>
>> I have a project that depends on a library. Both are Mercurial
>> repositories. Recently I had to transfert files from the project to the
>> library while keeping the history of the files.
>>
>> The solution that I found was to use the convert extension with a
>> filemap parameter to specify the files to transfert. This work great the
>> first time, but then I had to transfert another file and it doesn't work
>> anymore.
>>
>
> That's a little weird but should work nonetheless. The problem is probably caused by convert incremental conversion support: it remembers it has converted these revisions from the source repository and skip them during the second run, even if the conversion parameters are different. You can avoid this by:
>
> 1- Converting file2 in another repository, pulling into the first converted repository, then merging.
>
> or
>
> 2- Before attempting the second conversion, removing .hg/shamap.
>
> --
> Patrick Mézard
>
>
More information about the Mercurial
mailing list