FreeBSD/contrib/subversion/subversion/libsvn_client/commit.c
/* Put ITEM onto QUEUE, allocating it in QUEUE's pool...
 * If a checksum is provided, it can be the MD5 and/or the SHA1. */
Put ITEM onto QUEUE, allocating it in QUEUE's pool
If a checksum is provided, it can be the MD5 and/or the SHA1.
Put ITEM onto QUEUE allocating it in QUEUE ' s pool If a checksum is provided it can be the MD5 and / or the SHA1 .
static svn_error_t *
post_process_commit_item(svn_wc_committed_queue_t *queue,
                         const svn_client_commit_item3_t *item,
                         svn_wc_context_t *wc_ctx,
                         svn_boolean_t keep_changelists,
                         svn_boolean_t keep_locks,
                         svn_boolean_t commit_as_operations,
                         const svn_checksum_t *sha1_checksum,
                         apr_pool_t *scratch_pool)
{
  svn_boolean_t loop_recurse = FALSE;
  svn_boolean_t remove_lock;
  if (! commit_as_operations
      && (item->state_flags & SVN_CLIENT_COMMIT_ITEM_ADD)
      && (item->kind == svn_node_dir)
      && (item->copyfrom_url))
    loop_recurse = TRUE;
  remove_lock = (! keep_locks && (item->state_flags
                                       & (SVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN
                                          | SVN_CLIENT_COMMIT_ITEM_ADD
                                          | SVN_CLIENT_COMMIT_ITEM_DELETE)));
  if (item->state_flags & SVN_CLIENT_COMMIT_ITEM_DELETE)
    remove_lock = TRUE;
  return svn_error_trace(
         svn_wc_queue_committed4(queue, wc_ctx, item->path,
                                 loop_recurse,
                                 0 != (item->state_flags &
                                       (SVN_CLIENT_COMMIT_ITEM_ADD
                                        | SVN_CLIENT_COMMIT_ITEM_DELETE
                                        | SVN_CLIENT_COMMIT_ITEM_TEXT_MODS
                                        | SVN_CLIENT_COMMIT_ITEM_PROP_MODS)),
                                 item->incoming_prop_changes,
                                 remove_lock, !keep_changelists,
                                 sha1_checksum, scratch_pool));
}
static svn_error_t * post_process_commit_item ( svn_wc_committed_queue_t * queue , const svn_client_commit_item3_t * item , svn_wc_context_t * wc_ctx , svn_boolean_t keep_changelists , svn_boolean_t keep_locks , svn_boolean_t commit_as_operations , const svn_checksum_t * sha1_checksum , apr_pool_t * scratch_pool ) { svn_boolean_t loop_recurse = FALSE ; svn_boolean_t remove_lock ; if ( ! commit_as_operations && ( item -> state_flags & SVN_CLIENT_COMMIT_ITEM_ADD ) && ( item -> kind == svn_node_dir ) && ( item -> copyfrom_url ) ) loop_recurse = TRUE ; remove_lock = ( ! keep_locks && ( item -> state_flags & ( SVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN | SVN_CLIENT_COMMIT_ITEM_ADD | SVN_CLIENT_COMMIT_ITEM_DELETE ) ) ) ; if ( item -> state_flags & SVN_CLIENT_COMMIT_ITEM_DELETE ) remove_lock = TRUE ; return svn_error_trace ( svn_wc_queue_committed4 ( queue , wc_ctx , item -> path , loop_recurse , 0 != ( item -> state_flags & ( SVN_CLIENT_COMMIT_ITEM_ADD | SVN_CLIENT_COMMIT_ITEM_DELETE | SVN_CLIENT_COMMIT_ITEM_TEXT_MODS | SVN_CLIENT_COMMIT_ITEM_PROP_MODS ) ) , item -> incoming_prop_changes , remove_lock , ! keep_changelists , sha1_checksum , scratch_pool ) ) ; }
Put ITEM onto QUEUE, allocating it in QUEUE's pool...
Put ITEM onto QUEUE allocating it in QUEUE ' s pool ...
/* When the node was deleted (or replaced), we need to always remove the
     locks, as they're invalidated on the server. We cannot honor the
     SVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN flag here because it does not tell
     us whether we have locked children. */