New standalone Windows release

Bryan O'Sullivan bos at serpentine.com
Fri Sep 23 12:24:12 CDT 2005


On Fri, 2005-09-23 at 09:31 -0700, Maquelin, Olivier wrote:

> It looks like the pull command hangs because the pipe through ssh is
> opened in text mode (which is the default under Windows). This can be
> fixed by changing the popen3 call in sshrepo.sshrepository() to:
> 	self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b')
> 
> Of course, that extra 'b' mode argument is only needed on the Windows
> platform.

Excellent.  The 'b' is harmless elsewhere.

Unfortunately, I can't replicate your success using plink.  I get an
exception in select.select when attempting to pull.

C:\hg\hello>c:\python24\python c:\python24\scripts\hg pull --ssh=plink -v ssh://
bos at hostname/hello
pulling from ssh://bos@hostname/hello
running plink bos at hostname "hg -R hello serve --stdio"
searching for changes
** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
Traceback (most recent call last):
  File "c:\python24\scripts\hg", line 13, in ?
    commands.run()
  File "C:\Python24\Lib\site-packages\mercurial\commands.py", line 1994, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "C:\Python24\Lib\site-packages\mercurial\commands.py", line 2135, in disp
atch
    return d()
  File "C:\Python24\Lib\site-packages\mercurial\commands.py", line 2120, in <lam
bda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "C:\Python24\Lib\site-packages\mercurial\commands.py", line 1336, in pull

    r = repo.pull(other)
  File "C:\Python24\Lib\site-packages\mercurial\localrepo.py", line 883, in pull

    fetch = self.findincoming(remote)
  File "C:\Python24\Lib\site-packages\mercurial\localrepo.py", line 739, in find
incoming
    heads = remote.heads()
  File "C:\Python24\Lib\site-packages\mercurial\sshrepo.py", line 87, in heads
    d = self.call("heads")
  File "C:\Python24\Lib\site-packages\mercurial\sshrepo.py", line 72, in call
    self.readerr()
  File "C:\Python24\Lib\site-packages\mercurial\sshrepo.py", line 40, in readerr

    r,w,x = select.select([self.pipee], [], [], 0)
select.error: (10093, 'Either the application has not called WSAStartup, or WSAS
tartup failed')




More information about the Mercurial mailing list