[Codestriker-commits] CVS update: codestriker/lib/Codestriker/Repository Subversion.pm
Brought to you by:
sits
|
From: <si...@us...> - 2007-03-07 03:03:41
|
User: sits
Date: 07/03/06 19:03:40
Modified: lib/Codestriker/FileParser SubversionDiff.pm
lib/Codestriker/Http Template.pm
lib/Codestriker/Repository Subversion.pm
Log:
Handle subversion diffs which contain non-latin characters
Index: SubversionDiff.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/FileParser/SubversionDiff.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SubversionDiff.pm 26 May 2006 04:55:26 -0000 1.5
+++ SubversionDiff.pm 7 Mar 2007 03:03:40 -0000 1.6
@@ -112,19 +112,16 @@
# Try and read the base revision this change is against,
# while handling new and removed files.
my $base_revision = -1;
- if ($line =~ /^\-\-\- .*\s\(revision (\d+)\)/io ||
- $line =~ /^\-\-\- .*\s\(rev (\d+)/io) {
+ if ($line =~ /^\-\-\- .*\s.* (\d+)/io) {
$base_revision = $1;
- } elsif ($line !~ /^\-\-\- .*\s\(working copy\)/io) {
+ } elsif ($line !~ /^\-\-\- .*/io) {
return ();
}
# Make sure the +++ line is present next.
$line = <$fh>;
return () unless defined $line;
- if ($line !~ /^\+\+\+ .*\s\(working copy\)/io &&
- $line !~ /^\+\+\+ .*\s\(revision \d+\)/io &&
- $line !~ /^\+\+\+ .*\s\(txn .*\)/io) {
+ if ($line !~ /^\+\+\+ .*/io) {
return ();
}
Index: Template.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/Template.pm,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Template.pm 11 Aug 2006 01:46:06 -0000 1.16
+++ Template.pm 7 Mar 2007 03:03:40 -0000 1.17
@@ -47,7 +47,7 @@
$config->{COMPILE_DIR} = $Codestriker::tmpdir;
}
- $self->{template} = Template->new($config) || die Template->error();
+ $self->{template} = Template->new($config) || die Template->error();
return bless $self, $type;
}
Index: Subversion.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Repository/Subversion.pm,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Subversion.pm 12 Jul 2006 00:07:21 -0000 1.14
+++ Subversion.pm 7 Mar 2007 03:03:40 -0000 1.15
@@ -110,7 +110,7 @@
sub getDiff ($$$$$) {
my ($self, $start_tag, $end_tag, $module_name, $stdout_fh, $stderr_fh) = @_;
- # Make sure the moduel does not end or start with a /
+ # Make sure the module does not end or start with a /
$module_name =~ s/\/$//;
$module_name =~ s/^\///;
|