我如何将 Trac 连接到多个存储库?
我如何将 Trac 连接到多个存储库?
在这种情况下,我不想使用票务系统或 wiki,只需连接它即可浏览多个存储库。
我认为这就像每次您想查看新存储库时使用脚本更新其 conf.ini 文件中的存储库链接一样简单,对吗?
How would I hook Trac up to multiple repositories?
In this case I don't want to use the ticketing system or the wiki, simply connect it to browse multiple repos.
I would think it would be as easy as having a script update the repository link in its conf.ini file every time you wanted to look at a new repo, right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我停止使用 TRAC 的原因之一就是这个特殊问题。
One of the reasons I stopped using TRAC is this particular problem.
最好的选择是使用各种 trac 替代品之一,例如 Redmine 或 DrProject 或(如果我可以自己说的话)piano-man。
Your best bet would be to use one of the various trac alternatives such as Redmine or DrProject or (if I may pimp myself) piano-man.
如果您只想浏览存储库,您可能需要使用 WebSVN。
您可以设置 Trac,使其每个存储库都有一个 trac-wiki。 据我所知,每个存储库都有一个 trac-wiki,并且位于不同的 URL 下。
If you just want to browse the repositories, you may want to use WebSVN.
You can setup Trac so that it has one trac-wiki per repository. To my knowledge, it exactly is one trac-wiki per repository, though, and under a different URL.
我认为从 0.12 trac 开始,trac 将支持一个 trac 项目中的多个存储库:
http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin
I think from 0.12 trac will support multiple repositories in one trac project:
http://trac.edgewall.org/wiki/0.12/TracRepositoryAdmin
关于这样做的很多讨论,但目前Trac 不支持。
您需要创建多个 Trac 实例,每个存储库一个实例。 您不能只更改配置文件,因为 Trac 在其数据库中存储了有关存储库的大量信息,这样做会破坏它。
There's been much talk about doing this but currently it's unsupported by Trac.
You would need to make multiple instances of Trac, one for each repository. You can't just change the configuration file as Trac stores a bunch of information about the repository in its database and doing that would break it.