Author: pburba
Date: Mon Sep 17 16:23:09 2012
New Revision: 1386693

URL: http://svn.apache.org/viewvc?rev=1386693&view=rev
Log:
On the inheritable-props branch: De-rev svn_ra_get_dir3/svn_ra_get_file2 back
to svn_ra_get_dir2/svn_ra_get_file, removing support for getting iprops.
The only callers who used these APIs to get iprops can just as easily use
svn_ra_get_inherited_props instead.

Suggested by: cmpilato

* subversion/libsvn_client/prop_commands.c

  (remote_propget,
   remote_proplist): De-rev svn_ra_get_dir3/svn_ra_get_file2 and get iprops
   via call to svn_ra_get_inherited_props instead.

* subversion/libsvn_ra/compat.c

  (svn_ra__get_inherited_props_walk): Update call to svn_ra__vtable_t
   get_dir method.

* subversion/libsvn_ra/deprecated.c

  (svn_ra_get_file,
   svn_ra_get_dir2): Remove, these are un-deprecated.

  (svn_ra_get_dir): Update call to svn_ra__vtable_t get_dir method.

* subversion/libsvn_ra/ra_loader.c

  (svn_ra_get_file2,
   svn_ra_get_dir3): Delete.

  (svn_ra_get_file,
   svn_ra_get_dir): "New".

* subversion/libsvn_ra/ra_loader.h

  (svn_ra__vtable_t.get_file
   svn_ra__vtable_t.get_dir): De-rev.

* subversion/libsvn_ra/wrapper_template.h

  (compat_get_file,
   compat_get_dir): De-rev.

* subversion/libsvn_ra_local/ra_plugin.c

  (svn_ra_local__get_file,
  svn_ra_local__get_dir): De-rev.

* subversion/libsvn_ra_serf/ra_serf.h

  (svn_ra_serf__get_file): De-rev.

* subversion/libsvn_ra_serf/serf.c

  (svn_ra_serf__get_dir): De-rev.

* subversion/libsvn_ra_serf/update.c

  (svn_ra_serf__get_file): De-rev.

* subversion/libsvn_ra_svn/client.c

  (ra_svn_get_file,
   ra_svn_get_dir): De-rev.

Modified:
    
subversion/branches/inheritable-props/subversion/libsvn_client/prop_commands.c
    subversion/branches/inheritable-props/subversion/libsvn_ra/compat.c
    subversion/branches/inheritable-props/subversion/libsvn_ra/deprecated.c
    subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.c
    subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.h
    
