Mercurial 1.8.3 on Jython 2.5.2

Scott Palmer swpalmer at gmail.com
Thu May 12 11:24:04 UTC 2011


On 2011-05-12, at 4:00 AM, Adrian Buehlmann wrote:

> On 2011-05-12 09:29, Sébastien Deleuze wrote:
>> 
>> pure equivalent of posix.py or win32.py.
>> Do you think it is technicaly possible ?
> 
> No. Unless you find a way to access the plain win32 API functions
> 
>  CreateHardLink
>  CreateFile
>  GetFileInformationByHandle

This is easily done with JNA (without the need to write any native code)
http://jna.java.net/

…and Java 7 has support for links, but probably not enough.

Presumably though the clones could be done as if the --pull option was always specified and then the need to fiddle with links would be gone (at the cost of reduced performance of course).

Scott


More information about the Mercurial mailing list