From 24fc41ee0d4f8823ecfd0a241c716cf56553a7b9 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Fri, 10 Jun 2011 23:40:22 +0200 Subject: [PATCH] XML node access didn't work and as such renames and copies weren't properly detected. --- src/IDF/Scm/Svn.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index 9432843..a3feb97 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -530,10 +530,10 @@ class IDF_Scm_Svn extends IDF_Scm // copies are treated as renames if they have an add _and_ a drop; // only if they only have an add, but no drop, they're treated as copies - foreach ($xml->paths as $path) { - $trg = (string) $path; + foreach ($entry->paths->path as $p) { + $trg = (string) $p; $src = null; - foreach ($path->attributes() as $k => $v) { + foreach ($p->attributes() as $k => $v) { if ((string) $k == 'copyfrom-path') { $src = (string) $v; break;