How to view the root of a repository?
I'm trying to create a link in my wiki to a file that is in the root of my repository but I'm getting the following error message:
The entry or revision was not found in the repository.
To make sure I got the correct syntax I tried a file deeper in the repository and that works fine. Then I tried to simply browse to the file but as far as I can tell there is no way to view a file that is in the root of the repository. When you click the repository tab you get the log messages and the last set of revisions but no way to actually browse through the repository from the root.
So does anybody have any idea how to view the root of the repository? And how to link to files in the root from the wiki?
Oh and I'm on Redmine 0.9.3 with MySQL. My repository is handled by bzr 2.1.
Can you please tell us what link you use and what link is generated? It seems you rather have a problem with your repo configuration, do you have a listing of your repo as well as the last 10 commit messages when you click on the repository tab?
Under the repository tab there is only a listing of the last 10 commit messages but no listing of the repo.
I'm not sure what you mean with 'the link that I use' but I assume that you mean the way I'm pointing at my repository. If that is the case, the repository is on my harddrive so in the settings I've pointed the root directory at: d:\repository\<PROJECTNAME>.
I don't use bzr, so I can't say what the correct configuration is. I was referring to the link you are trying to put in your wiki.
The link I use in the wiki is:
build.ps1 is a file that lives in the root of my repository.
If I enter the following code:
Then it correctly points to the core.ps1 file.
Have you followed the guide correctly?
Yes with the exception that I don't have a pythonpath because I've used the bzr windows installer which doesn't require a separate python install. I was assuming that my bzr settings were correct given that I'm getting the last 10 log messages in the repositories tab.
Well, the installer says to point it to
/home/username/bzr/repo/trunk, which I'd assume to be some subpath of a repo, that would also explain why you need to give a deeper path that you'd expect. See if you can skim through the bzr adapater source:/trunk/lib/redmine/scm/adapters/bazaar_adapter.rb and find some clues as to what redmine expects.
Unfortunately the bzr repository starts at the path I gave it. Unlike with subversion there is not necessarily a trunk/branches or other directories above it. I did read through the bzr adapter but I couldn't quite figure out what it was doing. I suspect that either a) I've setup the bzr integration for my system incorrectly or b) there is a bug in the bzr adapter. Unfortunately without some further assistance I'm not sure how to find out whic one it is :(
Patrick van der Velde wrote:
Unlike with subversion there is not necessarily a trunk/branches or other directories above it.
There's no need for tags/trunk/branches directories in svn either, it's just good practice :-)
Oh, and I forgot, could you look through the bug tracker if there already is a bug report for that and file one if not?
I just had a look and it might be issue #5002. I'll upgrade to the latest version of redmine and see what happens. If that doesn't work then I'll file a bug.
Upgrading to 0.9.6 has fixed the problem :) Thanks heaps for all your help.