traceback on branches

TK Soh teekaysoh at gmail.com
Mon May 7 13:39:42 UTC 2007


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?

Traceback (most recent call last):
  File "/user/b10971/public_html/cgi-bin/hgwebdir.cgi", line 31, in ?
    h.run()
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/hgwebdir_mod.py",
line 63, in run
    wsgicgi.launch(wsgiapplication(make_web_app))
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/wsgicgi.py",
line 63, in launch
    result = application(environ, start_response)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/request.py",
line 17, in __call__
    return _wsgirequest(self.destmaker(), wsgienv, start_response)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/request.py",
line 35, in __init__
    destination.run_wsgi(self)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/hgwebdir_mod.py",
line 202, in run_wsgi
    hgweb(repo).run_wsgi(req)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/hgweb_mod.py",
line 809, in run_wsgi
    method(req)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/hgweb_mod.py",
line 908, in do_summary
    req.write(self.summary())
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/request.py",
line 49, in write
    self.write(part)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/request.py",
line 48, in write
    for part in thing:
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/templater.py",
line 117, in __call__
    for i in v:
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/hgweb/hgweb_mod.py",
line 537, in branches
    b = self.repo.branchtags()
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/localrepo.py",
line 386, in branchtags
    partial = self._branchtags()
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/localrepo.py",
line 377, in _branchtags
    self._writebranchcache(partial, self.changelog.tip(), tiprev)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/localrepo.py",
line 420, in _writebranchcache
    f = self.opener("branch.cache", "w", atomictemp=True)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/util.py",
line 1218, in o
    return atomictempfile(f, mode)
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/util.py",
line 1169, in __init__
    self.temp = mktempcopy(name, emptyok=('w' in mode))
  File "/usr/local/ActivePython-2.4/lib/python2.4/site-packages/mercurial/util.py",
line 1131, in mktempcopy
    fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, dir=d)
  File "/usr/local/ActivePython-2.4/lib/python2.4/tempfile.py", line
302, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/local/ActivePython-2.4/lib/python2.4/tempfile.py", line
236, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied:
'/user/b10971/mercurial/hgtest.1/.hg/.branch.cache-GEahKK'



More information about the Mercurial-devel mailing list