From a8f5e0a30e38dc2f68ae02f1b99344fa5878776b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 9 Feb 2015 05:16:51 +0000 Subject: [PATCH] added code to ignore a line beginning with a backslash in parsing the diff output --- codepot/src/codepot/models/subversionmodel.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/codepot/src/codepot/models/subversionmodel.php b/codepot/src/codepot/models/subversionmodel.php index 18ce9992..f787fa1d 100644 --- a/codepot/src/codepot/models/subversionmodel.php +++ b/codepot/src/codepot/models/subversionmodel.php @@ -399,6 +399,14 @@ class SubversionModel extends Model switch ($mod) { + case "\\": + // ignore it . + // subversion seems to procude a like like this: + // \ No newline at the end of file + // + $index--; + break; + case "-": $listing[$index]["rev1diffclass"] = "diffdeleted"; $listing[$index]["rev2diffclass"] = "diff";