]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use new SVN format for all property changes
authorvrana <jakubv@fb.com>
Tue, 19 Jun 2012 21:16:18 +0000 (14:16 -0700)
committervrana <jakubv@fb.com>
Tue, 19 Jun 2012 21:21:20 +0000 (14:21 -0700)
Test Plan: `svn diff`

Reviewers: nh

Reviewed By: nh

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D2799

src/parser/ArcanistDiffParser.php

index 6e6f5ee6aea5fde8e37c0359af144a39c4ac1055..0d73872e438a3a719bd915a6f0554e2d4ab331a6 100644 (file)
@@ -403,6 +403,7 @@ final class ArcanistDiffParser {
     $target = null;
 
     $line = $this->nextLine();
+    $prop_index = 2;
     while ($line !== null) {
       $done = preg_match(
         '/^(Modified|Added|Deleted|Index|Property changes on):/',
@@ -410,7 +411,6 @@ final class ArcanistDiffParser {
       if ($done) {
         break;
       }
-      $prop_index = 2;
       $trimline = ltrim($line);
       if ($trimline && $trimline[0] == '#') {
         // in svn1.7, a line like ## -0,0 +1 ## is put between the Added: line