]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Arcanist: parse SVN "replaced" status
authorepriestley <epriestley@phabricator.com>
Tue, 8 Mar 2011 03:03:27 +0000 (19:03 -0800)
committerepriestley <epriestley@phabricator.com>
Tue, 8 Mar 2011 06:04:22 +0000 (22:04 -0800)
Summary:
SVN has a special 'replaced' status which was not being parsed
correctly. Parse it correctly.

Test Plan:
Replaced a file, ran arc diff, got a sensible diff.

Reviewed By: aran
Reviewers: aran
CC: aran
Differential Revision: 60

src/repository/api/subversion/ArcanistSubversionAPI.php

index 4dd7fa7e4887e5b3463b66d3303810c14a321a1e..5edfbc199b95ceeced2aaa2df9c53e39513df1ec 100644 (file)
@@ -110,6 +110,12 @@ class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
           case 'added':
             $mask |= self::FLAG_ADDED;
             break;
+          case 'replaced':
+            // This is the result of "svn rm"-ing a file, putting another one
+            // in place of it, and then "svn add"-ing the new file. Just treat
+            // this as equivalent to "modified".
+            $mask |= self::FLAG_MODIFIED;
+            break;
           case 'modified':
             $mask |= self::FLAG_MODIFIED;
             break;