安装

服务器

创建一个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.