如何在 hgweb 中显示没有路径“前缀”的存储库
我最近在我的服务器上设置了 Hg,我的 hgweb.config 包含以下内容:
[paths]
repo = C:\HgRepositories\*
在 Web 浏览器中,它显示该目录中的所有存储库,每个存储库都有一个以“repo”为前缀的名称。例如 repo/MyProject
我不想要这样。有没有办法让所有存储库纯粹通过其实际名称访问?例如,在这种情况下,它只是 MyProject
I have reccently setup Hg on my server and my hgweb.config contains this:
[paths]
repo = C:\HgRepositories\*
In the web browser, where it shows all the repos in that directory, each one has a name that is prefixed with "repo". For example repo/MyProject
I don't want that. Is there a way just have have all the repos accessible purely via their actual name? E.g. in this case it would be just MyProject
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用替代的
[collections]
语法,其执行方式如下:其中右侧值中的所有内容都用作存储库,并从 URL 中减去左侧值。由于 c:\ ,左侧的值可能需要一些修剪/调整才能使其成为有效键 - 我没有可以测试它的 Windows 框。
Using the alternate
[collections]
syntax that would be done as:Where everything within the rightside value is used as a repository, and has the left side subtracted from the URL. That value on the left side might need some trimming/tweaking to make it a valid key due to the c:\ -- I don't have windows box on which to test that.