subversion/branches/inheritable-props/subversion/libsvn_ra/wrapper_template.h
    subversion/branches/inheritable-props/subversion/libsvn_ra_local/ra_plugin.c
    subversion/branches/inheritable-props/subversion/libsvn_ra_serf/ra_serf.h
    subversion/branches/inheritable-props/subversion/libsvn_ra_serf/serf.c
    subversion/branches/inheritable-props/subversion/libsvn_ra_serf/update.c
    subversion/branches/inheritable-props/subversion/libsvn_ra_svn/client.c

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_client/prop_commands.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_client/prop_commands.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- 
subversion/branches/inheritable-props/subversion/libsvn_client/prop_commands.c 
(original)
+++ 
subversion/branches/inheritable-props/subversion/libsvn_client/prop_commands.c 
Mon Sep 17 16:23:09 2012
@@ -636,20 +636,15 @@ remote_propget(apr_hash_t *props,
 
   if (kind == svn_node_dir)
     {
-      SVN_ERR(svn_ra_get_dir3(ra_session,
+      SVN_ERR(svn_ra_get_dir2(ra_session,
                               (depth >= svn_depth_files ? &dirents : NULL),
-                              NULL,
-                              props ? &prop_hash : NULL,
-                              inherited_props,
-                              target_relative, revnum, SVN_DIRENT_KIND,
-                              scratch_pool, scratch_pool));
+                              NULL, &prop_hash, target_relative, revnum,
+                              SVN_DIRENT_KIND, scratch_pool));
     }
   else if (kind == svn_node_file)
     {
-      SVN_ERR(svn_ra_get_file2(ra_session, target_relative, revnum,
-                               NULL, NULL,
-                               props ? &prop_hash : NULL,
-                               inherited_props, scratch_pool, scratch_pool));
+      SVN_ERR(svn_ra_get_file(ra_session, target_relative, revnum,
+                              NULL, NULL, &prop_hash, scratch_pool));
     }
   else if (kind == svn_node_none)
     {
@@ -664,6 +659,15 @@ remote_propget(apr_hash_t *props,
                                target_full_url);
     }
 
+  if (inherited_props)
+    {
+      /* We will filter out all but PROPNAME later, making a final copy
+         in RESULT_POOL, so pass SCRATCH_POOL for both pools. */
+      SVN_ERR(svn_ra_get_inherited_props(ra_session, inherited_props,
+                                         target_relative, revnum,
+                                         scratch_pool, scratch_pool));
+    }
+
   /* Make a copy of any inherited PROPNAME properties in RESULT_POOL. */
   if (inherited_props)
     {
@@ -1127,23 +1131,15 @@ remote_proplist(const char *target_prefi
      return. */
   if (kind == svn_node_dir)
     {
-      SVN_ERR(svn_ra_get_dir3(
-        ra_session,
-        (depth > svn_depth_empty) ? &dirents : NULL,
-        NULL,
-        get_explicit_props ? &prop_hash : NULL,
-        get_target_inherited_props ? &inherited_props : NULL,
-        target_relative, revnum,
-        SVN_DIRENT_KIND, scratch_pool, scratch_pool));
+      SVN_ERR(svn_ra_get_dir2(ra_session,
+                              (depth > svn_depth_empty) ? &dirents : NULL,
+                              NULL, &prop_hash, target_relative, revnum,
+                              SVN_DIRENT_KIND, scratch_pool));
     }
   else if (kind == svn_node_file)
     {
-      SVN_ERR(svn_ra_get_file2(
-        ra_session, target_relative, revnum,
-        NULL, NULL,
-        get_explicit_props ? &prop_hash : NULL,
-        get_target_inherited_props ? &inherited_props : NULL,
-        scratch_pool, scratch_pool));
+      SVN_ERR(svn_ra_get_file(ra_session, target_relative, revnum,
+                              NULL, NULL, &prop_hash, scratch_pool));
     }
   else
     {
@@ -1152,14 +1148,12 @@ remote_proplist(const char *target_prefi
                                target_full_url);
     }
 
-  /* svn_ra_get_file2 and svn_ra_get_dir3 shouldn't be asking a server for
-     inherited props if the server doesn't advertise the
-     SVN_RA_CAPABILITY_INHERITED_PROPS capability, but better to check and
-     error out than segfault. */
-  if (get_target_inherited_props && inherited_props == NULL)
-    return svn_error_createf(SVN_ERR_UNSUPPORTED_FEATURE, NULL,
-                             _("Server does not support retrieving "
-                               "inherited properties"));
+  if (get_target_inherited_props)
+    SVN_ERR(svn_ra_get_inherited_props(ra_session, &inherited_props,
+                                       target_relative, revnum,
+                                       result_pool, scratch_pool));
+  else
+    inherited_props = NULL;
 
   if (get_explicit_props)
     {
@@ -1188,13 +1182,6 @@ remote_proplist(const char *target_prefi
         }  
     }
 
-  if (get_target_inherited_props)
-    inherited_props = svn_prop_inherited_array_dup(inherited_props,
-                                                   result_pool,
-                                                   scratch_pool);
-  else
-    inherited_props = NULL;
-
   SVN_ERR(call_receiver(target_full_url, final_hash, inherited_props,
                         receiver, receiver_baton, result_pool));
 

Modified: subversion/branches/inheritable-props/subversion/libsvn_ra/compat.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra/compat.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra/compat.c 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra/compat.c Mon Sep 
17 16:23:09 2012
@@ -906,9 +906,9 @@ svn_ra__get_inherited_props_walk(svn_ra_
       parent_url = svn_uri_dirname(parent_url, iterpool);
       SVN_ERR(svn_ra_reparent(session, parent_url, iterpool));
       err = session->vtable->get_dir(session, NULL, NULL,
-                                     &parent_props, NULL, "",
+                                     &parent_props, "",
                                      revision, SVN_DIRENT_ALL,
-                                     iterpool, iterpool);
+                                     iterpool);
 
       /* If the user doesn't have read access to a parent path then
          skip, but allow them to inherit from further up. */

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_ra/deprecated.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra/deprecated.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra/deprecated.c 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra/deprecated.c Mon 
Sep 17 16:23:09 2012
@@ -418,19 +418,6 @@ svn_error_t *svn_ra_do_status(svn_ra_ses
                                     status_editor, status_baton, pool);
 }
 
-svn_error_t *svn_ra_get_file(svn_ra_session_t *session,
-                             const char *path,
-                             svn_revnum_t revision,
-                             svn_stream_t *stream,
-                             svn_revnum_t *fetched_rev,
-                             apr_hash_t **props,
-                             apr_pool_t *pool)
-{
-  SVN_ERR_ASSERT(*path != '/');
-  return session->vtable->get_file(session, path, revision, stream,
-                                   fetched_rev, props, NULL, pool, pool);
-}
-
 svn_error_t *svn_ra_get_dir(svn_ra_session_t *session,
                             const char *path,
                             svn_revnum_t revision,
@@ -440,20 +427,6 @@ svn_error_t *svn_ra_get_dir(svn_ra_sessi
                             apr_pool_t *pool)
 {
   SVN_ERR_ASSERT(*path != '/');
-  return session->vtable->get_dir(session, dirents, fetched_rev, props, NULL,
-                                  path, revision, SVN_DIRENT_ALL, pool, pool);
-}
-
-svn_error_t *svn_ra_get_dir2(svn_ra_session_t *session,
-                             apr_hash_t **dirents,
-                             svn_revnum_t *fetched_rev,
-                             apr_hash_t **props,
-                             const char *path,
-                             svn_revnum_t revision,
-                             apr_uint32_t dirent_fields,
-                             apr_pool_t *pool)
-{
-  SVN_ERR_ASSERT(*path != '/');
-  return session->vtable->get_dir(session, dirents, fetched_rev, props, NULL,
-                                  path, revision, dirent_fields, pool, pool);
+  return session->vtable->get_dir(session, dirents, fetched_rev, props,
+                                  path, revision, SVN_DIRENT_ALL, pool);
 }

Modified: subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.c 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.c Mon 
Sep 17 16:23:09 2012
@@ -738,104 +738,31 @@ svn_error_t *svn_ra_get_commit_editor3(s
                                             lock_tokens, keep_locks, pool);
 }
 
-
-svn_error_t *svn_ra_get_file2(svn_ra_session_t *session,
-                              const char *path,
-                              svn_revnum_t revision,
-                              svn_stream_t *stream,
-                              svn_revnum_t *fetched_rev,
-                              apr_hash_t **props,
-                              apr_array_header_t **inherited_props,
-                              apr_pool_t *result_pool,
-                              apr_pool_t *scratch_pool)
+svn_error_t *svn_ra_get_file(svn_ra_session_t *session,
+                             const char *path,
+                             svn_revnum_t revision,
+                             svn_stream_t *stream,
+                             svn_revnum_t *fetched_rev,
+                             apr_hash_t **props,
+                             apr_pool_t *pool)
 {
   SVN_ERR_ASSERT(*path != '/');
-
-  if (inherited_props)
-    {
-      svn_boolean_t gets_iprops;
-
-      /* We want inherited props too, can the server deliver? */
-      SVN_ERR(svn_ra_has_capability(session, &gets_iprops,
-                                    SVN_RA_CAPABILITY_INHERITED_PROPS,
-                                    scratch_pool));
-      if (gets_iprops)
-        {
-          SVN_ERR(session->vtable->get_file(session, path, revision, stream,
-                                            fetched_rev, props,
-                                            inherited_props, result_pool,
-                                            scratch_pool));
-        }
-      else
-        {
-          /* Get the explicit props on PATH. */
-          SVN_ERR(session->vtable->get_file(session, path, revision, stream,
-                                            fetched_rev, props, NULL,
-                                            result_pool, scratch_pool));
-          SVN_ERR(svn_ra__get_inherited_props_walk(session, path, revision,
-                                                   inherited_props,
-                                                   result_pool, scratch_pool));
-        }
-    }
-  else
-    {
-      SVN_ERR(session->vtable->get_file(session, path, revision, stream,
-                                        fetched_rev, props, NULL, result_pool,
-                                        scratch_pool));
-    }
-
-  return SVN_NO_ERROR;
+  return session->vtable->get_file(session, path, revision, stream,
+                                   fetched_rev, props, pool);
 }
 
-svn_error_t *
-svn_ra_get_dir3(svn_ra_session_t *session,
-                apr_hash_t **dirents,
-                svn_revnum_t *fetched_rev,
-                apr_hash_t **props,
-                apr_array_header_t **inherited_props,
-                const char *path,
-                svn_revnum_t revision,
-                apr_uint32_t dirent_fields,
-                apr_pool_t *result_pool,
-                apr_pool_t *scratch_pool)
+svn_error_t *svn_ra_get_dir2(svn_ra_session_t *session,
+                             apr_hash_t **dirents,
+                             svn_revnum_t *fetched_rev,
+                             apr_hash_t **props,
+                             const char *path,
+                             svn_revnum_t revision,
+                             apr_uint32_t dirent_fields,
+                             apr_pool_t *pool)
 {
   SVN_ERR_ASSERT(*path != '/');
-
-  if (inherited_props)
-    {
-      svn_boolean_t gets_iprops;
-
-      /* We want inherited props too, can the server deliver? */
-      SVN_ERR(svn_ra_has_capability(session, &gets_iprops,
-                                    SVN_RA_CAPABILITY_INHERITED_PROPS,
-                                    scratch_pool));
-      if (gets_iprops)
-        {
-          SVN_ERR(session->vtable->get_dir(session, dirents, fetched_rev, 
props,
-                                           inherited_props, path, revision,
-                                           dirent_fields, result_pool,
-                                           scratch_pool));
-        }
-      else
-        {
-          /* Get the explicit props on PATH. */
-          SVN_ERR(session->vtable->get_dir(session, dirents, fetched_rev,
-                                           props, NULL, path, revision,
-                                           dirent_fields, result_pool,
-                                           scratch_pool));
-          SVN_ERR(svn_ra__get_inherited_props_walk(session, path, revision,
-                                                   inherited_props,
-                                                   result_pool, scratch_pool));
-        }
-    }
-  else
-    {
-      return session->vtable->get_dir(session, dirents, fetched_rev, props,
-                                      NULL, path, revision, dirent_fields,
-                                      result_pool, scratch_pool);
-    }
-
-  return SVN_NO_ERROR;
+  return session->vtable->get_dir(session, dirents, fetched_rev, props,
+                                  path, revision, dirent_fields, pool);
 }
 
 svn_error_t *svn_ra_get_mergeinfo(svn_ra_session_t *session,

Modified: subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.h?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.h 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra/ra_loader.h Mon 
Sep 17 16:23:09 2012
@@ -110,27 +110,23 @@ typedef struct svn_ra__vtable_t {
                                     apr_hash_t *lock_tokens,
                                     svn_boolean_t keep_locks,
                                     apr_pool_t *pool);
-  /* See svn_ra_get_file2(). */
+  /* See svn_ra_get_file(). */
   svn_error_t *(*get_file)(svn_ra_session_t *session,
                            const char *path,
                            svn_revnum_t revision,
                            svn_stream_t *stream,
                            svn_revnum_t *fetched_rev,
                            apr_hash_t **props,
-                           apr_array_header_t **inherited_props,
-                           apr_pool_t *result_pool,
-                           apr_pool_t *scratch_pool);
-  /* See svn_ra_get_dir3(). */
+                           apr_pool_t *pool);
+  /* See svn_ra_get_dir2(). */
   svn_error_t *(*get_dir)(svn_ra_session_t *session,
                           apr_hash_t **dirents,
                           svn_revnum_t *fetched_rev,
                           apr_hash_t **props,
-                          apr_array_header_t **inherited_props,
                           const char *path,
                           svn_revnum_t revision,
                           apr_uint32_t dirent_fields,
-                          apr_pool_t *result_pool,
-                          apr_pool_t *scratch_pool);
+                          apr_pool_t *pool);
   /* See svn_ra_get_mergeinfo(). */
   svn_error_t *(*get_mergeinfo)(svn_ra_session_t *session,
                                 svn_mergeinfo_catalog_t *mergeinfo,

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_ra/wrapper_template.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra/wrapper_template.h?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- 
subversion/branches/inheritable-props/subversion/libsvn_ra/wrapper_template.h 
(original)
+++ 
subversion/branches/inheritable-props/subversion/libsvn_ra/wrapper_template.h 
Mon Sep 17 16:23:09 2012
@@ -179,7 +179,7 @@ static svn_error_t *compat_get_file(void
                                     apr_pool_t *pool)
 {
   return VTBL.get_file(session_baton, path, revision, stream, fetched_rev,
-                       props, NULL, pool, pool);
+                       props, pool);
 }
 
 static svn_error_t *compat_get_dir(void *session_baton,
@@ -191,7 +191,7 @@ static svn_error_t *compat_get_dir(void 
                                    apr_pool_t *pool)
 {
   return VTBL.get_dir(session_baton, dirents, fetched_rev, props,
-                      NULL, path, revision, SVN_DIRENT_ALL, pool, pool);
+                      path, revision, SVN_DIRENT_ALL, pool);
 }
 
 /** Reporter compat code. **/

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_ra_local/ra_plugin.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra_local/ra_plugin.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- 
subversion/branches/inheritable-props/subversion/libsvn_ra_local/ra_plugin.c 
(original)
+++ 
subversion/branches/inheritable-props/subversion/libsvn_ra_local/ra_plugin.c 
Mon Sep 17 16:23:09 2012
@@ -1115,31 +1115,27 @@ svn_ra_local__get_file(svn_ra_session_t 
                        svn_stream_t *stream,
                        svn_revnum_t *fetched_rev,
                        apr_hash_t **props,
-                       apr_array_header_t **inherited_props,
-                       apr_pool_t *result_pool,
-                       apr_pool_t *scratch_pool)
+                       apr_pool_t *pool)
 {
   svn_fs_root_t *root;
   svn_stream_t *contents;
   svn_revnum_t youngest_rev;
   svn_ra_local__session_baton_t *sess = session->priv;
-  const char *abs_path = svn_fspath__join(sess->fs_path->data, path,
-                                          scratch_pool);
+  const char *abs_path = svn_fspath__join(sess->fs_path->data, path, pool);
   svn_node_kind_t node_kind;
 
   /* Open the revision's root. */
   if (! SVN_IS_VALID_REVNUM(revision))
     {
-      SVN_ERR(svn_fs_youngest_rev(&youngest_rev, sess->fs, scratch_pool));
-      SVN_ERR(svn_fs_revision_root(&root, sess->fs, youngest_rev,
-                                   scratch_pool));
+      SVN_ERR(svn_fs_youngest_rev(&youngest_rev, sess->fs, pool));
+      SVN_ERR(svn_fs_revision_root(&root, sess->fs, youngest_rev, pool));
       if (fetched_rev != NULL)
         *fetched_rev = youngest_rev;
     }
   else
-    SVN_ERR(svn_fs_revision_root(&root, sess->fs, revision, scratch_pool));
+    SVN_ERR(svn_fs_revision_root(&root, sess->fs, revision, pool));
 
-  SVN_ERR(svn_fs_check_path(&node_kind, root, abs_path, scratch_pool));
+  SVN_ERR(svn_fs_check_path(&node_kind, root, abs_path, pool));
   if (node_kind == svn_node_none)
     {
       return svn_error_createf(SVN_ERR_FS_NOT_FOUND, NULL,
@@ -1154,7 +1150,7 @@ svn_ra_local__get_file(svn_ra_session_t 
   if (stream)
     {
       /* Get a stream representing the file's contents. */
-      SVN_ERR(svn_fs_file_contents(&contents, root, abs_path, scratch_pool));
+      SVN_ERR(svn_fs_file_contents(&contents, root, abs_path, pool));
 
       /* Now push data from the fs stream back at the caller's stream.
          Note that this particular RA layer does not computing a
@@ -1168,18 +1164,16 @@ svn_ra_local__get_file(svn_ra_session_t 
          Note: we are not supposed to close the passed-in stream, so
          disown the thing.
       */
-      SVN_ERR(svn_stream_copy3(contents, svn_stream_disown(stream,
-                                                           scratch_pool),
+      SVN_ERR(svn_stream_copy3(contents, svn_stream_disown(stream, pool),
                                sess->callbacks
                                  ? sess->callbacks->cancel_func : NULL,
                                sess->callback_baton,
-                               scratch_pool));
+                               pool));
     }
 
   /* Handle props if requested. */
-  if (props || inherited_props)
-    SVN_ERR(get_node_props(props, inherited_props, sess, root, abs_path,
-                           result_pool, scratch_pool));
+  if (props)
+    SVN_ERR(get_node_props(props, NULL, sess, root, abs_path, pool, pool));
 
   return SVN_NO_ERROR;
 }
@@ -1192,61 +1186,55 @@ svn_ra_local__get_dir(svn_ra_session_t *
                       apr_hash_t **dirents,
                       svn_revnum_t *fetched_rev,
                       apr_hash_t **props,
-                      apr_array_header_t **inherited_props,
                       const char *path,
                       svn_revnum_t revision,
                       apr_uint32_t dirent_fields,
-                      apr_pool_t *result_pool,
-                      apr_pool_t *scratch_pool)
+                      apr_pool_t *pool)
 {
   svn_fs_root_t *root;
   svn_revnum_t youngest_rev;
   apr_hash_t *entries;
   apr_hash_index_t *hi;
   svn_ra_local__session_baton_t *sess = session->priv;
-  apr_pool_t *iterpool;
-  const char *abs_path = svn_fspath__join(sess->fs_path->data, path,
-                                          scratch_pool);
+  apr_pool_t *subpool;
+  const char *abs_path = svn_fspath__join(sess->fs_path->data, path, pool);
 
   /* Open the revision's root. */
   if (! SVN_IS_VALID_REVNUM(revision))
     {
-      SVN_ERR(svn_fs_youngest_rev(&youngest_rev, sess->fs, scratch_pool));
-      SVN_ERR(svn_fs_revision_root(&root, sess->fs, youngest_rev,
-                                   scratch_pool));
+      SVN_ERR(svn_fs_youngest_rev(&youngest_rev, sess->fs, pool));
+      SVN_ERR(svn_fs_revision_root(&root, sess->fs, youngest_rev, pool));
       if (fetched_rev != NULL)
         *fetched_rev = youngest_rev;
     }
   else
-    SVN_ERR(svn_fs_revision_root(&root, sess->fs, revision, scratch_pool));
+    SVN_ERR(svn_fs_revision_root(&root, sess->fs, revision, pool));
 
   if (dirents)
     {
       /* Get the dir's entries. */
-      SVN_ERR(svn_fs_dir_entries(&entries, root, abs_path, result_pool));
+      SVN_ERR(svn_fs_dir_entries(&entries, root, abs_path, pool));
 
       /* Loop over the fs dirents, and build a hash of general
          svn_dirent_t's. */
-      *dirents = apr_hash_make(result_pool);
-      iterpool = svn_pool_create(scratch_pool);
-      for (hi = apr_hash_first(scratch_pool, entries);
-           hi;
-           hi = apr_hash_next(hi))
+      *dirents = apr_hash_make(pool);
+      subpool = svn_pool_create(pool);
+      for (hi = apr_hash_first(pool, entries); hi; hi = apr_hash_next(hi))
         {
           const void *key;
           void *val;
           apr_hash_t *prophash;
           const char *datestring, *entryname, *fullpath;
           svn_fs_dirent_t *fs_entry;
-          svn_dirent_t *entry = apr_pcalloc(result_pool, sizeof(*entry));
+          svn_dirent_t *entry = apr_pcalloc(pool, sizeof(*entry));
 
-          svn_pool_clear(iterpool);
+          svn_pool_clear(subpool);
 
           apr_hash_this(hi, &key, NULL, &val);
           entryname = (const char *) key;
           fs_entry = (svn_fs_dirent_t *) val;
 
-          fullpath = svn_dirent_join(abs_path, entryname, iterpool);
+          fullpath = svn_dirent_join(abs_path, entryname, subpool);
 
           if (dirent_fields & SVN_DIRENT_KIND)
             {
@@ -1261,14 +1249,14 @@ svn_ra_local__get_dir(svn_ra_session_t *
                 entry->size = 0;
               else
                 SVN_ERR(svn_fs_file_length(&(entry->size), root,
-                                           fullpath, iterpool));
+                                           fullpath, subpool));
             }
 
           if (dirent_fields & SVN_DIRENT_HAS_PROPS)
             {
               /* has_props? */
               SVN_ERR(svn_fs_node_proplist(&prophash, root, fullpath,
-                                           iterpool));
+                                           subpool));
               entry->has_props = (apr_hash_count(prophash) != 0);
             }
 
@@ -1280,25 +1268,23 @@ svn_ra_local__get_dir(svn_ra_session_t *
               SVN_ERR(svn_repos_get_committed_info(&(entry->created_rev),
                                                    &datestring,
                                                    &(entry->last_author),
-                                                   root, fullpath, iterpool));
+                                                   root, fullpath, subpool));
               if (datestring)
                 SVN_ERR(svn_time_from_cstring(&(entry->time), datestring,
-                                              result_pool));
+                                              pool));
               if (entry->last_author)
