[issue994] unknown exception: hg push to static-http / python SimpleHTTPServer

Mika Eloranta mercurial-bugs at selenic.com
Sat Feb 16 15:44:43 CST 2008

New submission from Mika Eloranta <mika.eloranta at gmail.com>:

Steps to repro:
1. hg init test1
2. make a change in repo test1 and commit it
3. cd test1; python -m SimpleHTTPServer (leave it running)
4. hg clone http://localhost:8000/ test2
5. make a change in repo test2 and commit it
6. cd test2; hg push

I know the push operation should not work in this case, but the following is
probably not the right behavior:

pushing to static-http://localhost:8000/
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version f2335246e5c7+20080205)
Traceback (most recent call last):
  File "hg", line 20, in ?
  File "mercurial\dispatch.pyc", line 20, in run
  File "mercurial\dispatch.pyc", line 29, in dispatch
  File "mercurial\dispatch.pyc", line 45, in _runcatch
  File "mercurial\dispatch.pyc", line 360, in _dispatch
  File "mercurial\dispatch.pyc", line 376, in _runcommand
  File "mercurial\dispatch.pyc", line 424, in profiled
  File "mercurial\dispatch.pyc", line 369, in checkargs
  File "mercurial\dispatch.pyc", line 352, in <lambda>
  File "mercurial\commands.pyc", line 2025, in push
  File "mercurial\localrepo.pyc", line 1441, in push
  File "mercurial\localrepo.pyc", line 1500, in push_addchangegroup
  File "mercurial\localrepo.pyc", line 615, in lock
  File "mercurial\localrepo.pyc", line 102, in __getattr__
AttributeError: _lockref

messages: 5312
nosy: mel
priority: bug
status: unread
title: unknown exception: hg push to static-http / python SimpleHTTPServer

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

More information about the Mercurial-devel mailing list