0

Windowsでbugzillaをsvnと統合するためにscmbugをインストールしています。一日後、scmbugと戦います。私は地面から降りるためにそれを作ったようです。

コミットコメントを次のように入力しました


バグ3

バグ3

テストテストテスト

かくかくしかじか


しかし、それは私に以下のようなエラーを与えます

Scmbugエラー3:log_bugid_regex'^ \ s * bug \ s *([\ d | \ s |、|#] *?):'およびlog_bugid_split_regex'、\ s?#|に一致するバグIDのリストが見つかりませんでしたログメッセージの\s?#|、| \ s+'バグ3

構文をgrepすると、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*(.*)'

    },

どんな助けでもいただければ幸いです。

ありがとう

4

1 に答える 1

2
^\s*bug\s*([\d|\s|,|#]*?):

正規表現の最後にコロンがあります。コミットメッセージにはそれがありません。したがって、一致しません。

正規表現は、次のようなエントリに一致することを目的としています。

bug #2,#666: Corrected the number of the beast

#オプションです。

于 2012-11-15T11:29:39.177 に答える