-                entry->last_author = apr_pstrdup(result_pool,
-                                                 entry->last_author);
+                entry->last_author = apr_pstrdup(pool, entry->last_author);
             }
 
           /* Store. */
           apr_hash_set(*dirents, entryname, APR_HASH_KEY_STRING, entry);
         }
-      svn_pool_destroy(iterpool);
+      svn_pool_destroy(subpool);
     }
 
   /* Handle props if requested. */
-  if (props || inherited_props)
-    SVN_ERR(get_node_props(props, inherited_props, sess, root, abs_path,
-                           result_pool, scratch_pool));
+  if (props)
+    SVN_ERR(get_node_props(props, NULL, sess, root, abs_path, pool, pool));
 
   return SVN_NO_ERROR;
 }

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_ra_serf/ra_serf.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra_serf/ra_serf.h?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra_serf/ra_serf.h 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra_serf/ra_serf.h 
Mon Sep 17 16:23:09 2012
@@ -1543,9 +1543,7 @@ svn_ra_serf__get_file(svn_ra_session_t *
                       svn_stream_t *stream,
                       svn_revnum_t *fetched_rev,
                       apr_hash_t **props,
-                      apr_array_header_t **inherited_props,
-                      apr_pool_t *result_pool,
-                      apr_pool_t *scratch_pool);
+                      apr_pool_t *pool);
 
 /* Implements svn_ra__vtable_t.change_rev_prop(). */
 svn_error_t *

