]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/subversion/subversion/include/private/svn_log.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / subversion / subversion / include / private / svn_log.h
1 /*
2  * svn_log.h: Functions for assembling entries for server-side logs.
3  *            See also tools/server-side/svn_server_log_parse.py .
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 #ifndef SVN_LOG_H
25 #define SVN_LOG_H
26
27 #include <apr.h>
28 #include <apr_pools.h>
29 #include <apr_tables.h>
30
31 #include "svn_types.h"
32 #include "svn_mergeinfo.h"
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37
38 /**
39  * Return a log string for a reparent action.
40  *
41  * @since New in 1.6.
42  */
43 const char *
44 svn_log__reparent(const char *path, apr_pool_t *pool);
45
46 /**
47  * Return a log string for a change-rev-prop action.
48  *
49  * @since New in 1.6.
50  */
51 const char *
52 svn_log__change_rev_prop(svn_revnum_t rev, const char *name, apr_pool_t *pool);
53
54 /**
55  * Return a log string for a rev-proplist action.
56  *
57  * @since New in 1.6.
58  */
59 const char *
60 svn_log__rev_proplist(svn_revnum_t rev, apr_pool_t *pool);
61
62 /**
63  * Return a log string for a rev-prop action.
64  *
65  * @since New in 1.6.
66  */
67 const char *
68 svn_log__rev_prop(svn_revnum_t rev, const char *name, apr_pool_t *pool);
69
70 /**
71  * Return a log string for a commit action.
72  *
73  * @since New in 1.6.
74  */
75 const char *
76 svn_log__commit(svn_revnum_t rev, apr_pool_t *pool);
77
78 /**
79  * Return a log string for a get-file action.
80  *
81  * @since New in 1.6.
82  */
83 const char *
84 svn_log__get_file(const char *path, svn_revnum_t rev,
85                   svn_boolean_t want_contents, svn_boolean_t want_props,
86                   apr_pool_t *pool);
87
88 /**
89  * Return a log string for a get-dir action.
90  *
91  * @since New in 1.6.
92  */
93 const char *
94 svn_log__get_dir(const char *path, svn_revnum_t rev,
95                  svn_boolean_t want_contents, svn_boolean_t want_props,
96                  apr_uint64_t dirent_fields,
97                  apr_pool_t *pool);
98
99 /**
100  * Return a log string for a get-mergeinfo action.
101  *
102  * @since New in 1.6.
103  */
104 const char *
105 svn_log__get_mergeinfo(const apr_array_header_t *paths,
106                        svn_mergeinfo_inheritance_t inherit,
107                        svn_boolean_t include_descendants,
108                        apr_pool_t *pool);
109
110 /**
111  * Return a log string for a checkout action.
112  *
113  * @since New in 1.6.
114  */
115 const char *
116 svn_log__checkout(const char *path, svn_revnum_t rev, svn_depth_t depth,
117                   apr_pool_t *pool);
118
119 /**
120  * Return a log string for an update action.
121  *
122  * @since New in 1.6.
123  */
124 const char *
125 svn_log__update(const char *path, svn_revnum_t rev, svn_depth_t depth,
126                 svn_boolean_t send_copyfrom_args,
127                 apr_pool_t *pool);
128
129 /**
130  * Return a log string for a switch action.
131  *
132  * @since New in 1.6.
133  */
134 const char *
135 svn_log__switch(const char *path, const char *dst_path, svn_revnum_t revnum,
136                 svn_depth_t depth, apr_pool_t *pool);
137
138 /**
139  * Return a log string for a status action.
140  *
141  * @since New in 1.6.
142  */
143 const char *
144 svn_log__status(const char *path, svn_revnum_t rev, svn_depth_t depth,
145                 apr_pool_t *pool);
146
147 /**
148  * Return a log string for a diff action.
149  *
150  * @since New in 1.6.
151  */
152 const char *
153 svn_log__diff(const char *path, svn_revnum_t from_revnum,
154               const char *dst_path, svn_revnum_t revnum,
155               svn_depth_t depth, svn_boolean_t ignore_ancestry,
156               apr_pool_t *pool);
157
158 /**
159  * Return a log string for a log action.
160  *
161  * @since New in 1.6.
162  */
163 const char *
164 svn_log__log(const apr_array_header_t *paths,
165              svn_revnum_t start, svn_revnum_t end,
166              int limit, svn_boolean_t discover_changed_paths,
167              svn_boolean_t strict_node_history,
168              svn_boolean_t include_merged_revisions,
169              const apr_array_header_t *revprops, apr_pool_t *pool);
170
171 /**
172  * Return a log string for a get-locations action.
173  *
174  * @since New in 1.6.
175  */
176 const char *
177 svn_log__get_locations(const char *path, svn_revnum_t peg_revision,
178                        const apr_array_header_t *location_revisions,
179                        apr_pool_t *pool);
180
181 /**
182  * Return a log string for a get-location-segments action.
183  *
184  * @since New in 1.6.
185  */
186 const char *
187 svn_log__get_location_segments(const char *path, svn_revnum_t peg_revision,
188                                svn_revnum_t start, svn_revnum_t end,
189                                apr_pool_t *pool);
190
191 /**
192  * Return a log string for a get-file-revs action.
193  *
194  * @since New in 1.6.
195  */
196 const char *
197 svn_log__get_file_revs(const char *path, svn_revnum_t start, svn_revnum_t end,
198                        svn_boolean_t include_merged_revisions,
199                        apr_pool_t *pool);
200
201 /**
202  * Return a log string for a lock action.
203  *
204  * @since New in 1.6.
205  */
206 const char *
207 svn_log__lock(const apr_array_header_t *paths, svn_boolean_t steal,
208               apr_pool_t *pool);
209
210 /**
211  * Return a log string for an unlock action.
212  *
213  * @since New in 1.6.
214  */
215 const char *
216 svn_log__unlock(const apr_array_header_t *paths, svn_boolean_t break_lock,
217                 apr_pool_t *pool);
218
219 /**
220  * Return a log string for a lock action on only one path; this is
221  * just a convenience wrapper around svn_log__lock().
222  *
223  * @since New in 1.6.
224  */
225 const char *
226 svn_log__lock_one_path(const char *path, svn_boolean_t steal,
227                        apr_pool_t *pool);
228
229 /**
230  * Return a log string for an unlock action on only one path; this is
231  * just a convenience wrapper around svn_log__unlock().
232  *
233  * @since New in 1.6.
234  */
235 const char *
236 svn_log__unlock_one_path(const char *path, svn_boolean_t break_lock,
237                          apr_pool_t *pool);
238
239 /**
240  * Return a log string for a replay action.
241  *
242  * @since New in 1.6.
243  */
244 const char *
245 svn_log__replay(const char *path, svn_revnum_t rev, apr_pool_t *pool);
246
247 /**
248  * Return a log string for a get-inherited-props action.
249  *
250  * @since New in 1.8.
251  */
252 const char *
253 svn_log__get_inherited_props(const char *path,
254                              svn_revnum_t rev,
255                              apr_pool_t *pool);
256 #ifdef __cplusplus
257 }
258 #endif /* __cplusplus */
259
260 #endif /* SVN_LOG_H */