--- module.orig/Projects/src/Projects/Model/Project.php.orig 2016-04-28 09:31:12.000000000 +0000 +++ module/Projects/src/Projects/Model/Project.php 2016-04-28 09:22:38.000000000 +0000 @@ -802,7 +802,7 @@ if ($path[0] != '"' || substr($path, -1) != '"') { $path = '"' . $path . '"'; } - $paths[] = $path; + $paths[] = strtolower($path); } $maps[] = array( @@ -815,7 +815,7 @@ // if we can cheaply query the common path (won't work on shelved changes) // remove any projects/branches which clearly won't be affected - $path = $change->isSubmitted() ? $change->getPath(false) : null; + $path = $change->isSubmitted() ? strtolower($change->getPath(false)) : null; if ($path) { $pathMap = new \P4_Map((array) $path); foreach ($maps as $key => $map) { @@ -871,7 +871,7 @@ // remove the trailing '#rev action' text and see which // project/branch maps this file fits under (if any) - $file = substr($data, 0, strrpos($data, '#')); + $file = strtolower(substr($data, 0, strrpos($data, '#'))); foreach ($maps as $key => $map) { // if the map includes this file add the project/branch to affected and // remove this map so we don't waste time on future files checking it
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19194 | jason_leonard |
Adding project branch case insensitive matching. We were seeing issues with reviews not being assigned to projects if there was a case issue in either the project branch depot path or the files in the review. This patch forces project branch paths to be matched case insensitive. This is useful for case insensitive Perforce servers when Swarm is run from Linux. The underlying P4PHP P4_Map class is case sensitive when run on Linux platforms. |