Summary: Fixes T1946.
Test Plan: Ran `arc diff --only` with added paths inside directories. Saw only "/" entries in the diff.
Reviewers: btrahan, vrana
Reviewed By: vrana
CC: aran, mbishopim3
Maniphest Tasks: T1946
Differential Revision: https://secure.phabricator.com/D4374
$this->svnBaseRevisions = array();
foreach ($target->entry as $entry) {
$path = (string)$entry['path'];
+ // On Windows, we get paths with backslash directory separators here.
+ // Normalize them to the format everything else expects and generates.
+ if (phutil_is_windows()) {
+ $path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
+ }
$mask = 0;
$props = (string)($entry->{'wc-status'}[0]['props']);