1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 02:02:40 +01:00

Arcanist: parse SVN "replaced" status

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
This commit is contained in:
epriestley 2011-03-07 19:03:27 -08:00
parent 71016a09f8
commit f794418ba9

View file

@ -110,6 +110,12 @@ class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
case 'added': case 'added':
$mask |= self::FLAG_ADDED; $mask |= self::FLAG_ADDED;
break; 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': case 'modified':
$mask |= self::FLAG_MODIFIED; $mask |= self::FLAG_MODIFIED;
break; break;