我正在安装scmbug来集成bugzilla和windows上的svn。在和小飞虫打了一整天之后。好像我是为了离开地面才来的。
我输入提交注释为
虫3
bug3
试验试验试验
bla bla bla
但它给我的错误如下所示
Scmbug错误3:在日志消息'bug 3‘中没有找到与log_bugid_regex’^\s* bug \s*(\d\x\s,|#*?):‘和log_bugid_split_regex ',\s?#|\s?#|,|\s+’匹配的bug in列表。
通过对语法的改进,我找到了conf文件。
因此,期望帮助理解以下正则表达式及其有效输入。
log_template => {
# The log_bugid_regex is a regular expression that must
# set the unnamed variable $1 to the bug number, or list
# of bug numbers. It is checked for a match as: m/$regex/s
log_bugid_regex => '^\s*bug\s*([\d|\s|,|#]*?):',
# The log_bugid_split_regex is a regular expression
# describing how a list of bug ids will be split in
# individual bug numbers. It is split as: /$regex/
log_bugid_split_regex => ',\s?#|\s?#|,|\s+',
# The log_body_regex is a regular expression that must set
# the unnamed variable $1 to the log comment. It is
# checked for a match as: m/$regex/s
log_body_regex => '^\s*bug.*?:\s*(.*)'
},任何帮助都将不胜感激。
谢谢
发布于 2012-11-15 11:29:39
^\s*bug\s*([\d|\s|,|#]*?):在regex末尾有一个冒号;提交消息没有冒号。因此,它不匹配。
regexes用于匹配条目,如:
bug #2,#666: Corrected the number of the beast#是可选的。
https://stackoverflow.com/questions/13396551
复制相似问题