Skip Menu |

This queue is for tickets about the SVN-Web CPAN distribution.

Report information
The Basics
Id: 30864
Status: resolved
Priority: 0/
Queue: SVN-Web

People
Owner: Nobody in particular
Requestors: wesley.darlington [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: SVN::Web::DiffParser.pm doesn't correctly parse one-line files that get changed
Date: Tue, 20 Nov 2007 14:26:13 +0000
To: bug-SVN-Web [...] rt.cpan.org
From: "Wesley Darlington" <wesley.darlington [...] gmail.com>
Hello, SVN::Web::DiffParser doesn't parse one particular output format of svn diff. Example output of svn diff below. I originally thought DiffParser couldn't handle files with just one line that change, but on reflection, it looks like the problem could be that the one-line file doesn't end with a newline! Regardless, DiffParser should still handle this case. Patch attached. Thanks, Wesley. wesley@wdd-$ svn diff -r 959 Index: client/version.txt =================================================================== --- client/version.txt (revision 959) +++ client/version.txt (working copy) @@ -1 +1 @@ -0.1.24 \ No newline at end of file +0.1.23 \ No newline at end of file wesley@wdd-$

Message body is not shown because sender requested not to inline it.

Fixed in http://jc.ngo.org.uk:80/svnweb/jc/revision?rev=1308. Many thanks for the report, and the patch.