Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我设置了 Trac 1.0,添加了条目tracopt.versioncontrol.git.* = enabled并[components]使用管理面板添加了我的存储库。虽然分支出现在时间线中,但源浏览器不提供浏览不同分支、标签或修订的方法,例如此处(该站点使用 Trac 0.12 和GitPlugin,已包含在 1.0 中)。是否有我错过的设置或 1.0 git 集成缺少此功能?手动输入时,该?rev=...参数将被忽略。
tracopt.versioncontrol.git.* = enabled
[components]
?rev=...
它应该可以工作,但与 GitPlugin 略有不同。他们现在允许在顶层存储各种类型的存储库。因此,您需要单击顶级 repo 名称,然后您会看到“访问”下拉框出现在页面顶部附近。这将允许您选择特定的分支或标签。
您可以在 Trac 自己的存储库中看到这一点。浏览器也将您带到顶级,并显示一系列存储库。现在单击一个。例如,cboos.git。您应该会看到“访问”下拉菜单并能够选择一个分支。
cboos.git