Modified: subversion/branches/inheritable-props/subversion/libsvn_ra_serf/serf.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra_serf/serf.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra_serf/serf.c 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra_serf/serf.c Mon 
Sep 17 16:23:09 2012
@@ -936,23 +936,20 @@ svn_ra_serf__get_dir(svn_ra_session_t *r
                      apr_hash_t **dirents,
                      svn_revnum_t *fetched_rev,
                      apr_hash_t **ret_props,
-                     apr_array_header_t **inherited_props,
                      const char *rel_path,
-                     svn_revnum_t peg_rev,
+                     svn_revnum_t revision,
                      apr_uint32_t dirent_fields,
-                     apr_pool_t *result_pool,
-                     apr_pool_t *scratch_pool)
+                     apr_pool_t *pool)
 {
   svn_ra_serf__session_t *session = ra_session->priv;
   const char *path;
-  svn_revnum_t revision = peg_rev;
 
   path = session->session_url.path;
 
   /* If we have a relative path, URI encode and append it. */
   if (rel_path)
     {
-      path = svn_path_url_add_component2(path, rel_path, scratch_pool);
+      path = svn_path_url_add_component2(path, rel_path, pool);
     }
 
   /* If the user specified a peg revision other than HEAD, we have to fetch
@@ -963,7 +960,7 @@ svn_ra_serf__get_dir(svn_ra_session_t *r
       SVN_ERR(svn_ra_serf__get_stable_url(&path, fetched_rev,
                                           session, NULL /* conn */,
                                           path, revision,
-                                          scratch_pool, scratch_pool));
+                                          pool, pool));
       revision = SVN_INVALID_REVNUM;
     }
   /* REVISION is always SVN_INVALID_REVNUM  */
