You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/05/21 14:13:37 UTC

svn commit: r1125676 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

Author: stsp
Date: Sat May 21 12:13:36 2011
New Revision: 1125676

URL: http://svn.apache.org/viewvc?rev=1125676&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
  (is_immediate_child_path): Fix logic bug. The parent path must have one
   path component *less* than the immediate child path, but the code was
   testing the reverse.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1125676&r1=1125675&r2=1125676&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Sat May 21 12:13:36 2011
@@ -1209,7 +1209,7 @@ is_immediate_child_path(const char *pare
 {
   return (svn_dirent_is_ancestor(parent_abspath, child_abspath) &&
             parent_component_count ==
-            svn_path_component_count(child_abspath) + 1);
+            svn_path_component_count(child_abspath) - 1);
 }