Cache problem: "TypeError: previous_rev() takes exactly 2 arguments (3 given)"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trac-Git |
Fix Released
|
Unknown
|
|||
trac-git (Debian) |
Fix Released
|
Unknown
|
|||
trac-git (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: trac-git
I'm running trac and trac-git, with cached_repository = true. When I try to view a revision, I get the following error (summarized):
While doing a GET operation on `/changeset/
Traceback (most recent call last):
File "/usr/lib/
dispatcher.
File "/usr/lib/
resp = chosen_
File "/usr/lib/
self.
File "/usr/lib/
prev_rev = repos.previous_
File "/usr/lib/
return self.repos.
TypeError: previous_rev() takes exactly 2 arguments (3 given)
I'm running trac 0.11-2 and trac-git 0.0.20080710-1 on Ubuntu Intrepid.
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: trac-git 0.0.20080710-1
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=en_US.UTF-8
SourcePackage: trac-git
Uname: Linux 2.6.27-11-generic i686
Changed in trac-git: | |
status: | Unknown → Fix Released |
Changed in trac-git (Debian): | |
status: | Unknown → Fix Released |
The attached patch allows cached repositories to work, if applied against the version in Intrepid. (Nothing in the Debian changelog for the version in Jaunty suggests the problem is fixed there, and the upstream version is the same.)
I've been unable to make it into a debdiff, and I've run out of patience for struggling against quilt, so here's a bare patch against 0.11/tracext/ git/git_ fs.py. With only this change made, I have "cached_repository = true" working on my local Trac instance. (Note that I had to restart Apache to get the installation of the new version to take effect; apparently mod_python does some sort of caching. If it seems to fail, that's probably why.)
Original source for the patch is here: http:// trac-hacks. org/attachment/ ticket/ 3008/gitplugin- prevrev. patch