From c6dca1d09daece8397ad1447b487c278f5346852 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Wed, 22 May 2013 19:59:06 +0200 Subject: [PATCH] debian_build: add some explanation for RE to collect triggers --- debian_build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian_build.py b/debian_build.py index d2e9bb4..a290904 100755 --- a/debian_build.py +++ b/debian_build.py @@ -139,7 +139,9 @@ if __name__ == '__main__': reports_file = os.path.join(ENV['WORKSPACE'], '../build-area/result/reports.tgz',) gitrepo = git.Repo('.') curr_commit = gitrepo.commit(ENV['GIT_COMMIT']) - # collect all 'trigger' expressions found in the commit message + # collect all 'trigger' expressions found in the commit message, i.e. + # <<< "[merge][no-test][provisioning] my commit message" + # >>> ['merge','no-test','provisioning'] commit_triggers = re.findall('\[([^\]]+)\]', curr_commit.message) # id attribute used in python-git 0.3.2~RC1-1 found in wheezy if hasattr(curr_commit, 'hexsha'): -- 2.39.5