@@ -983,9 +980,8 @@ svn_ra_serf__get_dir(svn_ra_session_t *r
       SVN_ERR(svn_ra_serf__retrieve_props(&props, session, session->conns[0],
                                           path, SVN_INVALID_REVNUM, "1",
                                           get_dirent_props(dirent_fields,
-                                                           session,
-                                                           scratch_pool),
-                                          result_pool, scratch_pool));
+                                                           session, pool),
+                                          pool, pool));
 
       /* Check if the path is really a directory. */
       rtype = svn_ra_serf__get_prop(props, path, "DAV:", "resourcetype");
@@ -997,15 +993,15 @@ svn_ra_serf__get_dir(svn_ra_session_t *r
        * We're going to return the 2nd one back to the caller as it
        * will have the basenames it expects.
        */
-      dirent_walk.full_paths = apr_hash_make(scratch_pool);
-      dirent_walk.base_paths = apr_hash_make(result_pool);
-      dirent_walk.orig_path = svn_urlpath__canonicalize(path, scratch_pool);
+      dirent_walk.full_paths = apr_hash_make(pool);
+      dirent_walk.base_paths = apr_hash_make(pool);
+      dirent_walk.orig_path = svn_urlpath__canonicalize(path, pool);
       dirent_walk.supports_deadprop_count = svn_tristate_unknown;
-      dirent_walk.result_pool = result_pool;
+      dirent_walk.result_pool = pool;
 
       SVN_ERR(svn_ra_serf__walk_all_paths(props, SVN_INVALID_REVNUM,
                                           path_dirent_walker, &dirent_walk,
-                                          scratch_pool));
+                                          pool));
 
       if (dirent_walk.supports_deadprop_count == svn_tristate_false
           && session->supports_deadprop_count == svn_tristate_unknown
@@ -1018,16 +1014,15 @@ svn_ra_serf__get_dir(svn_ra_session_t *r
                                               session->conns[0],
                                               path, SVN_INVALID_REVNUM, "1",
                                               get_dirent_props(dirent_fields,
-                                                               session,
-                                                               scratch_pool),
-                                              scratch_pool, scratch_pool));
+                                                               session, pool),
+                                              pool, pool));
 
