Created Codestriker topic at:
http://codestriker.sourceforge.net/cgi-bin/codestriker.pl?topic=6438212&action=view
User: sits
Date: 06/04/11 16:47:05
Modified: . CHANGELOG
lib Codestriker.pm
lib/Codestriker/FileParser CvsUnidiff.pm
Added: test/testtopictexts cvs-diff25.txt
Log:
* Update CVS diff parser to handle rdiffs which have new/removed files
in them.
Index: CHANGELOG
===================================================================
RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -r1.183 -r1.184
--- CHANGELOG 16 Jan 2006 21:22:57 -0000 1.183
+++ CHANGELOG 11 Apr 2006 23:47:03 -0000 1.184
@@ -11,6 +11,9 @@
URL. See the codestriker.conf file for more information.
Submitted by Edwin Fine <[EMAIL PROTECTED]>.
+* Update CVS diff parser to handle rdiffs which have new/removed files
+ in them.
+
* Creating a topic with an invalid bug ID is now shown as an error to
the user on the create topic screen.
Index: Codestriker.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker.pm,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- Codestriker.pm 15 Jan 2006 21:20:04 -0000 1.81
+++ Codestriker.pm 11 Apr 2006 23:47:05 -0000 1.82
@@ -28,7 +28,7 @@
);
# Version of Codestriker.
-$Codestriker::VERSION = "1.9.2";
+$Codestriker::VERSION = "1.9.2-alpha-3";
# Default title to display on each Codestriker screen.
$Codestriker::title = "Codestriker $Codestriker::VERSION";
Index: CvsUnidiff.pm
===================================================================
RCS file:
/cvsroot/codestriker/codestriker/lib/Codestriker/FileParser/CvsUnidiff.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- CvsUnidiff.pm 31 Oct 2004 22:46:52 -0000 1.11
+++ CvsUnidiff.pm 11 Apr 2006 23:47:05 -0000 1.12
@@ -134,6 +134,9 @@
} elsif ($line =~ /^\-\-\- \/dev\/null/o) {
# File has been added.
$revision = $Codestriker::ADDED_REVISION;
+ } elsif ($line =~ /^\-\-\- nul/o) {
+ # File has been added.
+ $revision = $Codestriker::ADDED_REVISION;
} elsif ($line =~ /^\-\-\- (.*):(\d+\.[\d\.]+)\t/) {
# This matchs a cvs rdiff file, extract the filename and revision.
# It is assumed to match the repository specified, although there
Index: cvs-diff25.txt
===================================================================
RCS file: cvs-diff25.txt
diff -N cvs-diff25.txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ cvs-diff25.txt 11 Apr 2006 23:47:05 -0000 1.1
@@ -0,0 +1,18 @@
+Index: stefan/file1.c
+diff -u stefan/file1.c:1.1 stefan/file1.c:1.2
+--- stefan/file1.c:1.1 Tue Mar 28 18:56:25 2006
++++ stefan/file1.c Tue Mar 28 18:58:06 2006
+@@ -1,3 +1,4 @@
+ int main() {
++ /* some changes */
+ return 0;
+ }
+Index: stefan/file2.c
+diff -u nul stefan/file2.c:1.1
+--- nul Tue Mar 28 19:05:47 2006
++++ stefan/file2.c Tue Mar 28 18:57:31 2006
+@@ -0,0 +1,3 @@
++int main() {
++ return 0;
++}
+\ No newline at end of file
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits