FreeBSD/contrib/subversion/subversion/libsvn_wc/wc_db_update_move.c
/* Ensure that there is a working copy lock for LOCAL_RELPATH in WCROOT */
Ensure that there is a working copy lock for LOCAL_RELPATH in WCROOT
Ensure that there is a working copy lock for LOCAL_RELPATH in WCROOT
static svn_error_t *
verify_write_lock(svn_wc__db_wcroot_t *wcroot,
                  const char *local_relpath,
                  apr_pool_t *scratch_pool)
{
  svn_boolean_t locked;
  SVN_ERR(svn_wc__db_wclock_owns_lock_internal(&locked, wcroot, local_relpath,
                                               FALSE, scratch_pool));
  if (!locked)
    {
      return svn_error_createf(SVN_ERR_WC_NOT_LOCKED, NULL,
                               _("No write-lock in '%s'"),
                               path_for_error_message(wcroot, local_relpath,
                                                      scratch_pool));
    }
  return SVN_NO_ERROR;
}
static svn_error_t * verify_write_lock ( svn_wc__db_wcroot_t * wcroot , const char * local_relpath , apr_pool_t * scratch_pool ) { svn_boolean_t locked ; SVN_ERR ( svn_wc__db_wclock_owns_lock_internal ( & locked , wcroot , local_relpath , FALSE , scratch_pool ) ) ; if ( ! locked ) { return svn_error_createf ( SVN_ERR_WC_NOT_LOCKED , NULL , _ ( " " ) , path_for_error_message ( wcroot , local_relpath , scratch_pool ) ) ; } return SVN_NO_ERROR ; }
Ensure that there is a working copy lock for LOCAL_RELPATH in WCROOT
Ensure that there is a working copy lock for LOCAL_RELPATH in WCROOT