hg convert -s svn ... pretxncommit.crlf hook failed

Ernie Rael err at raelity.com
Thu Jan 15 18:08:05 UTC 2015


On 1/13/2015 3:57 PM, Mads Kiilerich wrote:
> On 01/13/2015 08:33 PM, Ernie Rael wrote:
>>
>> Any suggestions for getting an hg repo with unix line endings using 
>> only the hg convert command? I looked at the "Customization" section 
>> of ConvertExtension and I suppose a custom getfile could do the 
>> trick; I'm wondering (hoping) there's a simpler way...
>
> I doubt there is a simpler way. The EOL extension do not have convert 
> in mind ... and the other way around. They might happen to work 
> together in the expected way ... but I wouldn't expect it.
>
> I would go the Customization route

Yeah, trivial code even for an occasional python programmer like me. 
Probably most of the work is understanding the converter boilerplate 
and/or undocumented (AFAICT) things like

  * "--source" option
    In example it has "hg convert --source customsource ...", should
    this be '--source-type'? and if it should be then how inform 'hg
    convert' that it is working on svn repository? (or count on autodetect?)
  * "super(source, self)" probably should be super(customsource, self)"
    in example customization?

I may have more questions after I actually try to put something together...

I cloned the hg source to look around, but I'm wondering what the 
Mercurial source install downloads are, e.g. 
http://mercurial.selenic.com/release/windows/mercurial-3.2.3.win-amd64-py2.7.exe

> ... and perhaps keep using the eol extension to maintain the encoding.
>
> /Mads
>
>
>




More information about the Mercurial mailing list