Project

General

Profile

How to view the root of a repository?

Added by Patrick van der Velde over 14 years ago

Hi All

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.

Thanks

Patrick


Replies (12)

RE: How to view the root of a repository? - Added by Felix Schäfer over 14 years ago

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?

RE: How to view the root of a repository? - Added by Patrick van der Velde over 14 years ago

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>.

RE: How to view the root of a repository? - Added by Felix Schäfer over 14 years ago

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.

RE: How to view the root of a repository? - Added by Patrick van der Velde over 14 years ago

The link I use in the wiki is:

source:build.ps1

build.ps1 is a file that lives in the root of my repository.
If I enter the following code:

source:modules\core\core.ps1

Then it correctly points to the core.ps1 file.

RE: How to view the root of a repository? - Added by Felix Schäfer over 14 years ago

Have you followed the guide correctly?

RE: How to view the root of a repository? - Added by Patrick van der Velde over 14 years ago

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.

RE: How to view the root of a repository? - Added by Felix Schäfer over 14 years ago

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.

RE: How to view the root of a repository? - Added by Patrick van der Velde over 14 years ago

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 :(

RE: How to view the root of a repository? - Added by Felix Schäfer over 14 years ago

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 :-)

RE: How to view the root of a repository? - Added by Felix Schäfer over 14 years ago

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?

RE: How to view the root of a repository? - Added by Patrick van der Velde over 14 years ago

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.

RE: How to view the root of a repository? - Added by Patrick van der Velde over 14 years ago

Upgrading to 0.9.6 has fixed the problem :) Thanks heaps for all your help.

    (1-12/12)