-          SVN_ERR(svn_hash__clear(dirent_walk.full_paths, scratch_pool));
-          SVN_ERR(svn_hash__clear(dirent_walk.base_paths, scratch_pool));
+          SVN_ERR(svn_hash__clear(dirent_walk.full_paths, pool));
+          SVN_ERR(svn_hash__clear(dirent_walk.base_paths, pool));
 
           SVN_ERR(svn_ra_serf__walk_all_paths(props, SVN_INVALID_REVNUM,
                                               path_dirent_walker,
-                                              &dirent_walk, scratch_pool));
+                                              &dirent_walk, pool));
         }
 
       *dirents = dirent_walk.base_paths;
@@ -1044,36 +1039,14 @@ svn_ra_serf__get_dir(svn_ra_session_t *r
       SVN_ERR(svn_ra_serf__fetch_node_props(&props, session->conns[0],
                                             path, SVN_INVALID_REVNUM,
                                             all_props,
-                                            result_pool, scratch_pool));
+                                            pool, pool));
 
       /* Check if the path is really a directory. */
       SVN_ERR(resource_is_directory(props));
 
       /* ### flatten_props() does not copy PROPVALUE, but fetch_node_props()
-         ### put them into RESULT_POOL, so we're okay.  */
-      SVN_ERR(svn_ra_serf__flatten_props(ret_props, props, result_pool,
-                                         scratch_pool));
-    }
-
-  if (inherited_props)
-    {
-      svn_boolean_t supports_iprops;
-
-      SVN_ERR(svn_ra_serf__has_capability(ra_session, &supports_iprops,
-                                          SVN_RA_CAPABILITY_INHERITED_PROPS,
-                                          scratch_pool));
-      if (!supports_iprops)
-        {
-          *inherited_props = NULL;
-        }
-      else
-        {
-          SVN_ERR(svn_ra_serf__get_inherited_props(ra_session,
-                                                   inherited_props,
-                                                   rel_path, peg_rev,
-                                                   result_pool,
-                                                   scratch_pool));
-        }
+         ### put them into POOL, so we're okay.  */
+      SVN_ERR(svn_ra_serf__flatten_props(ret_props, props, pool, pool));
     }
 
   return SVN_NO_ERROR;

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_ra_serf/update.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra_serf/update.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra_serf/update.c 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra_serf/update.c 
Mon Sep 17 16:23:09 2012
@@ -2973,13 +2973,11 @@ try_get_wc_contents(svn_boolean_t *found
 svn_error_t *
 svn_ra_serf__get_file(svn_ra_session_t *ra_session,
                       const char *path,
-                      svn_revnum_t peg_rev,
+                      svn_revnum_t revision,
                       svn_stream_t *stream,
                       svn_revnum_t *fetched_rev,
                       apr_hash_t **props,
-                      apr_array_header_t **inherited_props,
-                      apr_pool_t *result_pool,
-                      apr_pool_t *scratch_pool)
+                      apr_pool_t *pool)
 {
   svn_ra_serf__session_t *session = ra_session->priv;
   svn_ra_serf__connection_t *conn;
@@ -2987,15 +2985,13 @@ svn_ra_serf__get_file(svn_ra_session_t *
   apr_hash_t *fetch_props;
   svn_kind_t res_kind;
   const svn_ra_serf__dav_props_t *which_props;
-  svn_revnum_t revision = peg_rev;
 
   /* What connection should we go on? */
   conn = session->conns[session->cur_conn];
 
   /* Fetch properties. */
 
-  fetch_url = svn_path_url_add_component2(session->session_url.path, path,
-                                          scratch_pool);
+  fetch_url = svn_path_url_add_component2(session->session_url.path, path, 
pool);
 
   /* The simple case is if we want HEAD - then a GET on the fetch_url is fine.
    *
@@ -3007,7 +3003,7 @@ svn_ra_serf__get_file(svn_ra_session_t *
       SVN_ERR(svn_ra_serf__get_stable_url(&fetch_url, fetched_rev,
                                           session, conn,
                                           fetch_url, revision,
-                                          scratch_pool, scratch_pool));
+                                          pool, pool));
       revision = SVN_INVALID_REVNUM;
     }
   /* REVISION is always SVN_INVALID_REVNUM  */
@@ -3029,7 +3025,7 @@ svn_ra_serf__get_file(svn_ra_session_t *
   SVN_ERR(svn_ra_serf__fetch_node_props(&fetch_props, conn, fetch_url,
                                         SVN_INVALID_REVNUM,
                                         which_props,
-                                        result_pool, scratch_pool));
+                                        pool, pool));
 
   /* Verify that resource type is not collection. */
   SVN_ERR(svn_ra_serf__get_resource_type(&res_kind, fetch_props));
@@ -3043,16 +3039,15 @@ svn_ra_serf__get_file(svn_ra_session_t *
   if (props)
     {
       /* ### flatten_props() does not copy PROPVALUE, but fetch_node_props()
-         ### put them into RESULT_POOL, so we're okay.  */
+         ### put them into POOL, so we're okay.  */
       SVN_ERR(svn_ra_serf__flatten_props(props, fetch_props,
-                                         result_pool, scratch_pool));
+                                         pool, pool));
     }
 
   if (stream)
     {
       svn_boolean_t found;
-      SVN_ERR(try_get_wc_contents(&found, session, fetch_props, stream,
-                                  scratch_pool));
+      SVN_ERR(try_get_wc_contents(&found, session, fetch_props, stream, pool));
 
       /* No contents found in the WC, let's fetch from server. */
       if (!found)
@@ -3061,17 +3056,16 @@ svn_ra_serf__get_file(svn_ra_session_t *
           svn_ra_serf__handler_t *handler;
 
           /* Create the fetch context. */
-          stream_ctx = apr_pcalloc(scratch_pool, sizeof(*stream_ctx));
+          stream_ctx = apr_pcalloc(pool, sizeof(*stream_ctx));
           stream_ctx->target_stream = stream;
           stream_ctx->sess = session;
           stream_ctx->conn = conn;
-          stream_ctx->info = apr_pcalloc(scratch_pool,
-                                         sizeof(*stream_ctx->info));
+          stream_ctx->info = apr_pcalloc(pool, sizeof(*stream_ctx->info));
           stream_ctx->info->name = fetch_url;
 
-          handler = apr_pcalloc(scratch_pool, sizeof(*handler));
+          handler = apr_pcalloc(pool, sizeof(*handler));
 
-          handler->handler_pool = scratch_pool;
+          handler->handler_pool = pool;
           handler->method = "GET";
           handler->path = fetch_url;
           handler->conn = conn;
@@ -3090,27 +3084,7 @@ svn_ra_serf__get_file(svn_ra_session_t *
 
           svn_ra_serf__request_create(handler);
 
-          SVN_ERR(svn_ra_serf__context_run_wait(&stream_ctx->done, session,
-                                                scratch_pool));
-        }
-    }
-
-  if (inherited_props)
-    {
-      svn_boolean_t supports_iprops;
-
-      SVN_ERR(svn_ra_serf__has_capability(ra_session, &supports_iprops,
-                                          SVN_RA_CAPABILITY_INHERITED_PROPS,
-                                          scratch_pool));
-      if (!supports_iprops)
-        {
-          *inherited_props = NULL;
-        }
-      else
-        {
-          SVN_ERR(svn_ra_serf__get_inherited_props(ra_session, inherited_props,
-                                                   path, peg_rev, result_pool,
-                                                   scratch_pool));
+          SVN_ERR(svn_ra_serf__context_run_wait(&stream_ctx->done, session, 
pool));
         }
     }
 

Modified: 
subversion/branches/inheritable-props/subversion/libsvn_ra_svn/client.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/inheritable-props/subversion/libsvn_ra_svn/client.c?rev=1386693&r1=1386692&r2=1386693&view=diff
==============================================================================
--- subversion/branches/inheritable-props/subversion/libsvn_ra_svn/client.c 
(original)
+++ subversion/branches/inheritable-props/subversion/libsvn_ra_svn/client.c Mon 
Sep 17 16:23:09 2012
@@ -1087,34 +1087,27 @@ static svn_error_t *ra_svn_get_file(svn_
                                     svn_revnum_t rev, svn_stream_t *stream,
                                     svn_revnum_t *fetched_rev,
                                     apr_hash_t **props,
-                                    apr_array_header_t **inherited_props,
-                                    apr_pool_t *result_pool,
-                                    apr_pool_t *scratch_pool)
+                                    apr_pool_t *pool)
 {
   svn_ra_svn__session_baton_t *sess_baton = session->priv;
   svn_ra_svn_conn_t *conn = sess_baton->conn;
   apr_array_header_t *proplist;
-  apr_array_header_t *iproplist;
   const char *expected_digest;
   svn_checksum_t *expected_checksum = NULL;
   svn_checksum_ctx_t *checksum_ctx;
   apr_pool_t *iterpool;
 
-  SVN_ERR(svn_ra_svn_write_cmd(conn, scratch_pool, "get-file", "c(?r)bbb",
-                               path, rev, (props != NULL), (stream != NULL),
-                               (inherited_props != NULL)));
-  SVN_ERR(handle_auth_request(sess_baton, scratch_pool));
-  SVN_ERR(svn_ra_svn_read_cmd_response(conn, scratch_pool, "(?c)rl?l",
+  SVN_ERR(svn_ra_svn_write_cmd(conn, pool, "get-file", "c(?r)bb", path,
+                               rev, (props != NULL), (stream != NULL)));
+  SVN_ERR(handle_auth_request(sess_baton, pool));
+  SVN_ERR(svn_ra_svn_read_cmd_response(conn, pool, "(?c)rl",
                                        &expected_digest,
-                                       &rev, &proplist, &iproplist));
+                                       &rev, &proplist));
 
   if (fetched_rev)
     *fetched_rev = rev;
   if (props)
-    SVN_ERR(svn_ra_svn_parse_proplist(proplist, result_pool, props));
-  if (inherited_props)
-    SVN_ERR(parse_iproplist(inherited_props, iproplist, session, result_pool,
-                            scratch_pool));
+    SVN_ERR(svn_ra_svn_parse_proplist(proplist, pool, props));
 
   /* We're done if the contents weren't wanted. */
   if (!stream)
@@ -1123,12 +1116,12 @@ static svn_error_t *ra_svn_get_file(svn_
   if (expected_digest)
     {
       SVN_ERR(svn_checksum_parse_hex(&expected_checksum, svn_checksum_md5,
-                                     expected_digest, scratch_pool));
-      checksum_ctx = svn_checksum_ctx_create(svn_checksum_md5, scratch_pool);
+                                     expected_digest, pool));
+      checksum_ctx = svn_checksum_ctx_create(svn_checksum_md5, pool);
     }
 
   /* Read the file's contents. */
