2011-08-27 94 views
1

我想使用bugzilla擴展來跟蹤我的bug中的提交。如何在3.6+ bugzilla中使用mercurial的bugzilla擴展?

我按照那裏的指示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 = [email protected] # fallback bugzilla user name to record comments with 

我犯這個樣子的:

useful commit informations 
bug: 123 

但是,這並不做任何事情。

所以我的問題是:

  • 是Bugzilla的3.6.3擴展兼容(我使用的水銀1.7.5)?
  • 是我的配置好嗎?
  • 是否有mercurial產生的任何日誌查找錯誤?

感謝

回答

1

您可以嘗試使用XML-RPC接口。從鉤子腳本本身就是一個例子配置文件是:

[bugzilla] 
bzurl=http://my-project.org/bugzilla 
[email protected] 
password=plugh 
version=xmlrpc 
template=Changeset {node|short} in {root|basename}. 
     {hgweb}/{webroot}/rev/{node|short}\n 
     {desc}\n 
strip=5 

[web] 
baseurl=http://my-project.org/hg 

報告還指出

如果你的Bugzilla的是3.2版本或以上,你是強烈 推薦使用XMLRPC訪問方法。

所以這可能會讓你前進一點點。