Author: hwright
Date: Thu Jan 26 12:41:08 2012
New Revision: 1236161
URL: http://svn.apache.org/viewvc?rev=1236161&view=rev
Log:
Ev2 shims: Ensure directories really are marked as such.
Greg rightly points out that this is something of a hack, and this whole
recursive operation code could probably be improved upon. I agree.
Current number of Ev2 test failures: 23
* subversion/libsvn_delta/compat.c
(get_operation): If the parent has children, it must be a directory.
Modified:
subversion/trunk/subversion/libsvn_delta/compat.c
Modified: subversion/trunk/subversion/libsvn_delta/compat.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/compat.c?rev=1236161&r1=1236160&r2=1236161&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/compat.c (original)
+++ subversion/trunk/subversion/libsvn_delta/compat.c Thu Jan 26 12:41:08 2012
@@ -931,6 +931,11 @@ get_operation(const char *path,
apr_hash_set(operation->children, apr_pstrdup(result_pool, path),
APR_HASH_KEY_STRING, child);
}
+
+ /* If an operation has a child, it must of necessity be a directory,
+ so ensure this fact. */
+ operation->kind = svn_kind_dir;
+
return child;
}