[Codestriker-commits] CVS update: codestriker/bin commit-email-codestriker.pl
Brought to you by:
sits
|
From: <si...@us...> - 2008-08-22 01:41:32
|
User: sits
Date: 08/08/21 18:41:32
Modified: bin commit-email-codestriker.pl
Log:
Update so that the initial state of the topic can be set. Setting it to "Committed" seems to be a reasonable use case.
Index: commit-email-codestriker.pl
===================================================================
RCS file: /cvsroot/codestriker/codestriker/bin/commit-email-codestriker.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- commit-email-codestriker.pl 11 Aug 2008 03:44:49 -0000 1.1
+++ commit-email-codestriker.pl 22 Aug 2008 01:41:31 -0000 1.2
@@ -121,6 +121,7 @@
'--codestriker-repository' => 'codestriker_repository',
'--codestriker-reviewers' => 'codestriker_reviewers',
'--codestriker-cc' => 'codestriker_cc',
+ '--codestriker-state' => 'codestriker_state',
'--codestriker-install-dir' => 'codestriker_install_dir');
while (@ARGV)
@@ -372,6 +373,7 @@
{
$topic_title = substr($topic_title, 0, 77) . "...";
}
+ $topic_title =~ s/[\r\n]+$//g;
# Check for any matching Bug id text.
my @bugs = ();
@@ -396,6 +398,7 @@
email => $codestriker_author,
reviewers => $current_project->{codestriker_reviewers},
cc => $current_project->{codestriker_cc},
+ topic_state => $current_project->{codestriker_state},
topic_text => join("\n", @difflines)
});
}
@@ -574,6 +577,7 @@
" --codestriker_repository repository Codestriker repository to use for new topics\n",
" --codestriker_reviewers reviewers Reviewers to be set for new topics\n",
" --codestriker_cc cc Optional cc recipients for new topics\n",
+ " --codestriker_state state Initial state for new topics - defaults to Open\n",
" --codestriker_install_dir path Location of Codestriker installation\n",
"\n",
"This script supports a single repository with multiple projects,\n",
@@ -612,6 +616,7 @@
codestriker_repository => '',
codestriker_reviewers => '',
codestriker_cc => '',
+ codestriker_state => 'Open',
codestriker_install_dir => ''};
}
|