User: sits
Date: 06/06/06 17:00:57
Modified: . CHANGELOG
lib/Codestriker/FileParser CvsUnidiff.pm
Log:
* Matching of CVS repository paths when parsing topic text is now
case insensitive to account for the different casing returned by the
Window clients: Cygwin and CvsNT.
Index: CHANGELOG
===================================================================
RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -r1.187 -r1.188
--- CHANGELOG 28 May 2006 23:46:20 -0000 1.187
+++ CHANGELOG 7 Jun 2006 00:00:57 -0000 1.188
@@ -62,6 +62,10 @@
* Added support for parsing diffs generated using Subversion's svnlook
program.
+* Matching of CVS repository paths when parsing topic text is now
+ case insensitive to account for the different casing returned by the
+ Window clients: Cygwin and CvsNT.
+
Version 1.9.1
* Correct problem introduced in 1.9.0 release where the email address
Index: CvsUnidiff.pm
===================================================================
RCS file:
/cvsroot/codestriker/codestriker/lib/Codestriker/FileParser/CvsUnidiff.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- CvsUnidiff.pm 11 Apr 2006 23:47:05 -0000 1.12
+++ CvsUnidiff.pm 7 Jun 2006 00:00:57 -0000 1.13
@@ -64,16 +64,18 @@
# The separator line appears next, for diffs, but not rdiffs.
return @result unless defined $line;
- if ($line =~
/^===================================================================$/) {
+ if ($line =~
/^===================================================================$/o) {
$line = <$fh>;
}
# Now we expect the RCS line, whose filename should include the CVS
# repository, and if not, it is probably a new file, or it is a
- # cvs rdiff.
+ # cvs rdiff. Make the match for the repository root case insensitive
+ # since different Windoze CVS clients (Cygwin + CvsNT) may return
different
+ # repository roots with different casing.
return () unless defined $line;
if (defined $repository_root &&
- $line =~ /^RCS file: $repository_root\/(.*),v$/) {
+ $line =~ /^RCS file: $repository_root\/(.*),v$/i) {
$repmatch = 1;
$filename = $1;
$line = <$fh>;
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits