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.