版本3和4间的区别
于2009-12-15 22:12:15修订的的版本3
大小: 809
编辑: czk
备注:
于2009-12-16 21:09:53修订的的版本4
大小: 1219
编辑: czk
备注:
删除的内容标记成这样。 加入的内容标记成这样。
行号 4: 行号 4:

== 服务器 ==
创建一个hgweb.conf
{{{
[paths]
/ = /path/to/repos/*

[web]
style = gitweb
allow_push = *
allow_archive = gz zip bz2
contact = Zhongke Chen
description = description for all repos
}}}
在每个repo目录下创建repo/.hg/hgrc文件:
{{{
[web]
description = description for this repo
}}}

启动内建服务器
{{{
hg serve -d --webdir-conf path/to/hgweb.conf
}}}

安装

服务器

创建一个hgweb.conf

[paths]
/ = /path/to/repos/*

[web]
style = gitweb
allow_push = *
allow_archive = gz zip bz2
contact = Zhongke Chen 
description = description for all repos

在每个repo目录下创建repo/.hg/hgrc文件:

[web]
description = description for this repo

启动内建服务器

hg serve -d --webdir-conf path/to/hgweb.conf

参考资料

ch3n2k.com | Copyright (c) 2004-2020 czk.