Creating files and renaming in custom convert plugins

Svein Seldal sveinse at seldal.com
Wed Aug 16 22:23:40 UTC 2017


Yes, --filemap can rename and delete files, but it cannot change 
contents nor can it create new files.

One possible solution could be to use the --filemap to rename 
fileobject, and then let the convert source plugin change the contents. 
Since I'm doing a lot of processing, I'm looking for a method to do this 
all at once from a source plugin.

Best regards,
Svein


On 16. aug. 2017 10:56, Boris Feld wrote:
> You can check if the --filemap option on hg --convert could do the job.
> 
> On Sun, 2017-08-13 at 21:51 +0200, Svein Seldal wrote:
>> Looking at the customization section in
>>
>> https://www.mercurial-scm.org/wiki/ConvertExtension
>>
>> Using this boiler plate framework, how can I create a new file and
>> how
>> can I rename a filename to something else?
>>
>>
>> Best regards,
>> Svein
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial



More information about the Mercurial mailing list