-  iterpool = svn_pool_create(scratch_pool);
+  iterpool = svn_pool_create(pool);
   while (1)
     {
       svn_ra_svn_item_t *item;
@@ -1150,15 +1143,15 @@ static svn_error_t *ra_svn_get_file(svn_
     }
   svn_pool_destroy(iterpool);
 
-  SVN_ERR(svn_ra_svn_read_cmd_response(conn, scratch_pool, ""));
+  SVN_ERR(svn_ra_svn_read_cmd_response(conn, pool, ""));
 
   if (expected_checksum)
     {
       svn_checksum_t *checksum;
 
-      SVN_ERR(svn_checksum_final(&checksum, checksum_ctx, scratch_pool));
+      SVN_ERR(svn_checksum_final(&checksum, checksum_ctx, pool));
       if (!svn_checksum_match(checksum, expected_checksum))
-        return svn_checksum_mismatch_err(expected_checksum, checksum, 
scratch_pool,
+        return svn_checksum_mismatch_err(expected_checksum, checksum, pool,
                                          _("Checksum mismatch for '%s'"),
                                          path);
     }
@@ -1170,61 +1163,48 @@ static svn_error_t *ra_svn_get_dir(svn_r
                                    apr_hash_t **dirents,
                                    svn_revnum_t *fetched_rev,
                                    apr_hash_t **props,
-                                   apr_array_header_t **inherited_props,
                                    const char *path,
                                    svn_revnum_t rev,
                                    apr_uint32_t dirent_fields,
-                                   apr_pool_t *result_pool,
-                                   apr_pool_t *scratch_pool)
+                                   apr_pool_t *pool)
 {
   svn_ra_svn__session_baton_t *sess_baton = session->priv;
   svn_ra_svn_conn_t *conn = sess_baton->conn;
-  apr_array_header_t *proplist, *dirlist, *iproplist;
+  apr_array_header_t *proplist, *dirlist;
   int i;
 
-  SVN_ERR(svn_ra_svn_write_tuple(conn, scratch_pool, "w(c(?r)bb(!", "get-dir",
-                                 path, rev, (props != NULL),
-                                 (dirents != NULL)));
+  SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "w(c(?r)bb(!", "get-dir", path,
+                                 rev, (props != NULL), (dirents != NULL)));
   if (dirent_fields & SVN_DIRENT_KIND)
