log.c File Reference

Fetch log information from repository - log command. More...

#include <apr_pools.h>
#include <subversion-1/svn_ra.h>
#include <subversion-1/svn_error.h>
#include <subversion-1/svn_string.h>
#include <subversion-1/svn_time.h>
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
#include <time.h>
#include <fcntl.h>
#include "global.h"
#include "est_ops.h"
#include "waa.h"
#include "url.h"
#include "options.h"
#include "log.h"
#include "update.h"
#include "racallback.h"
#include "helper.h"
Include dependency graph for log.c:

Go to the source code of this file.

Defines

#define MAX_LOG_OUTPUT_LINE   (1024)

Functions

int log___divider (FILE *output, char *color_after)
svn_error_t * log__receiver (void *baton, apr_hash_t *changed_paths, svn_revnum_t revision, const char *author, const char *date, const char *message, apr_pool_t *pool)
 The callback function for log messages.
int log__work (struct estat *root, int argc, char *argv[])
 -.

Variables

static int log___path_prefix_len
static int log___path_skip
static int log___path_parm_len
static char * log___path_prefix
static char * log___path_parm

Detailed Description

Fetch log information from repository - log command.

Definition in file log.c.


Define Documentation

#define MAX_LOG_OUTPUT_LINE   (1024)

Definition at line 71 of file log.c.

Referenced by log__receiver().


Function Documentation

int log___divider ( FILE *  output,
char *  color_after 
)

Definition at line 82 of file log.c.

References ANSI__BLUE, LOG__OPT_COLOR, and OPT__LOG_OUTPUT.

Referenced by log__receiver(), and log__work().

Here is the caller graph for this function:

svn_error_t* log__receiver ( void *  baton,
apr_hash_t *  changed_paths,
svn_revnum_t  revision,
const char *  author,
const char *  date,
const char *  message,
apr_pool_t *  pool 
)

The callback function for log messages.

The header and message body are printed in normal subversion format, possibly with indenting and/or colorizing. The filehandle for output must be given as baton.

The various strings are (?) in UTF-8, so we have to convert them.

Definition at line 100 of file log.c.

References ANSI__GREEN, ANSI__NORMAL, BUG_ON, DEBUGP, hlp__alloc(), hlp__compare_string_pointers(), hlp__strmnalloc(), hlp__utf82local(), IF_FREE, log___divider(), log___path_parm, log___path_parm_len, log___path_prefix, log___path_prefix_len, LOG__OPT_COLOR, LOG__OPT_INDENT, MAX_LOG_OUTPUT_LINE, url_t::name, OPT__LOG_OUTPUT, PATH_SEPARATOR, RETURN_SVNERR, STOPIF, STOPIF_CODE_EPIPE, and STOPIF_CODE_ERR.

Referenced by log__work().

Here is the call graph for this function:

Here is the caller graph for this function:

int log__work ( struct estat root,
int  argc,
char *  argv[] 
)

Variable Documentation

char * log___path_parm [static]

Definition at line 78 of file log.c.

Referenced by log__receiver(), and log__work().

int log___path_parm_len [static]

Definition at line 75 of file log.c.

Referenced by log__receiver(), and log__work().

char* log___path_prefix [static]

Definition at line 78 of file log.c.

Referenced by log__receiver(), and log__work().

int log___path_prefix_len [static]

Definition at line 75 of file log.c.

Referenced by log__receiver(), and log__work().

int log___path_skip [static]

Definition at line 75 of file log.c.

Referenced by log__work().


Generated for fsvs by  doxygen 1.6.1