hg+ssh bug?
Jakob van Bethlehem
j.s.van.bethlehem at astro.rug.nl
Fri Mar 6 09:06:54 CST 2009
Hey list,
Today I tried to clone a repository over ssh, using:
hg clone ssh://user@remote/~/path/to/repo
This resulted in a SyntaxError in util.py, line 330:
yield ''.join(buf)
It says: invalid syntax
Since I wasn't sure what the reason was for this problem, I added the -v
option and tried again: then this helpful message appears:
running ssh user at remote "hg -R ~/path/to/repo/ serve --stdio"
This seems allright to me, since the remote shell should be able to
expand the ~/, but alas, so then I tried running the command between
quotes on the remote-machine. To my suprise I actually got the same
error! And when I use an absolute, full pathname, again the same error.
So it seems that the problem is at the remote end, but it's not clear to
me what the problem is.
I'm running hg 1.2/python2.4 on the remote system (but the problem is
reproduced under hg 1.1); this is the traceback in a shell _on_ the
remote system for the command: hg -R ~/path/to/repo/ serve --stdio
[..]/python2.4/site-packages/mercurial/util.py:330: Warning: 'yield'
will become a reserved keyword in the future
Traceback (most recent call last):
File "[..]/bin/hg", line 25, in ?
mercurial.util.set_binary(fp)
File "[..]/python2.4/site-packages/mercurial/demandimport.py", line
75, in __getattribute__
self._load()
File "[..]/python2.4/site-packages/mercurial/demandimport.py", line
47, in _load
mod = _origimport(head, globals, locals)
File "[..]/python2.4/site-packages/mercurial/util.py", line 330
yield ''.join(buf)
^
SyntaxError: invalid syntax
Any thoughts? Is this something I should create a bug-report for, or am
I missing something obvious?
Greetings, Jakob
More information about the Mercurial
mailing list