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"
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 |
Fetch log information from repository - log command.
Definition in file log.c.
#define MAX_LOG_OUTPUT_LINE (1024) |
Definition at line 71 of file log.c.
Referenced by log__receiver().
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().
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().
int log__work | ( | struct estat * | root, | |
int | argc, | |||
char * | argv[] | |||
) |
-.
Definition at line 279 of file log.c.
References ANSI__NORMAL, BUG, current_url, DEBUGP, global_pool, hlp__rev_to_string(), hlp__strmnalloc(), hlp__strnalloc(), log___divider(), log___path_parm, log___path_parm_len, log___path_prefix, log___path_prefix_len, log___path_skip, 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, estat::parent, 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, url_t::urllen, urllist, urllist_count, waa__find_common_base(), and waa__input_tree().
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().