Index: subversion/include/private/svn_wc_private.h
===================================================================
--- subversion/include/private/svn_wc_private.h	(revision 38964)
+++ subversion/include/private/svn_wc_private.h	(arbetskopia)
@@ -278,6 +278,16 @@
  */
 
 /**
+ * Retrieve an @a adm_access for @a path from the @a wc_ctx.
+ * If the @a adm_access for @a local_abspath is not found, this
+ * function sets @a *adm_acess to NULL and does not return an error.
+ */
+svn_error_t *
+svn_wc__adm_retrieve_from_context(svn_wc_adm_access_t **adm_access,
+                                  svn_wc_context_t *wc_ctx,
+                                  const char *local_abspath,
+                                  apr_pool_t *pool);
+/**
  * Fetch the absolute paths of all the working children of @a dir_abspath
  * into @a *children, allocated in @a result_pool.  Use @a wc_ctx to access
  * the working copy, and @a scratch_pool for all temporary allocations.
Index: subversion/libsvn_wc/lock.c
===================================================================
--- subversion/libsvn_wc/lock.c	(revision 38964)
+++ subversion/libsvn_wc/lock.c	(arbetskopia)
@@ -336,6 +336,7 @@
                 svn_wc__db_t *db,
                 apr_pool_t *scratch_pool)
 {
+
   /* We closed the DB when it became empty. ABSPATH is not present.  */
   if (db == NULL)
     return NULL;
@@ -1310,7 +1311,21 @@
                                       cancel_baton, pool));
 }
 
+svn_error_t *
+svn_wc__adm_retrieve_from_context(svn_wc_adm_access_t **adm_access,
+                                  svn_wc_context_t *wc_ctx,
+                                  const char *local_abspath,
+                                  apr_pool_t *pool)
+{
+  SVN_ERR_ASSERT(svn_dirent_is_absolute(local_abspath));
 
+  *adm_access = svn_wc__adm_retrieve_internal2(wc_ctx->db, 
+                                               local_abspath, 
+                                               pool);
+
+  return SVN_NO_ERROR;
+}
+
 /* Does the work of closing the access baton ADM_ACCESS.  Any physical
    locks are removed from the working copy if PRESERVE_LOCK is FALSE, or
    are left if PRESERVE_LOCK is TRUE.  Any associated access batons that
