FreeBSD/contrib/subversion/subversion/svnserve/serve.c
/* Write out a lock to the client. */
Write out a lock to the client.
Write out a lock to the client .
static svn_error_t *write_lock(svn_ra_svn_conn_t *conn,
                               apr_pool_t *pool,
                               const svn_lock_t *lock)
{
  const char *cdate, *edate;
  cdate = svn_time_to_cstring(lock->creation_date, pool);
  edate = lock->expiration_date
    ? svn_time_to_cstring(lock->expiration_date, pool) : NULL;
  SVN_ERR(svn_ra_svn__write_tuple(conn, pool, "ccc(?c)c(?c)", lock->path,
                                  lock->token, lock->owner, lock->comment,
                                  cdate, edate));
  return SVN_NO_ERROR;
}
static svn_error_t * write_lock ( svn_ra_svn_conn_t * conn , apr_pool_t * pool , const svn_lock_t * lock ) { const char * cdate , * edate ; cdate = svn_time_to_cstring ( lock -> creation_date , pool ) ; edate = lock -> expiration_date ? svn_time_to_cstring ( lock -> expiration_date , pool ) : NULL ; SVN_ERR ( svn_ra_svn__write_tuple ( conn , pool , " " , lock -> path , lock -> token , lock -> owner , lock -> comment , cdate , edate ) ) ; return SVN_NO_ERROR ; }
Write out a lock to the client.
Write out a lock to the client .