开发者

Browsing svn with trac browser

开发者 https://www.devze.com 2023-03-21 12:56 出处:网络
I had a repository and today I installed the Trac, I want to bro开发者_运维问答wse my repository through Trac, repository_dir is pointing to my repository folder, but I\'m still getting the following

I had a repository and today I installed the Trac, I want to bro开发者_运维问答wse my repository through Trac, repository_dir is pointing to my repository folder, but I'm still getting the following error:

Error: No such changeset

No changeset 313 in the repository

I'm using Ubuntu 10.04.


Is your repository on the same server where you installed Trac? If so, you can access the repository directly instead of going through http. For example, if your repository was created in /var/repos/trac, adding the following into your trac.ini should work:

[trac]
repository_dir = /var/repos/trac

If your repository is on a different server, I highly recommend either installing Trac on the repository's server or creating a mirror repository on the Trac server. Besides making the Trac configuration easier, it results in a much faster Trac server by avoiding the need to fetch repository information over the network. Create the mirror repository but don't start any kind of Subversion server; Trac can still access it directly via the filesystem, and you don't have to worry about anyone but Trac accessing it. You can set up a simple script that runs svnsync synchronize at regular intervals (mine is set to 5 minutes) to keep your mirror up to date.


On another note, using repository_dir in trac.ini is no longer the preferred way to set up a repository. It's usually easier to use the "Repositories" panel of Trac's admin panel (see the official documentation for more details). If you go that route, make sure to delete the existing repository_dir entry from your trac.ini first.


It's an URL problem. By the look of error I guess that you are trying to view commit #313 which doesn't exist in the repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号