[[
Use result_pool/scratch_pool paradigm in libsvn_wc.

* subversion/libsvn_wc/wc.h
* subversion/libsvn_wc/util.c
  (svn_wc__ensure_directory): renamed pool to scratch_pool.
]]

Index: /Users/hauner/Development/subversion/svn-trunk2/subversion/libsvn_wc/util.c
===================================================================
--- /Users/hauner/Development/subversion/svn-trunk2/subversion/libsvn_wc/util.c	(revision 38761)
+++ /Users/hauner/Development/subversion/svn-trunk2/subversion/libsvn_wc/util.c	(working copy)
@@ -43,11 +43,11 @@

 svn_error_t *
 svn_wc__ensure_directory(const char *path,
-                         apr_pool_t *pool)
+                         apr_pool_t *scratch_pool)
 {
   svn_node_kind_t kind;

-  SVN_ERR(svn_io_check_path(path, &kind, pool));
+  SVN_ERR(svn_io_check_path(path, &kind, scratch_pool));

   if (kind != svn_node_none && kind != svn_node_dir)
     {
@@ -56,12 +56,12 @@
          Might happen if there's a file in the way, for example. */
       return svn_error_createf(APR_ENOTDIR, NULL,
                                _("'%s' is not a directory"),
-                               svn_dirent_local_style(path, pool));
+                               svn_dirent_local_style(path, scratch_pool));
     }
   else if (kind == svn_node_none)
     {
       /* The dir doesn't exist, and it's our job to change that. */
-      svn_error_t *err = svn_io_dir_make(path, APR_OS_DEFAULT, pool);
+      svn_error_t *err = svn_io_dir_make(path, APR_OS_DEFAULT, scratch_pool);

       if (err && !APR_STATUS_IS_ENOENT(err->apr_err))
         {
@@ -77,7 +77,7 @@
           /* Okay, so the problem is a missing intermediate
              directory.  We don't know which one, so we recursively
              back up one level and try again. */
-          const char *shorter = svn_dirent_dirname(path, pool);
+          const char *shorter = svn_dirent_dirname(path, scratch_pool);

           /* Clear the error. */
           svn_error_clear(err);
@@ -90,8 +90,8 @@
             }
           else  /* We have a valid path, so recursively ensure it. */
             {
-              SVN_ERR(svn_wc__ensure_directory(shorter, pool));
-              return svn_wc__ensure_directory(path, pool);
+              SVN_ERR(svn_wc__ensure_directory(shorter,scratch_pool));
+              return svn_wc__ensure_directory(path,scratch_pool);
             }
         }

Index: /Users/hauner/Development/subversion/svn-trunk2/subversion/libsvn_wc/wc.h
===================================================================
--- /Users/hauner/Development/subversion/svn-trunk2/subversion/libsvn_wc/wc.h	(revision 38761)
+++ /Users/hauner/Development/subversion/svn-trunk2/subversion/libsvn_wc/wc.h	(working copy)
@@ -249,7 +249,8 @@
  * If this section gets big, move it all out into a new util.h file. */

 /* Ensure that DIR exists. */
-svn_error_t *svn_wc__ensure_directory(const char *path, apr_pool_t *pool);
+svn_error_t *svn_wc__ensure_directory(const char *path,
+                                      apr_pool_t *scratch_pool);

 /* Baton for svn_wc__compat_call_notify_func below. */
 typedef struct svn_wc__compat_notify_baton_t {

