Multiple shared repositories confuses trac-bzr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trac-Bzr |
Fix Released
|
Low
|
Unassigned |
Bug Description
Our trac-bzr install points to a plain directory which contains several shared repositories.
In each of these shared repositories are a number of related branches.
We have been encountering a problem whereby a link to a file in the browser does not work. The error we get is like this:
No node path_to_directory at revision branch_nick,66
Knowing that the file in question *does* exist in the branch, I removed directory levels from the end of the URL given, and got the same error until reaching the branch directory itself. At that point, the error changed to this:
NoSuchRevision: KnitPackReposit
With this traceback:
2008-09-04 14:36:29,248 Trac[main] ERROR: KnitPackReposit
Traceback (most recent call last):
File "/usr/lib/
dispatcher.
File "/usr/lib/
resp = chosen_
File "/usr/lib/
node = get_existing_
File "/usr/lib/
return repos.get_
File "build/
return klass(self, branch, tree, entry, path)
File "build/
ancestry = self.repo.
File "<string>", line 4, in get_ancestry_
File "/usr/lib/
raise errors.
NoSuchRevision: KnitPackReposit
I've done a little digging, and found that the revision specified by the error is indeed not in the shared repository in question, but is in fact in one of the other ones that our trac-bzr install is serving.
It seems that the revision is being cached somewhere and used in the wrong context.
Changed in trac-bzr: | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
+1 to this.
I have a similar setup, two different branches exposed under a plain directory. I tried to temporarily solve the issue by bumping the revision, which did work at first. I was able to temporarily view the revisions of the branch, until a time came when the error shows up.
A branch though is still accessible by clicking the link under "Rev" column (e.g. "http:// host/project/ browser/ branchA? rev=branchA, 1234") , which gives you direct access to the exact revision number. On the other hand, the direct link to the branch via the browser view column "Name" raises the said error (e.g. "http:// host/project/ browser/ branchA")