Mercurial& Windows Server 2003 [英] Mercurial & Windows Server 2003

查看:147
本文介绍了Mercurial& Windows Server 2003的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在我们的主网络服务器上设置Mercurial,通过hgwebdir.cgi托管存储库。我现在遇到的问题是当我从本地机器运行hg push到服务器的存储库时,只需一个变更集就需要一个非常小的时间来推送一个非常小的目录。我有可能设置错误吗?我一直收到HTTP错误502:错误网关。

I just set up Mercurial on our main webserver, hosting repositories via hgwebdir.cgi. The problem I'm having now is when I run hg push from my local machine to the server's repository, it takes an absolutely ridiculous amount of time to push a very small directory, with only a single changeset. Is it possible that I've set something up wrong? I keep getting HTTP Error 502: Bad Gateway.

谢谢!

推荐答案

看起来有点像 issue 2716 ,其中暗示:

Looks a bit like issue 2716 which suggests:

这是针对您遇到的问题的一种解决方法,基本上不是做一次大的推动,而是将b $ b分解为许多小推送:

Here's a workaround for the problem you are having, basically instead of doing one huge push, you break it down into many smaller pushes:


  • 1 /找出存储库的修订版数量,

  • 2 / c& p以下脚本,(在bash中,如果你不喜欢bash,请使用你最喜欢的脚本语言):


    #!/bin/bash

    for rev in {1..NUM_OF_REVS}
    do
      hg push -r $rev REPO_URL
    done




  • 3 /抓住自己的零食。

  • 4 /如果某些推送失败,请不要担心,以下推送将会解决问题。

  • 话虽如此,有关 Windows IIS <的问题/ a>也有报道。

    That being said, issues on Windows IIS has been reported as well.

    这个博客发表评论还有详细信息:



    • 我得到了同样的错误Bad Gateway并解决了它。想一想:
      1.在服务器上安装Mercurial 1.2.1。 TortoiseHg附带的版本是不够的,它不会驱动CGI应用程序。

    • I got the same error "Bad Gateway" and solved it. Think it's about: 1.Install Mercurial 1.2.1 on the server. The version that comes with TortoiseHg is not sufficient, it will not drive the CGI application.

    尝试运行hgwebdir时出现Bad Gateway异常。来自Web应用程序的cgi,该应用程序存在于与我的主系统驱动器不同的驱动器上。

    I get a "Bad Gateway" exception when trying to run hgwebdir.cgi from a web application which exists on a different drive to my main system drive.

    如果您使用的是Mercurial 1.5,请确保您使用的是Python 2.6版.4在IIS中运行cgi脚本。

    If you're using Mercurial 1.5 make sure you are using Python version 2.6.4 to run the cgi scripts in IIS.

    这篇关于Mercurial&amp; Windows Server 2003的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