+ // ###################################################################
+ /**
+ * Returns an array of properties for this revision at a certain path
+ *
+ * @param string Path
+ *
+ * @return array Array of properties
+ */
+ public function getPropsForPath($path)
+ {
+ $output = BSRegister::Get('lib')->run('proplist -v -r' . $this->revision . ' ' . BSRegister::Get('lib')->arg($this->path . $path));
+ unset($output[0]);
+
+ $proplist = array();
+ foreach ($output AS $line)
+ {
+ if (preg_match('#^\s+(.*)\s:(\s(.*))?#', $line, $matches))
+ {
+ $curprop = $matches[1];
+ $proplist["$curprop"] = $matches[2] . "\n";
+ }
+ else
+ {
+ $proplist["$curprop"] .= $line . "\n";
+ }
+ }
+
+ return $proplist;
+ }
+