Message1239
Using Jython 2.2a1, I tried to load Mercurial v. 0.9.1,
just enough to call --version. But I just get a parse
error:
$ /tmp/hjg --version
Traceback (innermost last):
File "<stdin>", line 3, in ?
File
"/usr/lib/python2.4/site-packages/mercurial/commands.py",
line 58
yield src, fn, util.pathto(repo.getcwd(),
fn), fn in exact
^
SyntaxError: invalid syntax
The wrapper script, FWIW (based on Linux FC5):
#!/bin/sh
/tmp/jythonRelease_2_2alpha1/jython - <<PYTHON
import sys
sys.path.append("/usr/lib/python2.4/site-packages")
from mercurial import commands
commands.run()
PYTHON
Sources:
http://www.selenic.com/mercurial/release/mercurial-0.9.1.tar.gz
Surrounding text (sorry if this gets reformatted):
def makewalk(repo, pats, opts, node=None, head='',
badmatch=None):
files, matchfn, anypats = matchpats(repo, pats,
opts, head)
exact = dict(zip(files, files))
def walk():
for src, fn in repo.walk(node=node,
files=files, match=matchfn,
badmatch=badmatch):
yield src, fn, util.pathto(repo.getcwd(),
fn), fn in exact
return files, matchfn, walk()
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:33 | admin | link | issue1562575 messages |
| 2008-02-20 17:17:33 | admin | create | |
|