[issue810] hg 0.9.5 push over SSH completes but throws exception

Rui Carmo mercurial-bugs at selenic.com
Thu Nov 1 15:53:44 CDT 2007

New submission from Rui Carmo <rui.carmo at taoofmac.com>:

While trying to push to a remote repo via SSH, I get the following exception:

monolith:space rcarmo$ hg commit -m "added link"; hg push
No username found, using 'rcarmo at monolith.internal.taoofmac.com' instead
pushing to ssh://rcarmo@fear/space
searching for changes
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.5)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 14, in <module>
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in 
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 29, in 
    return _runcatch(u, args)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 45, in 
    return _dispatch(ui, args)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 348, in 
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 401, in 
    return checkargs()
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 357, in 
    return cmdfunc()
  File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 340, in 
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/Library/Python/2.5/site-packages/mercurial/commands.py", line 2147, in 
    r = repo.push(other, opts['force'], revs=revs)
  File "/Library/Python/2.5/site-packages/mercurial/localrepo.py", line 1385, in 
    return self.push_unbundle(remote, force, revs)
  File "/Library/Python/2.5/site-packages/mercurial/localrepo.py", line 1465, in 
    return remote.unbundle(cg, remote_heads, 'push')
  File "/Library/Python/2.5/site-packages/mercurial/sshrepo.py", line 202, in 
    l = int(self.pipei.readline())
ValueError: invalid literal for int() with base 10: '1 files updated, 0 files 
merged, 0 files removed, 0 files unresolved\n'
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files

I am using the new minimal installer for Mac OS X 10.5 Python 2.5, but was able 
to replicate this with MacPorts Python 2.4 (on Tiger and Leopard) as well.

messages: 4236
nosy: rcarmo
priority: bug
status: unread
title: hg 0.9.5 push over SSH completes but throws exception
topic: ssh_proto, surprise

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list