~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/svn/cl-log.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * cl-log.h: Log entry receiver
 
3
 *
 
4
 * ====================================================================
 
5
 *    Licensed to the Apache Software Foundation (ASF) under one
 
6
 *    or more contributor license agreements.  See the NOTICE file
 
7
 *    distributed with this work for additional information
 
8
 *    regarding copyright ownership.  The ASF licenses this file
 
9
 *    to you under the Apache License, Version 2.0 (the
 
10
 *    "License"); you may not use this file except in compliance
 
11
 *    with the License.  You may obtain a copy of the License at
 
12
 *
 
13
 *      http://www.apache.org/licenses/LICENSE-2.0
 
14
 *
 
15
 *    Unless required by applicable law or agreed to in writing,
 
16
 *    software distributed under the License is distributed on an
 
17
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
18
 *    KIND, either express or implied.  See the License for the
 
19
 *    specific language governing permissions and limitations
 
20
 *    under the License.
 
21
 * ====================================================================
 
22
 */
 
23
 
 
24
 
 
25
 
 
26
#ifndef SVN_CL_LOG_H
 
27
#define SVN_CL_LOG_H
 
28
 
 
29
/*** Includes. ***/
 
30
#include <apr_pools.h>
 
31
 
 
32
#include "svn_types.h"
 
33
 
 
34
#ifdef __cplusplus
 
35
extern "C" {
 
36
#endif /* __cplusplus */
 
37
 
 
38
 
 
39
 
 
40
/* The separator between log messages. */
 
41
#define SVN_CL__LOG_SEP_STRING \
 
42
  "------------------------------------------------------------------------\n"
 
43
 
 
44
/* Baton for log_entry_receiver() and log_entry_receiver_xml(). */
 
45
typedef struct svn_cl__log_receiver_baton
 
46
{
 
47
  /* Client context. */
 
48
  svn_client_ctx_t *ctx;
 
49
 
 
50
  /* The target of the log operation. */
 
51
  const char *target_path_or_url;
 
52
  svn_opt_revision_t target_peg_revision;
 
53
 
 
54
  /* Don't print log message body nor its line count. */
 
55
  svn_boolean_t omit_log_message;
 
56
 
 
57
  /* Whether to show diffs in the log. (maps to --diff) */
 
58
  svn_boolean_t show_diff;
 
59
 
 
60
  /* Depth applied to diff output. */
 
61
  svn_depth_t depth;
 
62
 
 
63
  /* Diff arguments received from command line. */
 
64
  const char *diff_extensions;
 
65
 
 
66
  /* Stack which keeps track of merge revision nesting, using svn_revnum_t's */
 
67
  apr_array_header_t *merge_stack;
 
68
 
 
69
  /* Log message search patterns. Log entries will only be shown if the author,
 
70
   * the log message, or a changed path matches one of these patterns. */
 
71
  apr_array_header_t *search_patterns;
 
72
 
 
73
  /* Pool for persistent allocations. */
 
74
  apr_pool_t *pool;
 
75
} svn_cl__log_receiver_baton;
 
76
 
 
77
/* Implement `svn_log_entry_receiver_t', printing the logs in
 
78
 * a human-readable and machine-parseable format.
 
79
 *
 
80
 * BATON is of type `struct svn_cl__log_receiver_baton'.
 
81
 *
 
82
 * First, print a header line.  Then if CHANGED_PATHS is non-null,
 
83
 * print all affected paths in a list headed "Changed paths:\n",
 
84
 * immediately following the header line.  Then print a newline
 
85
 * followed by the message body, unless BATON->omit_log_message is true.
 
86
 */
 
87
svn_error_t *
 
88
svn_cl__log_entry_receiver(void *baton,
 
89
                           svn_log_entry_t *log_entry,
 
90
                           apr_pool_t *pool);
 
91
 
 
92
/* This implements `svn_log_entry_receiver_t', printing the logs in XML.
 
93
 *
 
94
 * BATON is of type `struct svn_cl__log_receiver_baton'.
 
95
 */
 
96
svn_error_t *
 
97
svn_cl__log_entry_receiver_xml(void *baton,
 
98
                               svn_log_entry_t *log_entry,
 
99
                               apr_pool_t *pool);
 
100
 
 
101
#ifdef __cplusplus
 
102
}
 
103
#endif /* __cplusplus */
 
104
 
 
105
#endif /* SVN_CL_LOG_H */