[issue1324] bad abort in localrepo.py busts hgwebdir.cgi clone
Reuben Pasquini
mercurial-bugs at selenic.com
Fri Oct 3 18:35:52 CDT 2008
New submission from Reuben Pasquini <catdogboy at yahoo.com>:
mercurial/localrepo.py
appears to have an unnecessary abort that
prevents a clone of an hgwebdir.cgi exported
repository where that repository has an
hg remove --after somefile.x
under some circumstances.
In my case an 'hg clone' against a repo failed
with the following trace in the Apache logs.
The file cited in the abort (Debug/App.g.cs) had
been 'hg remove --after' at some point.
Simply remove the abort fixed the problem in my case -
although I'm not sure whether the abort was there
for some reason or if it's just a bug.
You can clone the repository in question from:
http://repo.lib.auburn.edu/cgi-bin/hgwebdir.cgi/AuLibraryCsharp
Let me know if you need more information.
Thanks!
Reuben
diff /tmp/localrepo.py*
1958,1959c1958,1959
< if filerevlog.count() == 0:
< raise util.Abort(_("empty or missing revlog for %s") %
fname)
---
> #if filerevlog.count() == 0:
> # raise util.Abort(_("empty or missing revlog for %s") %
fname)
--------------------
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] Traceback (most
recent call last):
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/usr/local/apache2/cgi-bin/hgwebdir.cgi", line 47, in <module>
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65]
wsgicgi.launch(application)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/hgweb/wsgicgi.py", line 65, in
launch
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65]
application(environ, start_response)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/hgweb/hgwebdir_mod.py", line 74, in
__call__
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65]
self.run_wsgi(req)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/hgweb/hgwebdir_mod.py", line 121,
in run_wsgi
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65]
hgweb(repo).run_wsgi(req)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/hgweb/hgweb_mod.py", line 221, in
run_wsgi
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] method(self, req)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/hgweb/protocol.py", line 74, in
changegroup
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] chunk =
f.read(4096)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/util.py", line 1491, in read
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] for chunk in
self.iter:
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] File
"/opt/csw/lib/python/site-packages/mercurial/localrepo.py", line 1939, in
gengroup
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] raise
util.Abort(_("empty or missing revlog for %s") % fname)
[Fri Oct 03 18:00:49 2008] [error] [client 131.204.172.65] mercurial.util.Abort:
empty or missing revlog for NaxosCleaner/NaxosCleaner/obj/Debug/App.g.cs
-------------------------
$ hg log NaxosCleaner/NaxosCleaner/obj/Debug/App.g.cs
changeset: 36:5ce8e3fe29a9
tag: tip
user: Reuben Pasquini <catdogboy at yahoo.com>
date: Mon Sep 29 17:09:40 2008 -0500
summary: Get rid of obj/ files
changeset: 10:07ab47a21fe6
user: catdogboy at yahoo.com
date: Wed Feb 06 12:39:39 2008 -0600
summary: *. Add ToMarcXml methods to IAuMarcRecord to support output to
-----------------------
----------
messages: 7304
nosy: catdogboy
priority: bug
status: unread
title: bad abort in localrepo.py busts hgwebdir.cgi clone
topic: hgweb
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1324>
____________________________________________________
More information about the Mercurial-devel
mailing list