FreeBSD/contrib/subversion/subversion/libsvn_client/commit.c
/* For all lock tokens in ALL_TOKENS for URLs under BASE_URL, add them
   to a new hashtable allocated in POOL.  *RESULT is set to point to this
   new hash table.  *RESULT will be keyed on const char * URI-decoded paths
   relative to BASE_URL.  The lock tokens will not be duplicated. */
For all lock tokens in ALL_TOKENS for URLs under BASE_URL, add them
to a new hashtable allocated in POOL.  *RESULT is set to point to this
new hash table.  *RESULT will be keyed on const char * URI-decoded paths
relative to BASE_URL.  The lock tokens will not be duplicated.
For all lock tokens in ALL_TOKENS for URLs under BASE_URL add them to a new hashtable allocated in POOL . * RESULT is set to point to this new hash table . * RESULT will be keyed on const char * URI - decoded paths relative to BASE_URL . The lock tokens will not be duplicated .
static svn_error_t *
collect_lock_tokens(apr_hash_t **result,
                    apr_hash_t *all_tokens,
                    const char *base_url,
                    apr_pool_t *pool)
{
  apr_hash_index_t *hi;
  *result = apr_hash_make(pool);
  for (hi = apr_hash_first(pool, all_tokens); hi; hi = apr_hash_next(hi))
    {
      const char *url = apr_hash_this_key(hi);
      const char *token = apr_hash_this_val(hi);
      const char *relpath = svn_uri_skip_ancestor(base_url, url, pool);
      if (relpath)
        {
          svn_hash_sets(*result, relpath, token);
        }
    }
  return SVN_NO_ERROR;
}
static svn_error_t * collect_lock_tokens ( apr_hash_t * * result , apr_hash_t * all_tokens , const char * base_url , apr_pool_t * pool ) { apr_hash_index_t * hi ; * result = apr_hash_make ( pool ) ; for ( hi = apr_hash_first ( pool , all_tokens ) ; hi ; hi = apr_hash_next ( hi ) ) { const char * url = apr_hash_this_key ( hi ) ; const char * token = apr_hash_this_val ( hi ) ; const char * relpath = svn_uri_skip_ancestor ( base_url , url , pool ) ; if ( relpath ) { svn_hash_sets ( * result , relpath , token ) ; } } return SVN_NO_ERROR ; }
For all lock tokens in ALL_TOKENS for URLs under BASE_URL, add them
to a new hashtable allocated in POOL.
For all lock tokens in ALL_TOKENS for URLs under BASE_URL add them to a new hashtable allocated in POOL .