-    SVN_ERR(svn_ra_svn_write_word(conn, scratch_pool,
-                                  SVN_RA_SVN_DIRENT_KIND));
+    SVN_ERR(svn_ra_svn_write_word(conn, pool, SVN_RA_SVN_DIRENT_KIND));
   if (dirent_fields & SVN_DIRENT_SIZE)
-    SVN_ERR(svn_ra_svn_write_word(conn, scratch_pool,
-                                  SVN_RA_SVN_DIRENT_SIZE));
+    SVN_ERR(svn_ra_svn_write_word(conn, pool, SVN_RA_SVN_DIRENT_SIZE));
   if (dirent_fields & SVN_DIRENT_HAS_PROPS)
-    SVN_ERR(svn_ra_svn_write_word(conn, scratch_pool,
-                                  SVN_RA_SVN_DIRENT_HAS_PROPS));
+    SVN_ERR(svn_ra_svn_write_word(conn, pool, SVN_RA_SVN_DIRENT_HAS_PROPS));
   if (dirent_fields & SVN_DIRENT_CREATED_REV)
-    SVN_ERR(svn_ra_svn_write_word(conn, scratch_pool,
-                                  SVN_RA_SVN_DIRENT_CREATED_REV));
+    SVN_ERR(svn_ra_svn_write_word(conn, pool, SVN_RA_SVN_DIRENT_CREATED_REV));
   if (dirent_fields & SVN_DIRENT_TIME)
-    SVN_ERR(svn_ra_svn_write_word(conn, scratch_pool,
-                                  SVN_RA_SVN_DIRENT_TIME));
+    SVN_ERR(svn_ra_svn_write_word(conn, pool, SVN_RA_SVN_DIRENT_TIME));
   if (dirent_fields & SVN_DIRENT_LAST_AUTHOR)
-    SVN_ERR(svn_ra_svn_write_word(conn, scratch_pool,
-                                  SVN_RA_SVN_DIRENT_LAST_AUTHOR));
+    SVN_ERR(svn_ra_svn_write_word(conn, pool, SVN_RA_SVN_DIRENT_LAST_AUTHOR));
 
-  SVN_ERR(svn_ra_svn_write_tuple(conn, scratch_pool, "!)b)",
-                                 (inherited_props != NULL)));
+  SVN_ERR(svn_ra_svn_write_tuple(conn, pool, "!))"));
 
-  SVN_ERR(handle_auth_request(sess_baton, scratch_pool));
-  SVN_ERR(svn_ra_svn_read_cmd_response(conn, scratch_pool, "rll?l", &rev,
-                                       &proplist, &dirlist, &iproplist));
+  SVN_ERR(handle_auth_request(sess_baton, pool));
+  SVN_ERR(svn_ra_svn_read_cmd_response(conn, pool, "rll", &rev, &proplist,
+                                       &dirlist));
 
   if (fetched_rev)
     *fetched_rev = rev;
   if (props)
-    SVN_ERR(svn_ra_svn_parse_proplist(proplist, result_pool, props));
-  if (inherited_props)
-    SVN_ERR(parse_iproplist(inherited_props, iproplist, session, result_pool,
-                            scratch_pool));
+    SVN_ERR(svn_ra_svn_parse_proplist(proplist, pool, props));
 
   /* We're done if dirents aren't wanted. */
   if (!dirents)
     return SVN_NO_ERROR;
 
   /* Interpret the directory list. */
-  *dirents = apr_hash_make(result_pool);
+  *dirents = apr_hash_make(pool);
   for (i = 0; i < dirlist->nelts; i++)
     {
       const char *name, *kind, *cdate, *cauthor;
@@ -1237,12 +1217,11 @@ static svn_error_t *ra_svn_get_dir(svn_r
       if (elt->kind != SVN_RA_SVN_LIST)
         return svn_error_create(SVN_ERR_RA_SVN_MALFORMED_DATA, NULL,
                                 _("Dirlist element not a list"));
-      SVN_ERR(svn_ra_svn_parse_tuple(elt->u.list, scratch_pool,
-                                     "cwnbr(?c)(?c)",
+      SVN_ERR(svn_ra_svn_parse_tuple(elt->u.list, pool, "cwnbr(?c)(?c)",
                                      &name, &kind, &size, &has_props,
                                      &crev, &cdate, &cauthor));
-      name = svn_relpath_canonicalize(name, result_pool);
-      dirent = apr_palloc(result_pool, sizeof(*dirent));
+      name = svn_relpath_canonicalize(name, pool);
+      dirent = apr_palloc(pool, sizeof(*dirent));
       dirent->kind = svn_node_kind_from_word(kind);
       dirent->size = size;/* FIXME: svn_filesize_t */
       dirent->has_props = has_props;
@@ -1258,7 +1237,7 @@ static svn_error_t *ra_svn_get_dir(svn_r
       if (cdate == NULL)
         dirent->time = 0;
       else
-        SVN_ERR(svn_time_from_cstring(&dirent->time, cdate, result_pool));
+        SVN_ERR(svn_time_from_cstring(&dirent->time, cdate, pool));
       dirent->last_author = cauthor;
       apr_hash_set(*dirents, name, APR_HASH_KEY_STRING, dirent);
     }


Reply via email to