#!/usr/bin/env python
# # An example hgweb CGI script, edit as necessary
# See also http://mercurial.selenic.com/wiki/PublishingRepositories
# Path to repo or hgweb config to serve (see 'hg help hgweb')
config = "/mercurial/hgweb.config"
# Uncomment and adjust if Mercurial is not installed system-wide
# (consult "installed modules" path from 'hg debuginstall'):
#import sys; sys.path.insert(0, "/path/to/python/lib")
# Uncomment to send python tracebacks to the browser if an error occurs:
# import cgitb;
cgitb.enable()
from mercurial import demandimport;
demandimport.enable()
from mercurial.hgweb import hgweb, wsgicgi
application = hgweb(config) wsgicgi.launch(application)
我遇到的唯一区别是cd / etc / apache2 / sites-available sudo nano default。我没有默认但000default,但我添加了默认值。我正在使用ubuntu14
有人可以帮忙吗?我是ubuntu和mercurial的新手。
登录链接ipaddress / mercurial应该向我显示我可以访问的当前存储库,我可以在哪里推送和提取数据,但我只看到上面的内容。