[Codestriker-commits] CVS update: codestriker/lib/Codestriker/Repository ScmBug.pm
Brought to you by:
sits
|
From: <si...@us...> - 2008-07-22 00:57:50
|
User: sits
Date: 08/07/21 17:57:50
Modified: . CHANGELOG
lib/Codestriker/Repository ScmBug.pm
Log:
* Scmbug integration now works correctly if multiple bug IDs are
specified is the create topic screen. Fixed by
rob...@us....
Index: CHANGELOG
===================================================================
RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -r1.246 -r1.247
--- CHANGELOG 22 Jul 2008 00:50:44 -0000 1.246
+++ CHANGELOG 22 Jul 2008 00:57:49 -0000 1.247
@@ -23,7 +23,11 @@
* Better detection of filename extensions for highlighting. This
previously caused issues for temporary directories which contained
a period, but the filename itself didn't. Reported by
- rob...@us....
+ rob...@us....
+
+* Scmbug integration now works correctly if multiple bug IDs are
+ specified is the create topic screen. Fixed by
+ rob...@us....
Version 1.9.5
Index: ScmBug.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Repository/ScmBug.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ScmBug.pm 22 Feb 2008 00:32:07 -0000 1.2
+++ ScmBug.pm 22 Jul 2008 00:57:49 -0000 1.3
@@ -58,7 +58,11 @@
sub getDiff {
my ($self, $bugids, $stdout_fh, $stderr_fh, $default_to_head) = @_;
- my $affected_files_list = $self->{scmbug}->get_affected_files( $bugids );
+ # Remove spaces from the comma-separated list of bug ids so that
+ # "123, 456" is transformed to "123,456" which is the form
+ # Scmbug::ActivityUtilities expects.
+ $bugids =~ s/ //g;
+ my $affected_files_list = $self->{scmbug}->get_affected_files($bugids);
foreach my $changeset ( @{ $affected_files_list } ) {
|