我正在使用这些指示在Windows 7下设置Mercurial --我已经测试了一个空的存储库,并得到了以下错误
C:\inetpub\wwwroot\hg\hgweb.cgi in ()
15
16 from mercurial import demandimport; demandimport.enable()
17 from mercurial.hgweb import hgweb, wsgicgi
18 application = hgweb('c:\inetpub\wwwroot\hg\hgweb.config')
=> 19 wsgicgi.launch(application)
wsgicgi = <module 'mercurial.hgweb.wsgicgi' from 'c:\inetpub\wwwroot\hg\mercurial\hgweb\wsgicgi.pyc'>, wsgicgi.launch = <function launch>, application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>
C:\inetpub\wwwroot\mercurial\hgweb\wsgicgi.pyc in launch(application=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>)
C:\inetpub\wwwroot\mercurial\hgweb\hgwebdir_mod.pyc in __call__(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, env={'ALLUSERSPROFILE': r'C:\ProgramData', 'APPDATA': r'C:\Windows\system32\config\systemprofile\AppData\Roaming', 'APP_POOL_ID': 'DefaultAppPool', 'AUTH_PASSWORD': '', 'AUTH_TYPE': '', 'AUTH_USER': '', 'CERT_COOKIE': '', 'CERT_FLAGS': '', 'CERT_ISSUER': '', 'CERT_SERIALNUMBER': '', ...}, respond=<function start_response>)
C:\inetpub\wwwroot\mercurial\hgweb\hgwebdir_mod.pyc in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>)
C:\inetpub\wwwroot\mercurial\hgweb\hgwebdir_mod.pyc in templater(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>)
C:\inetpub\wwwroot\mercurial\templater.pyc in stylemap(styles=(None, None, 'paper'), paths=[])
<type 'exceptions.RuntimeError'>: No hgweb templates found in []
args = ('No hgweb templates found in []',)
message = 'No hgweb templates found in []'. 我已经将模板文件夹从C:\Program (X86)\Mercurial\Template复制到C:\inetpub\wwwroot\hg\Template。一些说明引用了“模板”文件夹,所以我尝试将模板重命名为模板,没有任何区别。
是否有其他地方我应该放置模板文件夹,或者有什么地方我应该指定模板路径?
发布于 2014-11-20 12:53:29
可以在hgweb.config文件中指定模板文件夹的路径。
[web]
templates = c:\inetpub\wwwroot\hg\Templateshttps://stackoverflow.com/questions/27038979
复制相似问题