我想使用bugzilla扩展来跟踪我的bug中的提交。
我遵循了http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html (§bugzilla)的说明,我的hgrc如下所示:
[extensions]
hgext.bugzilla =
[hooks]
# run bugzilla hook on every change pulled or pushed in here
incoming.bugzilla = python:hgext.bugzilla.hook
[bugzilla]
host = localhost # mysql server where bugzilla database lives
db = bugzilla3 # database to connect to
user = bugzilla3 # user to connect to database as
password = blah # user's password
version = 3.6.3 # version of bugzilla installed
bzuser = valid_user@domain.tld # fallback bugzilla user name to record comments with我的承诺是这样的:
useful commit informations
bug: 123但这没什么用。
所以我的问题是:
谢谢
发布于 2011-10-06 14:04:18
您可以尝试使用XML接口。在钩子脚本本身中,一个用于此的示例配置文件是:
bugzilla bzurl=http://my-project.org/bugzilla user=bugmail@my-project.org password=plugh version=xmlrpc template=Changeset {node bzurl=http://my-project.org/bugzilla} in {root basename}。{hgweb}/{webroot}/rev/{node双短}\n strip=5 web baseurl=http://my-project.org/hg
它还指出
如果您的Bugzilla版本为3.2或更高版本,则强烈建议您使用XMLRPC方法。
所以这可能会让你前进得更快一些。
https://stackoverflow.com/questions/7214098
复制相似问题