Author: hwright
Date: Wed Jan 11 04:34:17 2012
New Revision: 1229892
URL: http://svn.apache.org/viewvc?rev=1229892&view=rev
Log:
Ev2 shims: Minor improvement in the way that the export kind fetcher works.
* subversion/libsvn_client/export.c
(fetch_kind_func): Return the one kind we are sure of: that of the root.
Modified:
subversion/trunk/subversion/libsvn_client/export.c
Modified: subversion/trunk/subversion/libsvn_client/export.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/export.c?rev=1229892&r1=1229891&r2=1229892&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/export.c (original)
+++ subversion/trunk/subversion/libsvn_client/export.c Wed Jan 11 04:34:17 2012
@@ -1026,7 +1026,16 @@ fetch_kind_func(svn_kind_t *kind,
const char *path,
apr_pool_t *scratch_pool)
{
- *kind = svn_kind_unknown;
+ /* We know the root of the edit is a directory. */
+ if (path[0] == '\0')
+ *kind = svn_kind_dir;
+
+ /* ### TODO: We could possibly fetch the kind of the object in question
+ from the server with a second ra_session, but right now this
+ seems to work. */
+ else
+ *kind = svn_kind_unknown;
+
return SVN_NO_ERROR;
}