[issue810] hg 0.9.5 push over SSH completes but throws exception
Steve Borho
steve at borho.org
Thu Nov 1 16:01:38 CDT 2007
On Thu, 2007-11-01 at 20:53 +0000, Rui Carmo wrote:
> 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>
> mercurial.dispatch.run()
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 20, in
> run
> sys.exit(dispatch(sys.argv[1:]))
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 29, in
> dispatch
> return _runcatch(u, args)
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 45, in
> _runcatch
> return _dispatch(ui, args)
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 348, in
> _dispatch
> ret = _runcommand(ui, options, cmd, d)
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 401, in
> _runcommand
> return checkargs()
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 357, in
> checkargs
> return cmdfunc()
> File "/Library/Python/2.5/site-packages/mercurial/dispatch.py", line 340, in
> <lambda>
> d = lambda: func(ui, repo, *args, **cmdoptions)
> File "/Library/Python/2.5/site-packages/mercurial/commands.py", line 2147, in
> push
> r = repo.push(other, opts['force'], revs=revs)
> File "/Library/Python/2.5/site-packages/mercurial/localrepo.py", line 1385, in
> push
> return self.push_unbundle(remote, force, revs)
> File "/Library/Python/2.5/site-packages/mercurial/localrepo.py", line 1465, in
> push_unbundle
> return remote.unbundle(cg, remote_heads, 'push')
> File "/Library/Python/2.5/site-packages/mercurial/sshrepo.py", line 202, in
> unbundle
> 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.
This is usually caused by a hook being run on the remote server
generating data on stdout, which gets piped over the ssh connection and
confounds the client.
--
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F E2E4 B0C2 5292 F2C6 2C8C
More information about the Mercurial-devel
mailing list