traceback on branches
Alexis S. L. Carvalho
alexis at cecm.usp.br
Mon May 7 14:29:39 UTC 2007
Thus spake TK Soh:
> On 5/7/07, TK Soh <teekaysoh at gmail.com> wrote:
> > On 5/7/07, TK Soh <teekaysoh at gmail.com> wrote:
> > > I am getting a traceback when browsing a co-worker's repo. It seemed
> > > to me that Hg is trying to create a cache in the repo. What's going
> > > on?
> >
> > I urgently need a workaround on this. It pretty much shut down my web
> > server on Merucurial hosting. I've tried 0.9.3 and crew tip.
Try the patch below. It's a bit heavy-handed, but should be safe.
> Apparently the issue only affects gitweb which reads branch info.
> Currently, I have switched back to Hg original style (argh!!) as a
> temp workaround.
Come on, it's not that bad :) - but that'll probably work only until
somebody tries to access some changeset page.
Alexis
diff -r ac954121fdce mercurial/localrepo.py
--- a/mercurial/localrepo.py Mon May 07 11:23:07 2007 -0300
+++ b/mercurial/localrepo.py Mon May 07 11:28:18 2007 -0300
@@ -422,7 +422,7 @@ class localrepository(repo.repository):
for label, node in branches.iteritems():
f.write("%s %s\n" % (hex(node), label))
f.rename()
- except IOError:
+ except:
pass
def _updatebranchcache(self, partial, start, end):
More information about the Mercurial
mailing list