问题标签 [hgweb]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
978 浏览

mercurial - mercurial 的 hgwebdir.cgi 中的图形更改日志

我有一组通过 hgwebdir.cgi 在线提供的 mercurial 存储库。我希望能够以与该站点相同的方式显示分支和合并的图形表示。我似乎找不到任何关于如何做到这一点的参考。该功能是否仅存在于 hgweb 而不是 hgwebdir 中?

0 投票
2 回答
281 浏览

iis-6 - IIS6+Win Server 2003 上的 Mercurial - 路径问题

我正在尝试按照本博客上的教程让 Mercurial 在 Windows Server 2003 上使用 IIS6

我的设置是

c:\inetpub\HG_web_interface\

并且包含存储库的文件夹位于

d:\HG_repo\

我的 hgweb.config 看起来像这样

我尝试了几乎所有正向/反向斜杠的组合,没有斜杠等等,我让它工作的唯一方法是将我的存储库放在 c: 驱动器中,然后只需将这个 n hgweb.config

知道出了什么问题吗?

ps:会不会是一些奇怪的权限问题?如果是这样,我该如何解决它?

0 投票
1 回答
3410 浏览

version-control - Mercurial - 如何填充 hgwebdir.cgi 的存储库描述?

目前,如果我在其中指定描述,hgwebdir.config每个存储库都会显示相同的描述。我想为每个存储库设置一个唯一的名称。我在哪里以及如何设置它?

hgwebdir.config目前的样子是这样的:

0 投票
1 回答
1057 浏览

mercurial - 使用 'gitweb' 样式显示所有分支。我可以只显示所需数量的分支吗?

在页面上对 hgweb 使用“gitweb”样式时,我可以看到大量的分支,例如,如果我有 1000 个分支 - 全部显示。

我尝试设置:

[默认] 分支 = -a

在全局 hgrc 文件中,但它不会影响 Web 视图。我的猜测是它与“gitweb”样式模板的文件有关。

有什么简单的方法可以限制 Web 视图中显示的分支数量吗?

水银 1.0.1-5.1~bpo40+1

0 投票
1 回答
207 浏览

apache - Redirecting old changesets to other repositories

We have a hook in Mercurial that posts the changeset message and a link the changeset to our bug tracking software. We are using separate repos for each branch. When we are done with a branch we would like to push it to an archive repository and delete the original repo so that the Mercurial page of repositories doesn't get cluttered with old repositories. We would also like to reclaim the space that the old repositories take up. I would like to configure Apache so that it redirects to an existing changeset if the changeset cannot be found.

For example, if it can't find http://hg/hg/repo1/rev/c36b1c72fc6e, it would try the following in order:

until it finds an existing changeset.

I think I should be able to use mod_rewrite rules to do this but it didn't work. This is my latest attempt:

Here are is the log of an an attempt using the above configuration:

It looks like it modifies the URL properly but it doesn't properly redirect and I don't know why. Any ideas?

I am using hgwebdir to serve my Mercurial repos on Apache.

0 投票
4 回答
4440 浏览

iis - Windows 上的 Mercurial 服务器使用 ActiveDirectory 进行身份验证

我在 WinXP over IIS 上运行 Mercurial 的 hgwebdir.cgi 作为与我的团队共享代码的中央存储库。在通过 TortoiseHg 和/或命令行 hg 客户端推送/拉取时,我想使用 ActiveDirectory 对服务器进行身份验证。有没有人这样做或看过有关如何执行此操作的说明?

0 投票
3 回答
999 浏览

templates - 如何在 hgweb 中嵌入 hgactivity 图

我想在我的 hgweb 网络界面中嵌入由hgactivity创建的活动图。这样做的最佳方法是什么?

这是 hgactivity 图的屏幕截图: 替代文字
它显示了一段时间内对 Mercurial 存储库的提交次数。

0 投票
1 回答
390 浏览

mercurial - 已发布的 mercurial repos - 链接返回 404

我可以在 Tomcat 上使用 hgwebdir.cgi 发布存储库列表。但是,已发布存储库上的链接都不起作用。baseurl 应该设置为什么?我将它设置为http://host:port/folder,其中 cgi-bin 就在文件夹下方。url 格式不正确(其中没有 hgwebdir.cgi),我没有 url 重写设置。是否需要一些 Tomcat 配置才能使 url 正常工作?

0 投票
2 回答
1005 浏览

apache - 在 Windows XP 上使用 Apache 运行 Mercurial

我一直在努力让 Mercurial 在 Windows XP 上与 Apache 一起工作。

我已阅读并尝试了以下 SO 线程中的建议:1234

到目前为止,我所能做的只是一个空白页,当我查看源代码时,我可以看到:

我正在使用的内容:

  • 阿帕奇 2.2 --C:\Program Files\Apache Software Foundation\Apache2.2\
  • Python 2.4(由 Mercurial 网站推荐)——C:\Program Files\Python\2.4\
  • 水银 1.6 --C:\Program Files\Mercurial\
  • mod_python3.3.1
  • Apache DocumentRoot:C:\htdocs\hg\通过http://hg.paperclip.dev(添加到主机文件)访问
  • Hg 存储库(在网络驱动器上):H:\repo\

我觉得部分复杂性是我的存储库位于网络驱动器上。我可以通过网络驱动器号 H 或通过\\SERVER\WebDev\repo\

mercurial.ini在Mercurial安装目录中如下:

hgweb.config在 apache 提供的 Hg DocumentRoot ( C:\htdocs\hg\)

我在 apache ( )hgweb.cgi提供的 Hg DocumentRoot 中C:\htdocs\hg\

我的 Apache 的 VirtualHosts 文件

考虑到上述配置,我欢迎提出一些建议以使其正常工作。任何我可以尝试的东西,因为我已经完全走到了死胡同。

提前谢谢了。

-P。

0 投票
4 回答
2007 浏览

performance - 为什么我的 hgweb 服务器这么慢?

我正在使用 hgweb 提供对许多 mercurial 存储库的访问,并将它们作为一个集合提供:

这在 localhost/projects 为他们提供服务

我在那个位置有大约 30 个存储库,在一个源代码树中,还有相当数量的其他非 Mercurial 管理的项目。

hgweb 的响应速度真的很慢;http://localhost/提供一个列表大约需要 30 秒,打开一个项目大约需要 30 秒,这使得将其用于共享目的很痛苦。

我该如何调整它以使其更快?

我在 OSX 上运行,如果它有所作为。