#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"
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[]) |
-. |
Definition in file log.c.
#define MAX_LOG_OUTPUT_LINE (1024) |
int log___divider | ( | FILE * | output, | |
char * | color_after | |||
) |
Definition at line 74 of file log.c.
References ANSI__BLUE, LOG__OPT_COLOR, and OPT__LOG_OUTPUT.
Referenced by log__receiver(), and log__work().
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 92 of file log.c.
References ANSI__GREEN, ANSI__NORMAL, BUG_ON, DEBUGP, hlp__alloc(), hlp__compare_string_pointers(), hlp__strdup(), hlp__utf82local(), log___divider(), LOG__OPT_COLOR, LOG__OPT_INDENT, MAX_LOG_OUTPUT_LINE, url_t::name, OPT__LOG_OUTPUT, RETURN_SVNERR, STOPIF, STOPIF_CODE_EPIPE, and STOPIF_CODE_ERR.
Referenced by log__work().
int log__work | ( | struct estat * | root, | |
int | argc, | |||
char * | argv[] | |||
) |
-.
Definition at line 243 of file log.c.
References ANSI__NORMAL, BUG, current_url, DEBUGP, global_pool, hlp__rev_to_string(), log___divider(), LOG__OPT_COLOR, log__receiver(), ops__build_path(), ops__traverse(), opt__is_verbose(), OPT__LOG_MAXREV, OPT__LOG_OUTPUT, opt__set_int(), opt_target_revision, opt_target_revision2, opt_target_revisions_given, PRIO_DEFAULT, PRIO_PRE_CMDLINE, url_t::session, STOP_HANDLE_SVNERR, STOPIF, STOPIF_CODE_ERR, STOPIF_SVNERR, url_t::url, estat::url, url__canonical_rev(), url__find_by_name(), url__load_nonempty_list(), url__open_session(), url__parm_list, url__parm_list_used, urllist, urllist_count, waa__find_common_base(), and waa__input_tree().