[issue2942] crash in "hg push"

Emanuele bugs at mercurial.selenic.com
Fri Aug 5 18:07:10 CDT 2011


New submission from Emanuele <paolini at unifi.it>:

I have a crash when I do a "push". Commit, updates and pull worked fine.
Maybe the problem is related to the ssh connection without password?

I'm using hg version 1.7.5 on Ubuntu.

> hg push
pushing to ssh://[*** CUT ***]/django
searching for changes
remote: ** unknown exception encountered, details follow
remote: ** report bug details to http://www.selenic.com/mercurial/bts
remote: ** or mercurial at selenic.com
remote: ** Mercurial Distributed SCM (version 1.0.1)
remote: Traceback (most recent call last):
remote:   File "/usr/bin/hg", line 20, in <module>
remote:     mercurial.dispatch.run()
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 20, in run
remote:     sys.exit(dispatch(sys.argv[1:]))
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 29, in dispatch
remote:     return _runcatch(u, args)
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 45, in _runcatch
remote:     return _dispatch(ui, args)
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 364, in _dispatch
remote:     ret = _runcommand(ui, options, cmd, d)
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 417, in _runcommand
remote:     return checkargs()
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 373, in checkargs
remote:     return cmdfunc()
remote:   File "/var/lib/python-support/python2.5/mercurial/dispatch.py",
line 356, in <lambda>
remote:     d = lambda: func(ui, repo, *args, **cmdoptions)
remote:   File "/var/lib/python-support/python2.5/mercurial/commands.py",
line 2503, in serve
remote:     s.serve_forever()
remote:   File "/var/lib/python-support/python2.5/mercurial/sshserver.py",
line 40, in serve_forever
remote:     while self.serve_one(): pass
remote:   File "/var/lib/python-support/python2.5/mercurial/sshserver.py",
line 47, in serve_one
remote:     if impl: impl()
remote:   File "/var/lib/python-support/python2.5/mercurial/sshserver.py",
line 201, in do_unbundle
remote:     fp.close()
remote: UnboundLocalError: local variable 'fp' referenced before assignment
abort: unexpected response: empty string

----------
messages: 17071
nosy: paolini
priority: urgent
status: unread
title: crash in "hg push"

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2942>
____________________________________________________


More information about the Mercurial-devel mailing list