Mercurial 1.8.3 on Jython 2.5.2
Martin Geisler
mg at aragost.com
Thu May 12 06:38:10 UTC 2011
Sébastien Deleuze <seb at deleuze.fr> writes:
> Thanks Matt, you're right.
> The issue occur during following test in util.py:
>
> if os.name == 'nt':
> from windows import *
> else:
> from posix import *
>
> In Jython, os.name return java, so I have replaced current code by
> "from java import *" for the moment.
Did you really write "from java import *"? There is not mercurial.java
module unless you created one.
For a start, you should try with:
if os.name == 'nt' or os.name == 'java':
from windows import *
else:
from posix import *
> It now produces a new error :
> C:\jython2.5.2\bin>jython ./hg
> Traceback (most recent call last):
> File "./hg", line 36, in <module>
> mercurial.util.set_binary(fp)
> AttributeError: 'module' object has no attribute 'set_binary'
Then the set_binary function will be imported from mercurial.windows
into mercurial.util.
As Matt said, this will probably not be enough, but maybe you can get
some basic commands running.
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/
More information about the Mercurial
mailing list