Subversion
svn_ra.h
Go to the documentation of this file.
1 /**
2  * @copyright
3  * ====================================================================
4  * Licensed to the Apache Software Foundation (ASF) under one
5  * or more contributor license agreements. See the NOTICE file
6  * distributed with this work for additional information
7  * regarding copyright ownership. The ASF licenses this file
8  * to you under the Apache License, Version 2.0 (the
9  * "License"); you may not use this file except in compliance
10  * with the License. You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing,
15  * software distributed under the License is distributed on an
16  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17  * KIND, either express or implied. See the License for the
18  * specific language governing permissions and limitations
19  * under the License.
20  * ====================================================================
21  * @endcopyright
22  *
23  * @file svn_ra.h
24  * @brief Repository Access
25  */
26 
27 #ifndef SVN_RA_H
28 #define SVN_RA_H
29 
30 #include <apr.h>
31 #include <apr_pools.h>
32 #include <apr_hash.h>
33 #include <apr_tables.h>
34 #include <apr_time.h>
35 #include <apr_file_io.h> /* for apr_file_t */
36 
37 #include "svn_types.h"
38 #include "svn_string.h"
39 #include "svn_delta.h"
40 #include "svn_auth.h"
41 #include "svn_mergeinfo.h"
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif /* __cplusplus */
46 
47 
48 
49 /* Misc. declarations */
50 
51 /**
52  * Get libsvn_ra version information.
53  *
54  * @since New in 1.1.
55  */
56 const svn_version_t *
57 svn_ra_version(void);
58 
59 
60 /** This is a function type which allows the RA layer to fetch working
61  * copy (WC) properties.
62  *
63  * The @a baton is provided along with the function pointer and should
64  * be passed back in. This will be the @a callback_baton or the
65  * @a close_baton as appropriate.
66  *
67  * @a path is relative to the "root" of the session, defined by the
68  * @a repos_URL passed to svn_ra_open4() vtable call.
69  *
70  * @a name is the name of the property to fetch. If the property is present,
71  * then it is returned in @a value. Otherwise, @a *value is set to @c NULL.
72  */
73 typedef svn_error_t *(*svn_ra_get_wc_prop_func_t)(void *baton,
74  const char *path,
75  const char *name,
76  const svn_string_t **value,
77  apr_pool_t *pool);
78 
79 /** This is a function type which allows the RA layer to store new
80  * working copy properties during update-like operations. See the
81  * comments for @c svn_ra_get_wc_prop_func_t for @a baton, @a path, and
82  * @a name. The @a value is the value that will be stored for the property;
83  * a NULL @a value means the property will be deleted.
84  */
85 typedef svn_error_t *(*svn_ra_set_wc_prop_func_t)(void *baton,
86  const char *path,
87  const char *name,
88  const svn_string_t *value,
89  apr_pool_t *pool);
90 
91 /** This is a function type which allows the RA layer to store new
92  * working copy properties as part of a commit. See the comments for
93  * @c svn_ra_get_wc_prop_func_t for @a baton, @a path, and @a name.
94  * The @a value is the value that will be stored for the property; a
95  * @c NULL @a value means the property will be deleted.
96  *
97  * Note that this might not actually store the new property before
98  * returning, but instead schedule it to be changed as part of
99  * post-commit processing (in which case a successful commit means the
100  * properties got written). Thus, during the commit, it is possible
101  * to invoke this function to set a new value for a wc prop, then read
102  * the wc prop back from the working copy and get the *old* value.
103  * Callers beware.
104  */
105 typedef svn_error_t *(*svn_ra_push_wc_prop_func_t)(void *baton,
106  const char *path,
107  const char *name,
108  const svn_string_t *value,
109  apr_pool_t *pool);
110 
111 /** This is a function type which allows the RA layer to invalidate
112  * (i.e., remove) wcprops recursively. See the documentation for
113  * @c svn_ra_get_wc_prop_func_t for @a baton, @a path, and @a name.
114  *
115  * Unlike @c svn_ra_push_wc_prop_func_t, this has immediate effect. If
116  * it returns success, the wcprops have been removed.
117  */
118 typedef svn_error_t *(*svn_ra_invalidate_wc_props_func_t)(void *baton,
119  const char *path,
120  const char *name,
121  apr_pool_t *pool);
122 
123 /** This is a function type which allows the RA layer to fetch the
124  * cached pristine file contents whose checksum is @a checksum, if
125  * any. @a *contents will be a read stream containing those contents
126  * if they are found; NULL otherwise.
127  *
128  * @since New in 1.8.
129  */
130 typedef svn_error_t *
131 (*svn_ra_get_wc_contents_func_t)(void *baton,
132  svn_stream_t **contents,
133  const svn_checksum_t *checksum,
134  apr_pool_t *pool);
135 
136 
137 /** A function type for retrieving the youngest revision from a repos.
138  * @deprecated Provided for backward compatibility with the 1.8 API.
139  */
140 /* ### It seems this type was never used by the API, since 1.0.0. */
141 typedef svn_error_t *(*svn_ra_get_latest_revnum_func_t)(
142  void *session_baton,
143  svn_revnum_t *latest_revnum);
144 
145 /** A function type which allows the RA layer to ask about any
146  * customizations to the client name string. This is primarily used
147  * by HTTP-based RA layers wishing to extend the string reported to
148  * Apache/mod_dav_svn via the User-agent HTTP header.
149  *
150  * @since New in 1.5.
151  */
152 typedef svn_error_t *(*svn_ra_get_client_string_func_t)(void *baton,
153  const char **name,
154  apr_pool_t *pool);
155 
156 
157 
158 /**
159  * A callback function type for use in @c get_file_revs.
160  * @a baton is provided by the caller, @a path is the pathname of the file
161  * in revision @a rev and @a rev_props are the revision properties.
162  * If @a delta_handler and @a delta_baton are non-NULL, they may be set to a
163  * handler/baton which will be called with the delta between the previous
164  * revision and this one after the return of this callback. They may be
165  * left as NULL/NULL.
166  * @a prop_diffs is an array of svn_prop_t elements indicating the property
167  * delta for this and the previous revision.
168  * @a pool may be used for temporary allocations, but you can't rely
169  * on objects allocated to live outside of this particular call and the
170  * immediately following calls to @a *delta_handler, if any.
171  *
172  * @since New in 1.1.
173  */
174 typedef svn_error_t *(*svn_ra_file_rev_handler_t)(
175  void *baton,
176  const char *path,
177  svn_revnum_t rev,
178  apr_hash_t *rev_props,
179  svn_txdelta_window_handler_t *delta_handler,
180  void **delta_baton,
181  apr_array_header_t *prop_diffs,
182  apr_pool_t *pool);
183 
184 /**
185  * Callback function type for locking and unlocking actions.
186  *
187  * @since New in 1.2.
188  *
189  * @a do_lock is TRUE when locking @a path, and FALSE
190  * otherwise.
191  *
192  * @a lock is a lock for @a path or NULL if @a do_lock is FALSE or @a ra_err is
193  * non-NULL.
194  *
195  * @a ra_err is NULL unless the ra layer encounters a locking related
196  * error which it passes back for notification purposes. The caller
197  * is responsible for clearing @a ra_err after the callback is run.
198  *
199  * @a baton is a closure object; it should be provided by the
200  * implementation, and passed by the caller. @a pool may be used for
201  * temporary allocation.
202  */
203 typedef svn_error_t *(*svn_ra_lock_callback_t)(void *baton,
204  const char *path,
205  svn_boolean_t do_lock,
206  const svn_lock_t *lock,
207  svn_error_t *ra_err,
208  apr_pool_t *pool);
209 
210 /**
211  * Callback function type for progress notification.
212  *
213  * @a progress is the number of bytes already transferred, @a total is
214  * the total number of bytes to transfer or -1 if it's not known, @a
215  * baton is the callback baton.
216  *
217  * @since New in 1.3.
218  */
219 typedef void (*svn_ra_progress_notify_func_t)(apr_off_t progress,
220  apr_off_t total,
221  void *baton,
222  apr_pool_t *pool);
223 
224 /**
225  * Callback function type for replay_range actions.
226  *
227  * This callback function should provide replay_range with an editor which
228  * will be driven with the received replay reports from the master repository.
229  *
230  * @a revision is the target revision number of the received replay report.
231  *
232  * @a *editor and @a *edit_baton should provided by the callback implementation.
233  *
234  * @a replay_baton is the baton as originally passed to replay_range.
235  *
236  * @a revprops contains key/value pairs for each revision properties for this
237  * revision.
238  *
239  * @since New in 1.5.
240  */
241 typedef svn_error_t *(*svn_ra_replay_revstart_callback_t)(
242  svn_revnum_t revision,
243  void *replay_baton,
244  const svn_delta_editor_t **editor,
245  void **edit_baton,
246  apr_hash_t *rev_props,
247  apr_pool_t *pool);
248 
249 /**
250  * Callback function type for replay_range actions.
251  *
252  * This callback function should close the editor.
253  *
254  * @a revision is the target revision number of the received replay report.
255  *
256  * @a editor and @a edit_baton are the values provided by the REVSTART callback.
257  *
258  * @a replay_baton is the baton as originally passed to replay_range.
259  *
260  * @a revprops contains key/value pairs for each revision properties for this
261  * revision.
262  *
263  * @since New in 1.5.
264  */
265 typedef svn_error_t *(*svn_ra_replay_revfinish_callback_t)(
266  svn_revnum_t revision,
267  void *replay_baton,
268  const svn_delta_editor_t *editor,
269  void *edit_baton,
270  apr_hash_t *rev_props,
271  apr_pool_t *pool);
272 
273 
274 /**
275  * Callback function that checks if an ra_svn tunnel called
276  * @a tunnel_name is handled by the callbakcs or the default
277  * implementation.
278  *
279  * @a tunnel_baton is the baton as originally passed to ra_open.
280  *
281  * @since New in 1.9.
282  */
284  void *tunnel_baton, const char *tunnel_name);
285 
286 /**
287  * Callback function for closing a tunnel in ra_svn.
288  *
289  * This function will be called when the pool that owns the tunnel
290  * connection is cleared or destroyed.
291  *
292  * @a close_baton is the baton as returned from the
293  * svn_ra_open_tunnel_func_t.
294  *
295  * @a tunnel_baton was returned by the open-tunnel callback.
296  *
297  * @since New in 1.9.
298  */
300  void *close_baton, void *tunnel_baton);
301 
302 /**
303  * Callback function for opening a tunnel in ra_svn.
304  *
305  * Given the @a tunnel_name, tunnel @a user and server @a hostname and
306  * @a port, open a tunnel to the server and return its file handles,
307  * which are owned by @a pool, in @a request and @a response.
308  *
309  * @a request and @a response represent the standard input and output,
310  * respectively, of the process on the other end of the tunnel.
311  *
312  * If @a *close_func is set it will be called with @a close_baton when
313  * the tunnel is closed.
314  *
315  * The optional @a cancel_func callback can be invoked as usual to allow
316  * the user to preempt potentially lengthy operations.
317  *
318  * @a tunnel_baton is the baton as set in the callbacks.
319  *
320  * @since New in 1.9.
321  */
322 typedef svn_error_t *(*svn_ra_open_tunnel_func_t)(
323  svn_stream_t **request, svn_stream_t **response,
324  svn_ra_close_tunnel_func_t *close_func, void **close_baton,
325  void *tunnel_baton,
326  const char *tunnel_name, const char *user,
327  const char *hostname, int port,
328  svn_cancel_func_t cancel_func, void *cancel_baton,
329  apr_pool_t *pool);
330 
331 
332 /**
333  * The update Reporter.
334  *
335  * A vtable structure which allows a working copy to describe a subset
336  * (or possibly all) of its working-copy to an RA layer, for the
337  * purposes of an update, switch, status, or diff operation.
338  *
339  * Paths for report calls are relative to the target (not the anchor)
340  * of the operation. Report calls must be made in depth-first order:
341  * parents before children, all children of a parent before any
342  * siblings of the parent. The first report call must be a set_path
343  * with a @a path argument of "" and a valid revision. (If the target
344  * of the operation is locally deleted or missing, use the anchor's
345  * revision.) If the target of the operation is deleted or switched
346  * relative to the anchor, follow up the initial set_path call with a
347  * link_path or delete_path call with a @a path argument of "" to
348  * indicate that. In no other case may there be two report
349  * descriptions for the same path. If the target of the operation is
350  * a locally added file or directory (which previously did not exist),
351  * it may be reported as having revision 0 or as having the parent
352  * directory's revision.
353  *
354  * @since New in 1.5.
355  */
356 typedef struct svn_ra_reporter3_t
357 {
358  /** Describe a working copy @a path as being at a particular
359  * @a revision and having depth @a depth.
360  *
361  * @a revision may be SVN_INVALID_REVNUM if (for example) @a path
362  * represents a locally-added path with no revision number, or @a
363  * depth is @c svn_depth_exclude.
364  *
365  * @a path may not be underneath a path on which set_path() was
366  * previously called with @c svn_depth_exclude in this report.
367  *
368  * If @a start_empty is set and @a path is a directory, the
369  * implementor should assume the directory has no entries or props.
370  *
371  * This will *override* any previous set_path() calls made on parent
372  * paths. @a path is relative to the URL specified in svn_ra_open4().
373  *
374  * If @a lock_token is non-NULL, it is the lock token for @a path in the WC.
375  *
376  * All temporary allocations are done in @a pool.
377  */
378  svn_error_t *(*set_path)(void *report_baton,
379  const char *path,
380  svn_revnum_t revision,
381  svn_depth_t depth,
382  svn_boolean_t start_empty,
383  const char *lock_token,
384  apr_pool_t *pool);
385 
386  /** Describing a working copy @a path as missing.
387  *
388  * @a path may not be underneath a path on which set_path() was
389  * previously called with @c svn_depth_exclude in this report.
390  *
391  * All temporary allocations are done in @a pool.
392  */
393  svn_error_t *(*delete_path)(void *report_baton,
394  const char *path,
395  apr_pool_t *pool);
396 
397  /** Like set_path(), but differs in that @a path in the working copy
398  * (relative to the root of the report driver) isn't a reflection of
399  * @a path in the repository (relative to the URL specified when
400  * opening the RA layer), but is instead a reflection of a different
401  * repository @a url at @a revision, and has depth @a depth.
402  *
403  * @a path may not be underneath a path on which set_path() was
404  * previously called with @c svn_depth_exclude in this report.
405  *
406  * If @a start_empty is set and @a path is a directory,
407  * the implementor should assume the directory has no entries or props.
408  *
409  * If @a lock_token is non-NULL, it is the lock token for @a path in the WC.
410  *
411  * All temporary allocations are done in @a pool.
412  */
413  svn_error_t *(*link_path)(void *report_baton,
414  const char *path,
415  const char *url,
416  svn_revnum_t revision,
417  svn_depth_t depth,
418  svn_boolean_t start_empty,
419  const char *lock_token,
420  apr_pool_t *pool);
421 
422  /** WC calls this when the state report is finished; any directories
423  * or files not explicitly `set' are assumed to be at the
424  * baseline revision originally passed into do_update(). No other
425  * reporting functions, including abort_report, should be called after
426  * calling this function.
427  */
428  svn_error_t *(*finish_report)(void *report_baton,
429  apr_pool_t *pool);
430 
431  /** If an error occurs during a report, this routine should cause the
432  * filesystem transaction to be aborted & cleaned up. No other reporting
433  * functions should be called after calling this function.
434  */
435  svn_error_t *(*abort_report)(void *report_baton,
436  apr_pool_t *pool);
437 
439 
440 /**
441  * Similar to @c svn_ra_reporter3_t, but without support for depths.
442  *
443  * @deprecated Provided for backward compatibility with the 1.4 API.
444  */
445 typedef struct svn_ra_reporter2_t
446 {
447  /** Similar to the corresponding field in @c svn_ra_reporter3_t, but
448  * with @a depth always set to @c svn_depth_infinity. */
449  svn_error_t *(*set_path)(void *report_baton,
450  const char *path,
451  svn_revnum_t revision,
452  svn_boolean_t start_empty,
453  const char *lock_token,
454  apr_pool_t *pool);
455 
456  /** Same as the corresponding field in @c svn_ra_reporter3_t. */
457  svn_error_t *(*delete_path)(void *report_baton,
458  const char *path,
459  apr_pool_t *pool);
460 
461  /** Similar to the corresponding field in @c svn_ra_reporter3_t, but
462  * with @a depth always set to @c svn_depth_infinity. */
463  svn_error_t *(*link_path)(void *report_baton,
464  const char *path,
465  const char *url,
466  svn_revnum_t revision,
467  svn_boolean_t start_empty,
468  const char *lock_token,
469  apr_pool_t *pool);
470 
471  /** Same as the corresponding field in @c svn_ra_reporter3_t. */
472  svn_error_t *(*finish_report)(void *report_baton,
473  apr_pool_t *pool);
474 
475  /** Same as the corresponding field in @c svn_ra_reporter3_t. */
476  svn_error_t *(*abort_report)(void *report_baton,
477  apr_pool_t *pool);
478 
480 
481 /**
482  * Similar to @c svn_ra_reporter2_t, but without support for lock tokens.
483  *
484  * @deprecated Provided for backward compatibility with the 1.1 API.
485  */
486 typedef struct svn_ra_reporter_t
487 {
488  /** Similar to the corresponding field in @c svn_ra_reporter2_t, but
489  * with @a lock_token always set to NULL. */
490  svn_error_t *(*set_path)(void *report_baton,
491  const char *path,
492  svn_revnum_t revision,
493  svn_boolean_t start_empty,
494  apr_pool_t *pool);
495 
496  /** Same as the corresponding field in @c svn_ra_reporter2_t. */
497  svn_error_t *(*delete_path)(void *report_baton,
498  const char *path,
499  apr_pool_t *pool);
500 
501  /** Similar to the corresponding field in @c svn_ra_reporter2_t, but
502  * with @a lock_token always set to NULL. */
503  svn_error_t *(*link_path)(void *report_baton,
504  const char *path,
505  const char *url,
506  svn_revnum_t revision,
507  svn_boolean_t start_empty,
508  apr_pool_t *pool);
509 
510  /** Same as the corresponding field in @c svn_ra_reporter2_t. */
511  svn_error_t *(*finish_report)(void *report_baton,
512  apr_pool_t *pool);
513 
514  /** Same as the corresponding field in @c svn_ra_reporter2_t. */
515  svn_error_t *(*abort_report)(void *report_baton,
516  apr_pool_t *pool);
518 
519 
520 /** A collection of callbacks implemented by libsvn_client which allows
521  * an RA layer to "pull" information from the client application, or
522  * possibly store information. libsvn_client passes this vtable to
523  * svn_ra_open4().
524  *
525  * Each routine takes a @a callback_baton originally provided with the
526  * vtable.
527  *
528  * Clients must use svn_ra_create_callbacks() to allocate and
529  * initialize this structure.
530  *
531  * @since New in 1.3.
532  */
533 typedef struct svn_ra_callbacks2_t
534 {
535  /** Open a unique temporary file for writing in the working copy.
536  * This file will be automatically deleted when @a fp is closed.
537  *
538  * @deprecated This callback should no longer be used by RA layers.
539  */
540  svn_error_t *(*open_tmp_file)(apr_file_t **fp,
541  void *callback_baton,
542  apr_pool_t *pool);
543 
544  /** An authentication baton, created by the application, which is
545  * capable of retrieving all known types of credentials.
546  */
548 
549  /*** The following items may be set to NULL to disallow the RA layer
550  to perform the respective operations of the vtable functions.
551  Perhaps WC props are not defined or are in invalid for this
552  session, or perhaps the commit operation this RA session will
553  perform is a server-side only one that shouldn't do post-commit
554  processing on a working copy path. ***/
555 
556  /** Fetch working copy properties.
557  *
558  * @note we might have a problem if the RA layer ever wants a property
559  * that corresponds to a different revision of the file than
560  * what is in the WC. we'll cross that bridge one day...
561  */
563 
564  /** Immediately set new values for working copy properties. */
566 
567  /** Schedule new values for working copy properties. */
569 
570  /** Invalidate working copy properties. */
572 
573  /** Notification callback used for progress information.
574  * May be NULL if not used.
575  */
577 
578  /** Notification callback baton, used with progress_func. */
580 
581  /** Cancellation function
582  *
583  * As its baton, the general callback baton is used
584  *
585  * @since New in 1.5
586  */
588 
589  /** Client string customization callback function
590  * @since New in 1.5
591  */
593 
594  /** Working copy file content fetching function.
595  * @since New in 1.8.
596  */
598 
599  /** Check-tunnel callback
600  *
601  * If not @c NULL, and open_tunnel_func is also not @c NULL, this
602  * callback will be invoked to check if open_tunnel_func should be
603  * used to create a specific tunnel, or if the default tunnel
604  * implementation (either built-in or configured in the client
605  * configuration file) should be used instead.
606  * @since New in 1.9.
607  */
609 
610  /** Open-tunnel callback
611  *
612  * If not @c NULL, this callback will be invoked to create a tunnel
613  * for a ra_svn connection that needs one, overriding any tunnel
614  * definitions in the client config file. This callback is used only
615  * for ra_svn and ignored by the other RA modules.
616  * @since New in 1.9.
617  */
619 
620  /** A baton used with open_tunnel_func and close_tunnel_func.
621  * @since New in 1.9.
622  */
625 
626 /** Similar to svn_ra_callbacks2_t, except that the progress
627  * notification function and baton is missing.
628  *
629  * @deprecated Provided for backward compatibility with the 1.2 API.
630  */
631 typedef struct svn_ra_callbacks_t
632 {
633  svn_error_t *(*open_tmp_file)(apr_file_t **fp,
634  void *callback_baton,
635  apr_pool_t *pool);
636 
637  svn_auth_baton_t *auth_baton;
638 
639  svn_ra_get_wc_prop_func_t get_wc_prop;
640 
641  svn_ra_set_wc_prop_func_t set_wc_prop;
642 
643  svn_ra_push_wc_prop_func_t push_wc_prop;
644 
645  svn_ra_invalidate_wc_props_func_t invalidate_wc_props;
646 
648 
649 
650 
651 /*----------------------------------------------------------------------*/
652 
653 /* Public Interfaces. */
654 
655 /**
656  * Initialize the RA library. This function must be called before using
657  * any function in this header, except the deprecated APIs based on
658  * @c svn_ra_plugin_t, or svn_ra_version(). This function must not be called
659  * simultaneously in multiple threads. @a pool must live
660  * longer than any open RA sessions.
661  *
662  * @since New in 1.2.
663  */
664 svn_error_t *
665 svn_ra_initialize(apr_pool_t *pool);
666 
667 /** Initialize a callback structure.
668 * Set @a *callbacks to a ra callbacks object, allocated in @a pool.
669 *
670 * Clients must use this function to allocate and initialize @c
671 * svn_ra_callbacks2_t structures.
672 *
673 * @since New in 1.3.
674 */
675 svn_error_t *
677  apr_pool_t *pool);
678 
679 /**
680  * A repository access session. This object is used to perform requests
681  * to a repository, identified by a URL.
682  *
683  * @since New in 1.2.
684  */
686 
687 /**
688  * Open a repository access session to the repository at @a repos_URL,
689  * or inform the caller regarding a correct URL by which to access
690  * that repository.
691  *
692  * If @a repos_URL can be used successfully to access the repository,
693  * set @a *session_p to an opaque object representing a repository
694  * session for the repository and (if @a corrected_url is non-NULL)
695  * set @a *corrected_url to NULL. If there's a better URL that the
696  * caller should try and @a corrected_url is non-NULL, set
697  * @a *session_p to NULL and @a *corrected_url to the corrected URL. If
698  * there's a better URL that the caller should try, and @a
699  * corrected_url is NULL, return an #SVN_ERR_RA_SESSION_URL_MISMATCH
700  * error. Allocate all returned items in @a pool.
701  *
702  * The @a repos_URL need not point to the root of the repository: subject
703  * to authorization, it may point to any path within the repository, even
704  * a path at which no node exists in the repository. The session will
705  * remember this URL as its "session URL" (also called "session root URL"),
706  * until changed by svn_ra_reparent(). Many RA functions take or return
707  * paths that are relative to the session URL.
708  *
709  * If a @a corrected_url is returned, it will point to the same path
710  * within the new repository root URL that @a repos_URL pointed to within
711  * the old repository root URL.
712  *
713  * Return @c SVN_ERR_RA_UUID_MISMATCH if @a uuid is non-NULL and not equal
714  * to the UUID of the repository at @c repos_URL.
715  *
716  * @a callbacks/@a callback_baton is a table of callbacks provided by the
717  * client; see @c svn_ra_callbacks2_t.
718  *
719  * @a config is a hash mapping <tt>const char *</tt> keys to
720  * @c svn_config_t * values. For example, the @c svn_config_t for the
721  * "~/.subversion/config" file is under the key "config". @a config may
722  * be NULL. This function examines some config settings under the
723  * "servers" key (if present) before loading the required RA module, and
724  * the RA module may also examine any config settings.
725  *
726  * All RA requests require a session; they will continue to
727  * use @a pool for memory allocation.
728  *
729  * @see svn_client_open_ra_session().
730  *
731  * @since New in 1.7.
732  */
733 svn_error_t *
734 svn_ra_open4(svn_ra_session_t **session_p,
735  const char **corrected_url,
736  const char *repos_URL,
737  const char *uuid,
738  const svn_ra_callbacks2_t *callbacks,
739  void *callback_baton,
740  apr_hash_t *config,
741  apr_pool_t *pool);
742 
743 /** Similar to svn_ra_open4(), but with @a corrected_url always passed
744  * as @c NULL.
745  *
746  * @since New in 1.5.
747  * @deprecated Provided for backward compatibility with the 1.6 API.
748  */
750 svn_error_t *
751 svn_ra_open3(svn_ra_session_t **session_p,
752  const char *repos_URL,
753  const char *uuid,
754  const svn_ra_callbacks2_t *callbacks,
755  void *callback_baton,
756  apr_hash_t *config,
757  apr_pool_t *pool);
758 
759 /**
760  * Similar to svn_ra_open3(), but with @a uuid set to @c NULL.
761  *
762  * @since New in 1.3.
763  * @deprecated Provided for backward compatibility with the 1.4 API.
764  */
766 svn_error_t *
767 svn_ra_open2(svn_ra_session_t **session_p,
768  const char *repos_URL,
769  const svn_ra_callbacks2_t *callbacks,
770  void *callback_baton,
771  apr_hash_t *config,
772  apr_pool_t *pool);
773 
774 /**
775  * @see svn_ra_open2().
776  * @since New in 1.2.
777  * @deprecated Provided for backward compatibility with the 1.2 API.
778  */
780 svn_error_t *
781 svn_ra_open(svn_ra_session_t **session_p,
782  const char *repos_URL,
783  const svn_ra_callbacks_t *callbacks,
784  void *callback_baton,
785  apr_hash_t *config,
786  apr_pool_t *pool);
787 
788 /** Change the root URL of an open @a ra_session to point to a new path in the
789  * same repository. @a url is the new root URL. Use @a pool for
790  * temporary allocations.
791  *
792  * If @a url has a different repository root than the current session
793  * URL, return @c SVN_ERR_RA_ILLEGAL_URL.
794  *
795  * @since New in 1.4.
796  */
797 svn_error_t *
799  const char *url,
800  apr_pool_t *pool);
801 
802 /** Set @a *url to the session URL -- the URL to which @a ra_session was
803  * opened or most recently reparented.
804  *
805  * @since New in 1.5.
806  */
807 svn_error_t *
809  const char **url,
810  apr_pool_t *pool);
811 
812 
813 /** Convert @a url into a path relative to the session URL of @a ra_session,
814  * setting @a *rel_path to that value. If @a url is not
815  * a child of the session URL, return @c SVN_ERR_RA_ILLEGAL_URL.
816  *
817  * The returned path is uri decoded to allow using it with the ra or other
818  * apis as a valid relpath.
819  *
820  * @since New in 1.7.
821  */
822 svn_error_t *
824  const char **rel_path,
825  const char *url,
826  apr_pool_t *pool);
827 
828 /** Convert @a url into a path relative to the repository root URL of
829  * the repository with which @a ra_session is associated, setting @a
830  * *rel_path to that value. If @a url is not a child of repository
831  * root URL, return @c SVN_ERR_RA_ILLEGAL_URL.
832  *
833  * The returned path is uri decoded to allow using it with the ra or other
834  * apis as a valid relpath.
835  *
836  * @since New in 1.7.
837  */
838 svn_error_t *
840  const char **rel_path,
841  const char *url,
842  apr_pool_t *pool);
843 
844 /**
845  * Get the latest revision number from the repository of @a session.
846  *
847  * Use @a pool for memory allocation.
848  *
849  * @since New in 1.2.
850  */
851 svn_error_t *
853  svn_revnum_t *latest_revnum,
854  apr_pool_t *pool);
855 
856 /**
857  * Get the latest revision number at time @a tm in the repository of
858  * @a session.
859  *
860  * Use @a pool for memory allocation.
861  *
862  * @since New in 1.2.
863  */
864 svn_error_t *
866  svn_revnum_t *revision,
867  apr_time_t tm,
868  apr_pool_t *pool);
869 
870 /**
871  * Set the property @a name to @a value on revision @a rev in the repository
872  * of @a session.
873  *
874  * If @a value is @c NULL, delete the named revision property.
875  *
876  * If the server advertises the #SVN_RA_CAPABILITY_ATOMIC_REVPROPS capability
877  * and @a old_value_p is not @c NULL, then changing the property will fail with
878  * an error chain that contains #SVN_ERR_FS_PROP_BASEVALUE_MISMATCH if the
879  * present value of the property is not @a *old_value_p. (This is an atomic
880  * test-and-set).
881  * @a *old_value_p may be @c NULL, representing that the property must be not
882  * already set.
883  *
884  * If the capability is not advertised, then @a old_value_p MUST be @c NULL.
885  *
886  * Please note that properties attached to revisions are @em unversioned.
887  *
888  * Use @a pool for memory allocation.
889  *
890  * @see svn_fs_change_rev_prop2(), svn_error_find_cause().
891  *
892  * @since New in 1.7.
893  */
894 svn_error_t *
896  svn_revnum_t rev,
897  const char *name,
898  const svn_string_t *const *old_value_p,
899  const svn_string_t *value,
900  apr_pool_t *pool);
901 
902 /**
903  * Similar to svn_ra_change_rev_prop2(), but with @a old_value_p set
904  * to @c NULL.
905  *
906  * @since New in 1.2.
907  * @deprecated Provided for backward compatibility with the 1.6 API.
908  */
910 svn_error_t *
912  svn_revnum_t rev,
913  const char *name,
914  const svn_string_t *value,
915  apr_pool_t *pool);
916 
917 /**
918  * Set @a *props to the list of unversioned properties attached to revision
919  * @a rev in the repository of @a session. The hash maps
920  * (<tt>const char *</tt>) names to (<tt>@c svn_string_t *</tt>) values.
921  *
922  * Use @a pool for memory allocation.
923  *
924  * @since New in 1.2.
925  */
926 svn_error_t *
928  svn_revnum_t rev,
929  apr_hash_t **props,
930  apr_pool_t *pool);
931 
932 /**
933  * Set @a *value to the value of unversioned property @a name attached to
934  * revision @a rev in the repository of @a session. If @a rev has no
935  * property by that name, set @a *value to @c NULL.
936  *
937  * Use @a pool for memory allocation.
938  *
939  * @since New in 1.2.
940  */
941 svn_error_t *
943  svn_revnum_t rev,
944  const char *name,
945  svn_string_t **value,
946  apr_pool_t *pool);
947 
948 /**
949  * Set @a *editor and @a *edit_baton to an editor for committing
950  * changes to the repository of @a session, setting the revision
951  * properties from @a revprop_table. The revisions being committed
952  * against are passed to the editor functions, starting with the rev
953  * argument to @c open_root. The path root of the commit is the @a
954  * session's URL.
955  *
956  * @a revprop_table is a hash mapping <tt>const char *</tt> property
957  * names to @c svn_string_t property values. The commit log message
958  * is expected to be in the @c SVN_PROP_REVISION_LOG element. @a
959  * revprop_table can not contain either of @c SVN_PROP_REVISION_DATE
960  * or @c SVN_PROP_REVISION_AUTHOR.
961  *
962  * Before @c close_edit returns, but after the commit has succeeded,
963  * it will invoke @a commit_callback (if non-NULL) with filled-in
964  * #svn_commit_info_t *, @a commit_baton, and @a pool or some subpool
965  * thereof as arguments. If @a commit_callback returns an error, that error
966  * will be returned from @c * close_edit, otherwise @c close_edit will return
967  * successfully (unless it encountered an error before invoking
968  * @a commit_callback).
969  *
970  * The callback will not be called if the commit was a no-op
971  * (i.e. nothing was committed);
972  *
973  * @a lock_tokens, if non-NULL, is a hash mapping <tt>const char
974  * *</tt> paths (relative to the URL of @a session) to <tt>
975  * const char *</tt> lock tokens. The server checks that the
976  * correct token is provided for each committed, locked path. @a lock_tokens
977  * must live during the whole commit operation.
978  *
979  * If @a keep_locks is @c TRUE, then do not release locks on
980  * committed objects. Else, automatically release such locks.
981  *
982  * The caller may not perform any RA operations using @a session before
983  * finishing the edit.
984  *
985  * Use @a pool for memory allocation.
986  *
987  * @since New in 1.5.
988  *
989  * @note Like most commit editors, the returned editor requires that the
990  * @c copyfrom_path parameter passed to its @c add_file and @c add_directory
991  * methods is a URL, not a relative path.
992  */
993 svn_error_t *
995  const svn_delta_editor_t **editor,
996  void **edit_baton,
997  apr_hash_t *revprop_table,
998  svn_commit_callback2_t commit_callback,
999  void *commit_baton,
1000  apr_hash_t *lock_tokens,
1001  svn_boolean_t keep_locks,
1002  apr_pool_t *pool);
1003 
1004 /**
1005  * Same as svn_ra_get_commit_editor3(), but with @c revprop_table set
1006  * to a hash containing the @c SVN_PROP_REVISION_LOG property set
1007  * to the value of @a log_msg.
1008  *
1009  * @since New in 1.4.
1010  *
1011  * @deprecated Provided for backward compatibility with the 1.4 API.
1012  */
1014 svn_error_t *
1016  const svn_delta_editor_t **editor,
1017  void **edit_baton,
1018  const char *log_msg,
1019  svn_commit_callback2_t commit_callback,
1020  void *commit_baton,
1021  apr_hash_t *lock_tokens,
1022  svn_boolean_t keep_locks,
1023  apr_pool_t *pool);
1024 
1025 /**
1026  * Same as svn_ra_get_commit_editor2(), but uses @c svn_commit_callback_t.
1027  *
1028  * @since New in 1.2.
1029  *
1030  * @deprecated Provided for backward compatibility with the 1.3 API.
1031  */
1033 svn_error_t *
1035  const svn_delta_editor_t **editor,
1036  void **edit_baton,
1037  const char *log_msg,
1038  svn_commit_callback_t callback,
1039  void *callback_baton,
1040  apr_hash_t *lock_tokens,
1041  svn_boolean_t keep_locks,
1042  apr_pool_t *pool);
1043 
1044 /**
1045  * Fetch the contents and properties of file @a path at @a revision.
1046  * @a revision may be SVN_INVALID_REVNUM, indicating that the HEAD
1047  * revision should be used. Interpret @a path relative to the URL in
1048  * @a session. Use @a pool for all allocations.
1049  *
1050  * If @a revision is @c SVN_INVALID_REVNUM and @a fetched_rev is not
1051  * @c NULL, then set @a *fetched_rev to the actual revision that was
1052  * retrieved.
1053  *
1054  * If @a stream is non @c NULL, push the contents of the file at @a
1055  * stream, do not call svn_stream_close() when finished.
1056  *
1057  * If @a props is non @c NULL, set @a *props to contain the properties of
1058  * the file. This means @em all properties: not just ones controlled by
1059  * the user and stored in the repository fs, but non-tweakable ones
1060  * generated by the SCM system itself (e.g. 'wcprops', 'entryprops',
1061  * etc.) The keys are <tt>const char *</tt>, values are
1062  * <tt>@c svn_string_t *</tt>.
1063  *
1064  * The stream handlers for @a stream may not perform any RA
1065  * operations using @a session.
1066  *
1067  * @since New in 1.2.
1068  */
1069 svn_error_t *
1071  const char *path,
1072  svn_revnum_t revision,
1073  svn_stream_t *stream,
1074  svn_revnum_t *fetched_rev,
1075  apr_hash_t **props,
1076  apr_pool_t *pool);
1077 
1078 /**
1079  * If @a dirents is non @c NULL, set @a *dirents to contain all the entries
1080  * of directory @a path at @a revision. The keys of @a dirents will be
1081  * entry names (<tt>const char *</tt>), and the values dirents
1082  * (<tt>@c svn_dirent_t *</tt>). Use @a pool for all allocations.
1083  *
1084  * @a dirent_fields controls which portions of the <tt>@c svn_dirent_t</tt>
1085  * objects are filled in. To have them completely filled in just pass
1086  * @c SVN_DIRENT_ALL, otherwise pass the bitwise OR of all the @c SVN_DIRENT_
1087  * fields you would like to have returned to you.
1088  *
1089  * @a path is interpreted relative to the URL in @a session.
1090  *
1091  * If @a revision is @c SVN_INVALID_REVNUM (meaning 'head') and
1092  * @a fetched_rev is not @c NULL, then this function will set
1093  * @a *fetched_rev to the actual revision that was retrieved. (Some
1094  * callers want to know, and some don't.)
1095  *
1096  * If @a props is non @c NULL, set @a *props to contain the properties of
1097  * the directory, including properties that are non-tweakable and
1098  * generated by the SCM system itself (such as #svn_prop_wc_kind and
1099  * #svn_prop_entry_kind properties). The keys are <tt>const char *</tt>,
1100  * values are <tt>@c svn_string_t *</tt>.
1101  *
1102  * @since New in 1.4.
1103  */
1104 svn_error_t *
1106  apr_hash_t **dirents,
1107  svn_revnum_t *fetched_rev,
1108  apr_hash_t **props,
1109  const char *path,
1110  svn_revnum_t revision,
1111  apr_uint32_t dirent_fields,
1112  apr_pool_t *pool);
1113 
1114 /**
1115  * Similar to @c svn_ra_get_dir2, but with @c SVN_DIRENT_ALL for the
1116  * @a dirent_fields parameter.
1117  *
1118  * @since New in 1.2.
1119  *
1120  * @deprecated Provided for compatibility with the 1.3 API.
1121  */
1123 svn_error_t *
1125  const char *path,
1126  svn_revnum_t revision,
1127  apr_hash_t **dirents,
1128  svn_revnum_t *fetched_rev,
1129  apr_hash_t **props,
1130  apr_pool_t *pool);
1131 
1132 /**
1133  * Callback type to be used with svn_ra_list(). It will be invoked for
1134  * every directory entry found.
1135  *
1136  * The full path of the entry is given in @a rel_path and @a dirent contains
1137  * various additional information. Only the elements of @a dirent specified
1138  * by the @a dirent_fields argument to svn_ra_list() will be valid.
1139  *
1140  * @a baton is the user-provided receiver baton. @a scratch_pool may be
1141  * used for temporary allocations.
1142  *
1143  * @since New in 1.10.
1144  */
1145 typedef svn_error_t *(* svn_ra_dirent_receiver_t)(const char *rel_path,
1146  svn_dirent_t *dirent,
1147  void *baton,
1148  apr_pool_t *scratch_pool);
1149 
1150 /**
1151  * Efficiently list everything within a sub-tree. Specify a glob pattern
1152  * to search for specific files and folders.
1153  *
1154  * In @a session, walk the sub-tree starting at @a path at @a revision down
1155  * to the given @a depth. For each directory entry found, @a receiver will
1156  * be called with @a receiver_baton. The starting @a path will be reported
1157  * as well. Because retrieving elements of a #svn_dirent_t can be
1158  * expensive, you need to select them individually via flags set in
1159  * @a dirent_fields.
1160  *
1161  * @a patterns is an optional array of <tt>const char *</tt>. If it is
1162  * not @c NULL, only those directory entries will be reported whose last
1163  * path segment matches at least one of these patterns. This feature uses
1164  * apr_fnmatch() for glob matching and requiring '.' to matched by dots
1165  * in the path.
1166  *
1167  * @a path must point to a directory and @a depth must be at least
1168  * #svn_depth_empty.
1169  *
1170  * If the server doesn't support the 'list' command, return
1171  * #SVN_ERR_UNSUPPORTED_FEATURE in preference to any other error that
1172  * might otherwise be returned.
1173  *
1174  * Use @a scratch_pool for temporary memory allocation.
1175  *
1176  * @since New in 1.10.
1177  */
1178 svn_error_t *
1179 svn_ra_list(svn_ra_session_t *session,
1180  const char *path,
1181  svn_revnum_t revision,
1182  const apr_array_header_t *patterns,
1183  svn_depth_t depth,
1184  apr_uint32_t dirent_fields,
1185  svn_ra_dirent_receiver_t receiver,
1186  void *receiver_baton,
1187  apr_pool_t *scratch_pool);
1188 
1189 /**
1190  * Set @a *catalog to a mergeinfo catalog for the paths in @a paths.
1191  * If no mergeinfo is available, set @a *catalog to @c NULL. The
1192  * requested mergeinfo hashes are for @a paths (which are relative to
1193  * @a session's URL) in @a revision. If one of the paths does not exist
1194  * in that revision, return SVN_ERR_FS_NOT_FOUND.
1195  *
1196  * @a inherit indicates whether explicit, explicit or inherited, or
1197  * only inherited mergeinfo for @a paths is retrieved.
1198  *
1199  * If @a include_descendants is TRUE, then additionally return the
1200  * mergeinfo for any descendant of any element of @a paths which has
1201  * the @c SVN_PROP_MERGEINFO property explicitly set on it. (Note
1202  * that inheritance is only taken into account for the elements in @a
1203  * paths; descendants of the elements in @a paths which get their
1204  * mergeinfo via inheritance are not included in @a *catalog.)
1205  *
1206  * Allocate the returned values in @a pool.
1207  *
1208  * If @a revision is @c SVN_INVALID_REVNUM, it defaults to youngest.
1209  *
1210  * If the server doesn't support retrieval of mergeinfo (which can
1211  * happen even for file:// URLs, if the repository itself hasn't been
1212  * upgraded), return @c SVN_ERR_UNSUPPORTED_FEATURE in preference to
1213  * any other error that might otherwise be returned.
1214  *
1215  * @since New in 1.5.
1216  */
1217 svn_error_t *
1219  svn_mergeinfo_catalog_t *catalog,
1220  const apr_array_header_t *paths,
1221  svn_revnum_t revision,
1223  svn_boolean_t include_descendants,
1224  apr_pool_t *pool);
1225 
1226 /**
1227  * Ask the RA layer to update a working copy to a new revision.
1228  *
1229  * The client initially provides an @a update_editor/@a update_baton to the
1230  * RA layer; this editor contains knowledge of where the change will
1231  * begin in the working copy (when @c open_root() is called).
1232  *
1233  * In return, the client receives a @a reporter/@a report_baton. The
1234  * client then describes its working copy by making calls into the
1235  * @a reporter.
1236  *
1237  * When finished, the client calls @a reporter->finish_report(). The
1238  * RA layer then does a complete drive of @a update_editor, ending with
1239  * @a update_editor->close_edit(), to update the working copy.
1240  *
1241  * @a update_target is an optional single path component to restrict
1242  * the scope of the update to just that entry (in the directory
1243  * represented by the @a session's URL). If @a update_target is the
1244  * empty string, the entire directory is updated.
1245  *
1246  * Update the target only as deeply as @a depth indicates.
1247  *
1248  * If @a send_copyfrom_args is TRUE, then ask the server to send
1249  * copyfrom arguments to add_file() and add_directory() when possible.
1250  * (Note: this means that any subsequent txdeltas coming from the
1251  * server are presumed to apply against the copied file!)
1252  *
1253  * Use @a ignore_ancestry to control whether or not items being
1254  * updated will be checked for relatedness first. Unrelated items
1255  * are typically transmitted to the editor as a deletion of one thing
1256  * and the addition of another, but if this flag is @c TRUE,
1257  * unrelated items will be diffed as if they were related.
1258  *
1259  * The working copy will be updated to @a revision_to_update_to, or the
1260  * "latest" revision if this arg is invalid.
1261  *
1262  * The caller may not perform any RA operations using @a session before
1263  * finishing the report, and may not perform any RA operations using
1264  * @a session from within the editing operations of @a update_editor.
1265  *
1266  * Allocate @a *reporter and @a *report_baton in @a result_pool. Use
1267  * @a scratch_pool for temporary allocations.
1268  *
1269  * @note The reporter provided by this function does NOT supply copy-
1270  * from information to the diff editor callbacks.
1271  *
1272  * @note In order to prevent pre-1.5 servers from doing more work than
1273  * needed, and sending too much data back, a pre-1.5 'recurse'
1274  * directive may be sent to the server, based on @a depth.
1275  *
1276  * @note Pre Subversion 1.8 svnserve based servers never ignore ancestry.
1277  *
1278  * @note This differs from calling svn_ra_do_switch3() with the current
1279  * URL of the target node. Update changes only the revision numbers,
1280  * leaving any switched subtrees still switched, whereas switch changes
1281  * every node in the tree to a child of the same URL.
1282  *
1283  * @since New in 1.8.
1284  */
1285 svn_error_t *
1287  const svn_ra_reporter3_t **reporter,
1288  void **report_baton,
1289  svn_revnum_t revision_to_update_to,
1290  const char *update_target,
1291  svn_depth_t depth,
1292  svn_boolean_t send_copyfrom_args,
1293  svn_boolean_t ignore_ancestry,
1294  const svn_delta_editor_t *update_editor,
1295  void *update_baton,
1296  apr_pool_t *result_pool,
1297  apr_pool_t *scratch_pool);
1298 
1299 /**
1300  * Similar to svn_ra_do_update3(), but always ignoring ancestry.
1301  *
1302  * @since New in 1.5.
1303  * @deprecated Provided for compatibility with the 1.4 API.
1304  */
1306 svn_error_t *
1308  const svn_ra_reporter3_t **reporter,
1309  void **report_baton,
1310  svn_revnum_t revision_to_update_to,
1311  const char *update_target,
1312  svn_depth_t depth,
1313  svn_boolean_t send_copyfrom_args,
1314  const svn_delta_editor_t *update_editor,
1315  void *update_baton,
1316  apr_pool_t *pool);
1317 
1318 /**
1319  * Similar to svn_ra_do_update2(), but taking @c svn_ra_reporter2_t
1320  * instead of @c svn_ra_reporter3_t; if @a recurse is true, pass @c
1321  * svn_depth_infinity for @a depth, else pass @c svn_depth_files; and
1322  * with @a send_copyfrom_args always false.
1323  *
1324  * @deprecated Provided for compatibility with the 1.4 API.
1325  */
1327 svn_error_t *
1329  const svn_ra_reporter2_t **reporter,
1330  void **report_baton,
1331  svn_revnum_t revision_to_update_to,
1332  const char *update_target,
1333  svn_boolean_t recurse,
1334  const svn_delta_editor_t *update_editor,
1335  void *update_baton,
1336  apr_pool_t *pool);
1337 
1338 
1339 /**
1340  * Ask the RA layer to switch a working copy to a new revision and URL.
1341  *
1342  * This is similar to svn_ra_do_update3(), but also changes the URL of
1343  * every node in the target tree to a child of the @a switch_url. In
1344  * contrast, update changes only the revision numbers, leaving any
1345  * switched subtrees still switched.
1346  *
1347  * @note Pre Subversion 1.8 svnserve based servers always ignore ancestry
1348  * and never send copyfrom data.
1349  *
1350  * @since New in 1.8.
1351  */
1352 svn_error_t *
1354  const svn_ra_reporter3_t **reporter,
1355  void **report_baton,
1356  svn_revnum_t revision_to_switch_to,
1357  const char *switch_target,
1358  svn_depth_t depth,
1359  const char *switch_url,
1360  svn_boolean_t send_copyfrom_args,
1361  svn_boolean_t ignore_ancestry,
1362  const svn_delta_editor_t *switch_editor,
1363  void *switch_baton,
1364  apr_pool_t *result_pool,
1365  apr_pool_t *scratch_pool);
1366 
1367 /**
1368  * Similar to svn_ra_do_switch3(), but always ignoring ancestry and
1369  * never sending copyfrom_args.
1370  *
1371  * @since New in 1.5.
1372  * @deprecated Provided for compatibility with the 1.7 API.
1373  */
1375 svn_error_t *
1377  const svn_ra_reporter3_t **reporter,
1378  void **report_baton,
1379  svn_revnum_t revision_to_switch_to,
1380  const char *switch_target,
1381  svn_depth_t depth,
1382  const char *switch_url,
1383  const svn_delta_editor_t *switch_editor,
1384  void *switch_baton,
1385  apr_pool_t *pool);
1386 
1387 /**
1388  * Similar to svn_ra_do_switch2(), but taking @c svn_ra_reporter2_t
1389  * instead of @c svn_ra_reporter3_t, and therefore only able to report
1390  * @c svn_depth_infinity for depths. The switch itself is performed
1391  * according to @a recurse: if TRUE, then use @c svn_depth_infinity
1392  * for @a depth, else use @c svn_depth_files.
1393  *
1394  * @deprecated Provided for compatibility with the 1.4 API.
1395  */
1397 svn_error_t *
1399  const svn_ra_reporter2_t **reporter,
1400  void **report_baton,
1401  svn_revnum_t revision_to_switch_to,
1402  const char *switch_target,
1403  svn_boolean_t recurse,
1404  const char *switch_url,
1405  const svn_delta_editor_t *switch_editor,
1406  void *switch_baton,
1407  apr_pool_t *pool);
1408 
1409 /**
1410  * Ask the RA layer to describe the status of a working copy with respect
1411  * to @a revision of the repository (or HEAD, if @a revision is invalid).
1412  *
1413  * The client initially provides a @a status_editor/@a status_baton to the RA
1414  * layer; this editor contains knowledge of where the change will
1415  * begin in the working copy (when open_root() is called).
1416  *
1417  * In return, the client receives a @a reporter/@a report_baton. The
1418  * client then describes its working copy by making calls into the
1419  * @a reporter.
1420  *
1421  * When finished, the client calls @a reporter->finish_report(). The RA
1422  * layer then does a complete drive of @a status_editor, ending with
1423  * close_edit(), to report, essentially, what would be modified in
1424  * the working copy were the client to call do_update().
1425  * @a status_target is an optional single path component will restrict
1426  * the scope of the status report to an entry in the directory
1427  * represented by the @a session's URL, or empty if the entire directory
1428  * is meant to be examined.
1429  *
1430  * Get status as deeply as @a depth indicates. If @a depth is
1431  * #svn_depth_unknown, get the status down to the ambient depth of the
1432  * working copy. If @a depth is deeper than the working copy, include changes
1433  * that would be needed to populate the working copy to that depth.
1434  *
1435  * The caller may not perform any RA operations using @a session
1436  * before finishing the report, and may not perform any RA operations
1437  * using @a session from within the editing operations of @a status_editor.
1438  *
1439  * Use @a pool for memory allocation.
1440  *
1441  * @note The reporter provided by this function does NOT supply copy-
1442  * from information to the diff editor callbacks.
1443  *
1444  * @note In order to prevent pre-1.5 servers from doing more work than
1445  * needed, and sending too much data back, a pre-1.5 'recurse'
1446  * directive may be sent to the server, based on @a depth.
1447  *
1448  * @since New in 1.5.
1449  */
1450 svn_error_t *
1452  const svn_ra_reporter3_t **reporter,
1453  void **report_baton,
1454  const char *status_target,
1455  svn_revnum_t revision,
1456  svn_depth_t depth,
1457  const svn_delta_editor_t *status_editor,
1458  void *status_baton,
1459  apr_pool_t *pool);
1460 
1461 
1462 /**
1463  * Similar to svn_ra_do_status2(), but taking @c svn_ra_reporter2_t
1464  * instead of @c svn_ra_reporter3_t, and therefore only able to report
1465  * @c svn_depth_infinity for depths. The status operation itself is
1466  * performed according to @a recurse: if TRUE, then @a depth is
1467  * @c svn_depth_infinity, else it is @c svn_depth_immediates.
1468  *
1469  * @deprecated Provided for compatibility with the 1.4 API.
1470  */
1472 svn_error_t *
1474  const svn_ra_reporter2_t **reporter,
1475  void **report_baton,
1476  const char *status_target,
1477  svn_revnum_t revision,
1478  svn_boolean_t recurse,
1479  const svn_delta_editor_t *status_editor,
1480  void *status_baton,
1481  apr_pool_t *pool);
1482 
1483 /**
1484  * Ask the RA layer to 'diff' a working copy against @a versus_url;
1485  * it's another form of svn_ra_do_update2().
1486  *
1487  * @note This function cannot be used to diff a single file, only a
1488  * working copy directory. See the svn_ra_do_switch3() function
1489  * for more details.
1490  *
1491  * The client initially provides a @a diff_editor/@a diff_baton to the RA
1492  * layer; this editor contains knowledge of where the common diff
1493  * root is in the working copy (when open_root() is called).
1494  *
1495  * In return, the client receives a @a reporter/@a report_baton. The
1496  * client then describes its working copy by making calls into the
1497  * @a reporter.
1498  *
1499  * When finished, the client calls @a reporter->finish_report(). The
1500  * RA layer then does a complete drive of @a diff_editor, ending with
1501  * close_edit(), to transmit the diff.
1502  *
1503  * @a diff_target is an optional single path component will restrict
1504  * the scope of the diff to an entry in the directory represented by
1505  * the @a session's URL, or empty if the entire directory is meant to be
1506  * one of the diff paths.
1507  *
1508  * The working copy will be diffed against @a versus_url as it exists
1509  * in revision @a revision, or as it is in head if @a revision is
1510  * @c SVN_INVALID_REVNUM.
1511  *
1512  * Use @a ignore_ancestry to control whether or not items being
1513  * diffed will be checked for relatedness first. Unrelated items
1514  * are typically transmitted to the editor as a deletion of one thing
1515  * and the addition of another, but if this flag is @c TRUE,
1516  * unrelated items will be diffed as if they were related.
1517  *
1518  * Diff only as deeply as @a depth indicates.
1519  *
1520  * The caller may not perform any RA operations using @a session before
1521  * finishing the report, and may not perform any RA operations using
1522  * @a session from within the editing operations of @a diff_editor.
1523  *
1524  * @a text_deltas instructs the driver of the @a diff_editor to enable
1525  * the generation of text deltas. If @a text_deltas is FALSE the window
1526  * handler returned by apply_textdelta will be called once with a NULL
1527  * @c svn_txdelta_window_t pointer.
1528  *
1529  * Use @a pool for memory allocation.
1530  *
1531  * @note The reporter provided by this function does NOT supply copy-
1532  * from information to the diff editor callbacks.
1533  *
1534  * @note In order to prevent pre-1.5 servers from doing more work than
1535  * needed, and sending too much data back, a pre-1.5 'recurse'
1536  * directive may be sent to the server, based on @a depth.
1537  *
1538  * @since New in 1.5.
1539  */
1540 svn_error_t *
1542  const svn_ra_reporter3_t **reporter,
1543  void **report_baton,
1544  svn_revnum_t revision,
1545  const char *diff_target,
1546  svn_depth_t depth,
1547  svn_boolean_t ignore_ancestry,
1548  svn_boolean_t text_deltas,
1549  const char *versus_url,
1550  const svn_delta_editor_t *diff_editor,
1551  void *diff_baton,
1552  apr_pool_t *pool);
1553 
1554 /**
1555  * Similar to svn_ra_do_diff3(), but taking @c svn_ra_reporter2_t
1556  * instead of @c svn_ra_reporter3_t, and therefore only able to report
1557  * @c svn_depth_infinity for depths. Perform the diff according to
1558  * @a recurse: if TRUE, then @a depth is @c svn_depth_infinity, else
1559  * it is @c svn_depth_files.
1560  *
1561  * @deprecated Provided for compatibility with the 1.4 API.
1562  */
1564 svn_error_t *
1566  const svn_ra_reporter2_t **reporter,
1567  void **report_baton,
1568  svn_revnum_t revision,
1569  const char *diff_target,
1570  svn_boolean_t recurse,
1571  svn_boolean_t ignore_ancestry,
1572  svn_boolean_t text_deltas,
1573  const char *versus_url,
1574  const svn_delta_editor_t *diff_editor,
1575  void *diff_baton,
1576  apr_pool_t *pool);
1577 
1578 
1579 /**
1580  * Similar to svn_ra_do_diff2(), but with @a text_deltas set to @c TRUE.
1581  *
1582  * @deprecated Provided for backward compatibility with the 1.3 API.
1583  */
1585 svn_error_t *
1587  const svn_ra_reporter2_t **reporter,
1588  void **report_baton,
1589  svn_revnum_t revision,
1590  const char *diff_target,
1591  svn_boolean_t recurse,
1592  svn_boolean_t ignore_ancestry,
1593  const char *versus_url,
1594  const svn_delta_editor_t *diff_editor,
1595  void *diff_baton,
1596  apr_pool_t *pool);
1597 
1598 /**
1599  * Invoke @a receiver with @a receiver_baton on each log message from
1600  * @a start to @a end. @a start may be greater or less than @a end;
1601  * this just controls whether the log messages are processed in descending
1602  * or ascending revision number order.
1603  *
1604  * If @a start or @a end is @c SVN_INVALID_REVNUM, it defaults to youngest.
1605  *
1606  * If @a paths is non-NULL and has one or more elements, then only show
1607  * revisions in which at least one of @a paths was changed (i.e., if
1608  * file, text or props changed; if dir, props changed or an entry
1609  * was added or deleted). Each path is an <tt>const char *</tt>, relative
1610  * to the repository root of @a session.
1611  *
1612  * If @a limit is greater than zero only invoke @a receiver on the first
1613  * @a limit logs.
1614  *
1615  * If @a discover_changed_paths, then each call to @a receiver passes a
1616  * <tt>const apr_hash_t *</tt> for the receiver's @a changed_paths argument;
1617  * the hash's keys are all the paths committed in that revision, the hash's
1618  * values are <tt>const svn_log_changed_path2_t *</tt> for each committed
1619  * path. Otherwise, each call to receiver passes NULL for @a changed_paths.
1620  *
1621  * If @a strict_node_history is set, copy history will not be traversed
1622  * (if any exists) when harvesting the revision logs for each path.
1623  *
1624  * If @a include_merged_revisions is set, log information for revisions
1625  * which have been merged to @a targets will also be returned.
1626  *
1627  * If @a revprops is NULL, retrieve all revision properties; else, retrieve
1628  * only the revision properties named by the (const char *) array elements
1629  * (i.e. retrieve none if the array is empty).
1630  *
1631  * If any invocation of @a receiver returns error, return that error
1632  * immediately and without wrapping it.
1633  *
1634  * If @a start or @a end is a non-existent revision, return the error
1635  * @c SVN_ERR_FS_NO_SUCH_REVISION, without ever invoking @a receiver.
1636  *
1637  * See also the documentation for @c svn_log_message_receiver_t.
1638  *
1639  * The caller may not invoke any RA operations using @a session from
1640  * within @a receiver.
1641  *
1642  * Use @a pool for memory allocation.
1643  *
1644  * @note If @a paths is NULL or empty, the result depends on the
1645  * server. Pre-1.5 servers will send nothing; 1.5 servers will
1646  * effectively perform the log operation on the root of the
1647  * repository. This behavior may be changed in the future to ensure
1648  * consistency across all pedigrees of server.
1649  *
1650  * @note Pre-1.5 servers do not support custom revprop retrieval; if @a
1651  * revprops is NULL or contains a revprop other than svn:author, svn:date,
1652  * or svn:log, an @c SVN_ERR_RA_NOT_IMPLEMENTED error is returned.
1653  *
1654  * @since New in 1.5.
1655  */
1656 svn_error_t *
1658  const apr_array_header_t *paths,
1659  svn_revnum_t start,
1660  svn_revnum_t end,
1661  int limit,
1662  svn_boolean_t discover_changed_paths,
1663  svn_boolean_t strict_node_history,
1664  svn_boolean_t include_merged_revisions,
1665  const apr_array_header_t *revprops,
1666  svn_log_entry_receiver_t receiver,
1667  void *receiver_baton,
1668  apr_pool_t *pool);
1669 
1670 /**
1671  * Similar to svn_ra_get_log2(), but uses @c svn_log_message_receiver_t
1672  * instead of @c svn_log_entry_receiver_t. Also, @a
1673  * include_merged_revisions is set to @c FALSE and @a revprops is
1674  * svn:author, svn:date, and svn:log.
1675  *
1676  * @since New in 1.2.
1677  * @deprecated Provided for backward compatibility with the 1.4 API.
1678  */
1680 svn_error_t *
1682  const apr_array_header_t *paths,
1683  svn_revnum_t start,
1684  svn_revnum_t end,
1685  int limit,
1686  svn_boolean_t discover_changed_paths,
1687  svn_boolean_t strict_node_history,
1688  svn_log_message_receiver_t receiver,
1689  void *receiver_baton,
1690  apr_pool_t *pool);
1691 
1692 /**
1693  * Set @a *kind to the node kind associated with @a path at @a revision.
1694  * If @a path does not exist under @a revision, set @a *kind to
1695  * @c svn_node_none. @a path is relative to the @a session's parent URL.
1696  *
1697  * Use @a pool for memory allocation.
1698  *
1699  * @since New in 1.2.
1700  */
1701 svn_error_t *
1703  const char *path,
1704  svn_revnum_t revision,
1705  svn_node_kind_t *kind,
1706  apr_pool_t *pool);
1707 
1708 /**
1709  * Set @a *dirent to an @c svn_dirent_t associated with @a path at @a
1710  * revision. @a path is relative to the @a session's parent's URL.
1711  * If @a path does not exist in @a revision, set @a *dirent to NULL.
1712  *
1713  * Use @a pool for memory allocation.
1714  *
1715  * @since New in 1.2.
1716  */
1717 svn_error_t *
1718 svn_ra_stat(svn_ra_session_t *session,
1719  const char *path,
1720  svn_revnum_t revision,
1721  svn_dirent_t **dirent,
1722  apr_pool_t *pool);
1723 
1724 
1725 /**
1726  * Set @a *uuid to the repository's UUID, allocated in @a pool.
1727  *
1728  * @since New in 1.5.
1729  */
1730 svn_error_t *
1732  const char **uuid,
1733  apr_pool_t *pool);
1734 
1735 /**
1736  * Similar to svn_ra_get_uuid2(), but returns the value allocated in
1737  * @a session's pool.
1738  *
1739  * @deprecated Provided for backward compatibility with the 1.4 API.
1740  * @since New in 1.2.
1741  */
1743 svn_error_t *
1745  const char **uuid,
1746  apr_pool_t *pool);
1747 
1748 /**
1749  * Set @a *url to the repository's root URL, allocated in @a pool.
1750  * The value will not include a trailing '/'. The returned URL is
1751  * guaranteed to be a prefix of the @a session's URL.
1752  *
1753  * @since New in 1.5.
1754  */
1755 svn_error_t *
1757  const char **url,
1758  apr_pool_t *pool);
1759 
1760 
1761 /**
1762  * Similar to svn_ra_get_repos_root2(), but returns the value
1763  * allocated in @a session's pool.
1764  *
1765  * @deprecated Provided for backward compatibility with the 1.4 API.
1766  * @since New in 1.2.
1767  */
1769 svn_error_t *
1771  const char **url,
1772  apr_pool_t *pool);
1773 
1774 /**
1775  * Set @a *locations to the locations (at the repository revisions
1776  * @a location_revisions) of the file identified by @a path in
1777  * @a peg_revision (passing @c SVN_INVALID_REVNUM is an error).
1778  * @a path is relative to the URL to which @a session was opened.
1779  * @a location_revisions is an array of @c svn_revnum_t's.
1780  * @a *locations will be a mapping from the revisions to
1781  * their appropriate absolute paths. If the file doesn't exist in a
1782  * location_revision, that revision will be ignored.
1783  *
1784  * Use @a pool for all allocations.
1785  *
1786  * @since New in 1.2.
1787  */
1788 svn_error_t *
1790  apr_hash_t **locations,
1791  const char *path,
1792  svn_revnum_t peg_revision,
1793  const apr_array_header_t *location_revisions,
1794  apr_pool_t *pool);
1795 
1796 
1797 /**
1798  * Call @a receiver (with @a receiver_baton) for each segment in the
1799  * location history of @a path in @a peg_revision, working backwards in
1800  * time from @a start_rev to @a end_rev.
1801  *
1802  * @a end_rev may be @c SVN_INVALID_REVNUM to indicate that you want
1803  * to trace the history of the object to its origin.
1804  *
1805  * @a start_rev may be @c SVN_INVALID_REVNUM to indicate "the HEAD
1806  * revision". Otherwise, @a start_rev must be younger than @a end_rev
1807  * (unless @a end_rev is @c SVN_INVALID_REVNUM).
1808  *
1809  * @a peg_revision may be @c SVN_INVALID_REVNUM to indicate "the HEAD
1810  * revision", and must evaluate to be at least as young as @a start_rev.
1811  *
1812  * Use @a pool for all allocations.
1813  *
1814  * @since New in 1.5.
1815  */
1816 svn_error_t *
1818  const char *path,
1819  svn_revnum_t peg_revision,
1820  svn_revnum_t start_rev,
1821  svn_revnum_t end_rev,
1823  void *receiver_baton,
1824  apr_pool_t *pool);
1825 
1826 /**
1827  * Retrieve a subset of the interesting revisions of a file @a path
1828  * as seen in revision @a end (see svn_fs_history_prev() for a
1829  * definition of "interesting revisions"). Invoke @a handler with
1830  * @a handler_baton as its first argument for each such revision.
1831  * @a session is an open RA session. Use @a pool for all allocations.
1832  *
1833  * If there is an interesting revision of the file that is less than or
1834  * equal to @a start, the iteration will begin at that revision.
1835  * Else, the iteration will begin at the first revision of the file in
1836  * the repository, which has to be less than or equal to @a end. Note
1837  * that if the function succeeds, @a handler will have been called at
1838  * least once.
1839  *
1840  * In a series of calls to @a handler, the file contents for the first
1841  * interesting revision will be provided as a text delta against the
1842  * empty file. In the following calls, the delta will be against the
1843  * fulltext contents for the previous call.
1844  *
1845  * If @a include_merged_revisions is TRUE, revisions which are
1846  * included as a result of a merge between @a start and @a end will be
1847  * included.
1848  *
1849  * @note This functionality is not available in pre-1.1 servers. If the
1850  * server doesn't implement it, an alternative (but much slower)
1851  * implementation based on svn_ra_get_log2() is used.
1852  *
1853  * On subversion 1.8 and newer servers this function has been enabled
1854  * to support reversion of the revision range for @a include_merged_revision
1855  * @c FALSE reporting by switching @a end with @a start.
1856  *
1857  * @note Prior to Subversion 1.9, this function may request delta handlers
1858  * from @a handler even for empty text deltas. Starting with 1.9, the
1859  * delta handler / baton return arguments passed to @a handler will be
1860  * NULL unless there is an actual difference in the file contents between
1861  * the current and the previous call.
1862  *
1863  * @since New in 1.5.
1864  */
1865 svn_error_t *
1867  const char *path,
1868  svn_revnum_t start,
1869  svn_revnum_t end,
1870  svn_boolean_t include_merged_revisions,
1871  svn_file_rev_handler_t handler,
1872  void *handler_baton,
1873  apr_pool_t *pool);
1874 
1875 /**
1876  * Similar to svn_ra_get_file_revs2(), but with @a include_merged_revisions
1877  * set to FALSE.
1878  *
1879  * @since New in 1.2.
1880  * @deprecated Provided for backward compatibility with the 1.4 API.
1881  */
1883 svn_error_t *
1885  const char *path,
1886  svn_revnum_t start,
1887  svn_revnum_t end,
1888  svn_ra_file_rev_handler_t handler,
1889  void *handler_baton,
1890  apr_pool_t *pool);
1891 
1892 /**
1893  * Lock each path in @a path_revs, which is a hash whose keys are the
1894  * paths to be locked, and whose values are the corresponding base
1895  * revisions for each path. The keys are (const char *) and the
1896  * revisions are (svn_revnum_t *).
1897  *
1898  * Note that locking is never anonymous, so any server implementing
1899  * this function will have to "pull" a username from the client, if
1900  * it hasn't done so already.
1901  *
1902  * @a comment is optional: it's either an xml-escapable string
1903  * which describes the lock, or it is NULL.
1904  *
1905  * If any path is already locked by a different user, then call @a
1906  * lock_func/@a lock_baton with an error. If @a steal_lock is TRUE,
1907  * then "steal" the existing lock(s) anyway, even if the RA username
1908  * does not match the current lock's owner. Delete any lock on the
1909  * path, and unconditionally create a new lock.
1910  *
1911  * For each path, if its base revision (in @a path_revs) is a valid
1912  * revnum, then do an out-of-dateness check. If the revnum is less
1913  * than the last-changed-revision of any path (or if a path doesn't
1914  * exist in HEAD), call @a lock_func/@a lock_baton with an
1915  * SVN_ERR_RA_OUT_OF_DATE error.
1916  *
1917  * After successfully locking a file, @a lock_func is called with the
1918  * @a lock_baton.
1919  *
1920  * Use @a pool for temporary allocations.
1921  *
1922  * @since New in 1.2.
1923  */
1924 svn_error_t *
1925 svn_ra_lock(svn_ra_session_t *session,
1926  apr_hash_t *path_revs,
1927  const char *comment,
1928  svn_boolean_t steal_lock,
1929  svn_ra_lock_callback_t lock_func,
1930  void *lock_baton,
1931  apr_pool_t *pool);
1932 
1933 /**
1934  * Remove the repository lock for each path in @a path_tokens.
1935  * @a path_tokens is a hash whose keys are the paths to be locked, and
1936  * whose values are the corresponding lock tokens for each path. If
1937  * the path has no corresponding lock token, or if @a break_lock is TRUE,
1938  * then the corresponding value shall be "".
1939  *
1940  * Note that unlocking is never anonymous, so any server
1941  * implementing this function will have to "pull" a username from
1942  * the client, if it hasn't done so already.
1943  *
1944  * If @a token points to a lock, but the RA username doesn't match the
1945  * lock's owner, call @a lock_func/@a lock_baton with an error. If @a
1946  * break_lock is TRUE, however, instead allow the lock to be "broken"
1947  * by the RA user.
1948  *
1949  * After successfully unlocking a path, @a lock_func is called with
1950  * the @a lock_baton.
1951  *
1952  * Use @a pool for temporary allocations.
1953  *
1954  * @since New in 1.2.
1955  */
1956 svn_error_t *
1958  apr_hash_t *path_tokens,
1959  svn_boolean_t break_lock,
1960  svn_ra_lock_callback_t lock_func,
1961  void *lock_baton,
1962  apr_pool_t *pool);
1963 
1964 /**
1965  * If @a path is locked, set @a *lock to an svn_lock_t which
1966  * represents the lock, allocated in @a pool.
1967  *
1968  * If @a path is not locked or does not exist in HEAD, set @a *lock to NULL.
1969  *
1970  * @note Before 1.9, this function could return SVN_ERR_FS_NOT_FOUND
1971  * when @a path didn't exist in HEAD on specific ra layers.
1972  *
1973  * @since New in 1.2.
1974  */
1975 svn_error_t *
1977  svn_lock_t **lock,
1978  const char *path,
1979  apr_pool_t *pool);
1980 
1981 /**
1982  * Set @a *locks to a hashtable which represents all locks on or
1983  * below @a path.
1984  *
1985  * @a depth limits the returned locks to those associated with paths
1986  * within the specified depth of @a path, and must be one of the
1987  * following values: #svn_depth_empty, #svn_depth_files,
1988  * #svn_depth_immediates, or #svn_depth_infinity.
1989  *
1990  * The hashtable maps (const char *) absolute fs paths to (const
1991  * svn_lock_t *) structures. The hashtable -- and all keys and
1992  * values -- are allocated in @a pool.
1993  *
1994  * @note It is not considered an error for @a path to not exist in HEAD.
1995  * Such a search will simply return no locks.
1996  *
1997  * @note This functionality is not available in pre-1.2 servers. If the
1998  * server doesn't implement it, an @c SVN_ERR_RA_NOT_IMPLEMENTED error is
1999  * returned.
2000  *
2001  * @since New in 1.7.
2002  */
2003 svn_error_t *
2005  apr_hash_t **locks,
2006  const char *path,
2007  svn_depth_t depth,
2008  apr_pool_t *pool);
2009 
2010 /**
2011  * Similar to svn_ra_get_locks2(), but with @a depth always passed as
2012  * #svn_depth_infinity.
2013  *
2014  * @since New in 1.2.
2015  * @deprecated Provided for backward compatibility with the 1.6 API.
2016  */
2018 svn_error_t *
2020  apr_hash_t **locks,
2021  const char *path,
2022  apr_pool_t *pool);
2023 
2024 
2025 /**
2026  * Replay the changes from a range of revisions between @a start_revision
2027  * and @a end_revision (inclusive).
2028  *
2029  * When receiving information for one revision, a callback @a revstart_func is
2030  * called; this callback will provide an editor and baton through which the
2031  * revision will be replayed.
2032  * When replaying the revision is finished, callback @a revfinish_func will be
2033  * called so the editor can be closed.
2034  *
2035  * Changes will be limited to those that occur under @a session's URL, and
2036  * the server will assume that the client has no knowledge of revisions
2037  * prior to @a low_water_mark. These two limiting factors define the portion
2038  * of the tree that the server will assume the client already has knowledge of,
2039  * and thus any copies of data from outside that part of the tree will be
2040  * sent in their entirety, not as simple copies or deltas against a previous
2041  * version.
2042  *
2043  * If @a send_deltas is @c TRUE, the actual text and property changes in
2044  * the revision will be sent, otherwise dummy text deltas and NULL property
2045  * changes will be sent instead.
2046  *
2047  * @a pool is used for all allocation.
2048  *
2049  * @since New in 1.5.
2050  */
2051 svn_error_t *
2053  svn_revnum_t start_revision,
2054  svn_revnum_t end_revision,
2055  svn_revnum_t low_water_mark,
2056  svn_boolean_t send_deltas,
2057  svn_ra_replay_revstart_callback_t revstart_func,
2058  svn_ra_replay_revfinish_callback_t revfinish_func,
2059  void *replay_baton,
2060  apr_pool_t *pool);
2061 
2062 /**
2063  * Replay the changes from @a revision through @a editor and @a edit_baton.
2064  *
2065  * Changes will be limited to those that occur under @a session's URL, and
2066  * the server will assume that the client has no knowledge of revisions
2067  * prior to @a low_water_mark. These two limiting factors define the portion
2068  * of the tree that the server will assume the client already has knowledge of,
2069  * and thus any copies of data from outside that part of the tree will be
2070  * sent in their entirety, not as simple copies or deltas against a previous
2071  * version.
2072  *
2073  * If @a send_deltas is @c TRUE, the actual text and property changes in
2074  * the revision will be sent, otherwise dummy text deltas and null property
2075  * changes will be sent instead.
2076  *
2077  * @a pool is used for all allocation.
2078  *
2079  * @since New in 1.4.
2080  */
2081 svn_error_t *
2083  svn_revnum_t revision,
2084  svn_revnum_t low_water_mark,
2085  svn_boolean_t send_deltas,
2086  const svn_delta_editor_t *editor,
2087  void *edit_baton,
2088  apr_pool_t *pool);
2089 
2090 /**
2091  * Given @a path at revision @a peg_revision, set @a *revision_deleted to the
2092  * revision @a path was first deleted, within the inclusive revision range
2093  * defined by @a peg_revision and @a end_revision. @a path is relative
2094  * to the URL in @a session.
2095  *
2096  * If @a path does not exist at @a peg_revision or was not deleted within
2097  * the specified range, then set @a *revision_deleted to @c SVN_INVALID_REVNUM.
2098  * If @a peg_revision or @a end_revision are invalid or if @a peg_revision is
2099  * greater than @a end_revision, then return @c SVN_ERR_CLIENT_BAD_REVISION.
2100  *
2101  * Use @a pool for all allocations.
2102  *
2103  * @since New in 1.6.
2104  */
2105 svn_error_t *
2107  const char *path,
2108  svn_revnum_t peg_revision,
2109  svn_revnum_t end_revision,
2110  svn_revnum_t *revision_deleted,
2111  apr_pool_t *pool);
2112 
2113 /**
2114  * Set @a *inherited_props to a depth-first ordered array of
2115  * #svn_prop_inherited_item_t * structures representing the properties
2116  * inherited by @a path at @a revision (or the 'head' revision if
2117  * @a revision is @c SVN_INVALID_REVNUM). Interpret @a path relative to
2118  * the URL in @a session. Use @a pool for all allocations. If no
2119  * inheritable properties are found, then set @a *inherited_props to
2120  * an empty array.
2121  *
2122  * The #svn_prop_inherited_item_t->path_or_url members of the
2123  * #svn_prop_inherited_item_t * structures in @a *inherited_props are
2124  * paths relative to the repository root URL (of the repository which
2125  * @a ra_session is associated).
2126  *
2127  * Allocate @a *inherited_props in @a result_pool. Use @a scratch_pool
2128  * for temporary allocations.
2129  *
2130  * @since New in 1.8.
2131  */
2132 svn_error_t *
2134  apr_array_header_t **inherited_props,
2135  const char *path,
2136  svn_revnum_t revision,
2137  apr_pool_t *result_pool,
2138  apr_pool_t *scratch_pool);
2139 
2140 /**
2141  * @defgroup Capabilities Dynamically query the server's capabilities.
2142  *
2143  * @{
2144  */
2145 
2146 /**
2147  * Set @a *has to TRUE if the server represented by @a session has
2148  * @a capability (one of the capabilities beginning with
2149  * @c "SVN_RA_CAPABILITY_"), else set @a *has to FALSE.
2150  *
2151  * If @a capability isn't recognized, throw @c SVN_ERR_UNKNOWN_CAPABILITY,
2152  * with the effect on @a *has undefined.
2153  *
2154  * Use @a pool for all allocation.
2155  *
2156  * @since New in 1.5.
2157  */
2158 svn_error_t *
2160  svn_boolean_t *has,
2161  const char *capability,
2162  apr_pool_t *pool);
2163 
2164 /**
2165  * The capability of understanding @c svn_depth_t (e.g., the server
2166  * understands what the client means when the client describes the
2167  * depth of a working copy to the server.)
2168  *
2169  * @since New in 1.5.
2170  */
2171 #define SVN_RA_CAPABILITY_DEPTH "depth"
2172 
2173 /**
2174  * The capability of doing the right thing with merge-tracking
2175  * information. This capability should be reported bidirectionally,
2176  * because some repositories may want to reject clients that do not
2177  * self-report as knowing how to handle merge-tracking.
2178  *
2179  * @since New in 1.5.
2180  */
2181 #define SVN_RA_CAPABILITY_MERGEINFO "mergeinfo"
2182 
2183 /**
2184  * The capability of retrieving arbitrary revprops in svn_ra_get_log2.
2185  *
2186  * @since New in 1.5.
2187  */
2188 #define SVN_RA_CAPABILITY_LOG_REVPROPS "log-revprops"
2189 
2190 /**
2191  * The capability of replaying a directory in the repository (partial replay).
2192  *
2193  * @since New in 1.5.
2194  */
2195 #define SVN_RA_CAPABILITY_PARTIAL_REPLAY "partial-replay"
2196 
2197 /**
2198  * The capability of including revision properties in a commit.
2199  *
2200  * @since New in 1.5.
2201  */
2202 #define SVN_RA_CAPABILITY_COMMIT_REVPROPS "commit-revprops"
2203 
2204 /**
2205  * The capability of specifying (and atomically verifying) expected
2206  * preexisting values when modifying revprops.
2207  *
2208  * @since New in 1.7.
2209  */
2210 #define SVN_RA_CAPABILITY_ATOMIC_REVPROPS "atomic-revprops"
2211 
2212 /**
2213  * The capability to get inherited properties.
2214  *
2215  * @since New in 1.8.
2216  */
2217 #define SVN_RA_CAPABILITY_INHERITED_PROPS "inherited-props"
2218 
2219 /**
2220  * The capability of a server to automatically remove transaction
2221  * properties prefixed with SVN_PROP_EPHEMERAL_PREFIX.
2222  *
2223  * @since New in 1.8.
2224  */
2225 #define SVN_RA_CAPABILITY_EPHEMERAL_TXNPROPS "ephemeral-txnprops"
2226 
2227 /**
2228  * The capability of a server to walk revisions backwards in
2229  * svn_ra_get_file_revs2
2230  *
2231  * @since New in 1.8.
2232  */
2233 #define SVN_RA_CAPABILITY_GET_FILE_REVS_REVERSE "get-file-revs-reversed"
2234 
2235 /**
2236  * The capability of a server to understand the list command.
2237  *
2238  * @since New in 1.10.
2239  */
2240 #define SVN_RA_CAPABILITY_LIST "list"
2241 
2242 
2243 /* *** PLEASE READ THIS IF YOU ADD A NEW CAPABILITY ***
2244  *
2245  * RA layers generally fetch all capabilities when asked about any
2246  * capability, to save future round trips. So if you add a new
2247  * capability here, make sure to update the RA layers to remember
2248  * it after any capabilities query.
2249  *
2250  * Also note that capability strings should not include colons,
2251  * because we pass a list of client capabilities to the start-commit
2252  * hook as a single, colon-separated string.
2253  */
2254 
2255 /** @} */
2256 
2257 
2258 /**
2259  * Append a textual list of all available RA modules to the stringbuf
2260  * @a output.
2261  *
2262  * @since New in 1.2.
2263  */
2264 svn_error_t *
2266  apr_pool_t *pool);
2267 
2268 
2269 /**
2270  * Similar to svn_ra_print_modules().
2271  * @a ra_baton is ignored.
2272  *
2273  * @deprecated Provided for backward compatibility with the 1.1 API.
2274  */
2276 svn_error_t *
2278  void *ra_baton,
2279  apr_pool_t *pool);
2280 
2281 
2282 
2283 /**
2284  * Using this callback struct is similar to calling the newer public
2285  * interface that is based on @c svn_ra_session_t.
2286  *
2287  * @deprecated Provided for backward compatibility with the 1.1 API.
2288  */
2289 typedef struct svn_ra_plugin_t
2290 {
2291  /** The proper name of the RA library, (like "ra_serf" or "ra_local") */
2292  const char *name;
2293 
2294  /** Short doc string printed out by `svn --version` */
2295  const char *description;
2296 
2297  /* The vtable hooks */
2298 
2299  /** Call svn_ra_open() and set @a session_baton to an object representing
2300  * the new session. All other arguments are passed to svn_ra_open().
2301  */
2302  svn_error_t *(*open)(void **session_baton,
2303  const char *repos_URL,
2304  const svn_ra_callbacks_t *callbacks,
2305  void *callback_baton,
2306  apr_hash_t *config,
2307  apr_pool_t *pool);
2308 
2309  /** Call svn_ra_get_latest_revnum() with the session associated with
2310  * @a session_baton and all other arguments.
2311  */
2312  svn_error_t *(*get_latest_revnum)(void *session_baton,
2313  svn_revnum_t *latest_revnum,
2314  apr_pool_t *pool);
2315 
2316  /** Call svn_ra_get_dated_revision() with the session associated with
2317  * @a session_baton and all other arguments.
2318  */
2319  svn_error_t *(*get_dated_revision)(void *session_baton,
2320  svn_revnum_t *revision,
2321  apr_time_t tm,
2322  apr_pool_t *pool);
2323 
2324  /** Call svn_ra_change_rev_prop() with the session associated with
2325  * @a session_baton and all other arguments.
2326  */
2327  svn_error_t *(*change_rev_prop)(void *session_baton,
2328  svn_revnum_t rev,
2329  const char *name,
2330  const svn_string_t *value,
2331  apr_pool_t *pool);
2332 
2333  /** Call svn_ra_rev_proplist() with the session associated with
2334  * @a session_baton and all other arguments.
2335  */
2336  svn_error_t *(*rev_proplist)(void *session_baton,
2337  svn_revnum_t rev,
2338  apr_hash_t **props,
2339  apr_pool_t *pool);
2340 
2341  /** Call svn_ra_rev_prop() with the session associated with
2342  * @a session_baton and all other arguments.
2343  */
2344  svn_error_t *(*rev_prop)(void *session_baton,
2345  svn_revnum_t rev,
2346  const char *name,
2347  svn_string_t **value,
2348  apr_pool_t *pool);
2349 
2350  /** Call svn_ra_get_commit_editor() with the session associated with
2351  * @a session_baton and all other arguments plus @a lock_tokens set to
2352  * @c NULL and @a keep_locks set to @c TRUE.
2353  */
2354  svn_error_t *(*get_commit_editor)(void *session_baton,
2355  const svn_delta_editor_t **editor,
2356  void **edit_baton,
2357  const char *log_msg,
2358  svn_commit_callback_t callback,
2359  void *callback_baton,
2360  apr_pool_t *pool);
2361 
2362  /** Call svn_ra_get_file() with the session associated with
2363  * @a session_baton and all other arguments.
2364  */
2365  svn_error_t *(*get_file)(void *session_baton,
2366  const char *path,
2367  svn_revnum_t revision,
2368  svn_stream_t *stream,
2369  svn_revnum_t *fetched_rev,
2370  apr_hash_t **props,
2371  apr_pool_t *pool);
2372 
2373  /** Call svn_ra_get_dir() with the session associated with
2374  * @a session_baton and all other arguments.
2375  */
2376  svn_error_t *(*get_dir)(void *session_baton,
2377  const char *path,
2378  svn_revnum_t revision,
2379  apr_hash_t **dirents,
2380  svn_revnum_t *fetched_rev,
2381  apr_hash_t **props,
2382  apr_pool_t *pool);
2383 
2384  /** Call svn_ra_do_update() with the session associated with
2385  * @a session_baton and all other arguments.
2386  */
2387  svn_error_t *(*do_update)(void *session_baton,
2388  const svn_ra_reporter_t **reporter,
2389  void **report_baton,
2390  svn_revnum_t revision_to_update_to,
2391  const char *update_target,
2392  svn_boolean_t recurse,
2393  const svn_delta_editor_t *update_editor,
2394  void *update_baton,
2395  apr_pool_t *pool);
2396 
2397  /** Call svn_ra_do_switch() with the session associated with
2398  * @a session_baton and all other arguments.
2399  */
2400  svn_error_t *(*do_switch)(void *session_baton,
2401  const svn_ra_reporter_t **reporter,
2402  void **report_baton,
2403  svn_revnum_t revision_to_switch_to,
2404  const char *switch_target,
2405  svn_boolean_t recurse,
2406  const char *switch_url,
2407  const svn_delta_editor_t *switch_editor,
2408  void *switch_baton,
2409  apr_pool_t *pool);
2410 
2411  /** Call svn_ra_do_status() with the session associated with
2412  * @a session_baton and all other arguments.
2413  */
2414  svn_error_t *(*do_status)(void *session_baton,
2415  const svn_ra_reporter_t **reporter,
2416  void **report_baton,
2417  const char *status_target,
2418  svn_revnum_t revision,
2419  svn_boolean_t recurse,
2420  const svn_delta_editor_t *status_editor,
2421  void *status_baton,
2422  apr_pool_t *pool);
2423 
2424  /** Call svn_ra_do_diff() with the session associated with
2425  * @a session_baton and all other arguments.
2426  */
2427  svn_error_t *(*do_diff)(void *session_baton,
2428  const svn_ra_reporter_t **reporter,
2429  void **report_baton,
2430  svn_revnum_t revision,
2431  const char *diff_target,
2432  svn_boolean_t recurse,
2433  svn_boolean_t ignore_ancestry,
2434  const char *versus_url,
2435  const svn_delta_editor_t *diff_editor,
2436  void *diff_baton,
2437  apr_pool_t *pool);
2438 
2439  /** Call svn_ra_get_log() with the session associated with
2440  * @a session_baton and all other arguments. @a limit is set to 0.
2441  */
2442  svn_error_t *(*get_log)(void *session_baton,
2443  const apr_array_header_t *paths,
2444  svn_revnum_t start,
2445  svn_revnum_t end,
2446  svn_boolean_t discover_changed_paths,
2447  svn_boolean_t strict_node_history,
2448  svn_log_message_receiver_t receiver,
2449  void *receiver_baton,
2450  apr_pool_t *pool);
2451 
2452  /** Call svn_ra_check_path() with the session associated with
2453  * @a session_baton and all other arguments.
2454  */
2455  svn_error_t *(*check_path)(void *session_baton,
2456  const char *path,
2457  svn_revnum_t revision,
2458  svn_node_kind_t *kind,
2459  apr_pool_t *pool);
2460 
2461  /** Call svn_ra_get_uuid() with the session associated with
2462  * @a session_baton and all other arguments.
2463  */
2464  svn_error_t *(*get_uuid)(void *session_baton,
2465  const char **uuid,
2466  apr_pool_t *pool);
2467 
2468  /** Call svn_ra_get_repos_root() with the session associated with
2469  * @a session_baton and all other arguments.
2470  */
2471  svn_error_t *(*get_repos_root)(void *session_baton,
2472  const char **url,
2473  apr_pool_t *pool);
2474 
2475  /**
2476  * Call svn_ra_get_locations() with the session associated with
2477  * @a session_baton and all other arguments.
2478  *
2479  * @since New in 1.1.
2480  */
2481  svn_error_t *(*get_locations)(void *session_baton,
2482  apr_hash_t **locations,
2483  const char *path,
2484  svn_revnum_t peg_revision,
2485  apr_array_header_t *location_revisions,
2486  apr_pool_t *pool);
2487 
2488  /**
2489  * Call svn_ra_get_file_revs() with the session associated with
2490  * @a session_baton and all other arguments.
2491  *
2492  * @since New in 1.1.
2493  */
2494  svn_error_t *(*get_file_revs)(void *session_baton,
2495  const char *path,
2496  svn_revnum_t start,
2497  svn_revnum_t end,
2498  svn_ra_file_rev_handler_t handler,
2499  void *handler_baton,
2500  apr_pool_t *pool);
2501 
2502  /**
2503  * Return the plugin's version information.
2504  *
2505  * @since New in 1.1.
2506  */
2507  const svn_version_t *(*get_version)(void);
2508 
2509 
2510 } svn_ra_plugin_t;
2511 
2512 /**
2513  * All "ra_FOO" implementations *must* export a function named
2514  * svn_ra_FOO_init() of type @c svn_ra_init_func_t.
2515  *
2516  * When called by libsvn_client, this routine adds an entry (or
2517  * entries) to the hash table for any URL schemes it handles. The hash
2518  * value must be of type (<tt>@c svn_ra_plugin_t *</tt>). @a pool is a
2519  * pool for allocating configuration / one-time data.
2520  *
2521  * This type is defined to use the "C Calling Conventions" to ensure that
2522  * abi_version is the first parameter. The RA plugin must check that value
2523  * before accessing the other parameters.
2524  *
2525  * ### need to force this to be __cdecl on Windows... how??
2526  *
2527  * @deprecated Provided for backward compatibility with the 1.1 API.
2528  */
2529 typedef svn_error_t *(*svn_ra_init_func_t)(int abi_version,
2530  apr_pool_t *pool,
2531  apr_hash_t *hash);
2532 
2533 /**
2534  * The current ABI (Application Binary Interface) version for the
2535  * RA plugin model. This version number will change when the ABI
2536  * between the SVN core (e.g. libsvn_client) and the RA plugin changes.
2537  *
2538  * An RA plugin should verify that the passed version number is acceptable
2539  * before accessing the rest of the parameters, and before returning any
2540  * information.
2541  *
2542  * It is entirely acceptable for an RA plugin to accept multiple ABI
2543  * versions. It can simply interpret the parameters based on the version,
2544  * and it can return different plugin structures.
2545  *
2546  *
2547  * <pre>
2548  * VSN DATE REASON FOR CHANGE
2549  * --- ---------- ------------------------------------------------
2550  * 1 2001-02-17 Initial revision.
2551  * 2 2004-06-29 Preparing for svn 1.1, which adds new RA vtable funcs.
2552  * 2005-01-19 Rework the plugin interface and don't provide the vtable
2553  * to the client. Separate ABI versions are no longer used.
2554  * </pre>
2555  *
2556  * @deprecated Provided for backward compatibility with the 1.0 API.
2557  */
2558 #define SVN_RA_ABI_VERSION 2
2559 
2560 /* Public RA implementations. */
2561 
2562 /** Initialize libsvn_ra_serf.
2563  *
2564  * @deprecated Provided for backward compatibility with the 1.1 API. */
2566 svn_error_t *
2567 svn_ra_dav_init(int abi_version,
2568  apr_pool_t *pool,
2569  apr_hash_t *hash);
2570 
2571 /** Initialize libsvn_ra_local.
2572  *
2573  * @deprecated Provided for backward compatibility with the 1.1 API. */
2575 svn_error_t *
2576 svn_ra_local_init(int abi_version,
2577  apr_pool_t *pool,
2578  apr_hash_t *hash);
2579 
2580 /** Initialize libsvn_ra_svn.
2581  *
2582  * @deprecated Provided for backward compatibility with the 1.1 API. */
2584 svn_error_t *
2585 svn_ra_svn_init(int abi_version,
2586  apr_pool_t *pool,
2587  apr_hash_t *hash);
2588 
2589 /** Initialize libsvn_ra_serf.
2590  *
2591  * @since New in 1.4.
2592  * @deprecated Provided for backward compatibility with the 1.1 API. */
2594 svn_error_t *
2595 svn_ra_serf_init(int abi_version,
2596  apr_pool_t *pool,
2597  apr_hash_t *hash);
2598 
2599 
2600 /**
2601  * Initialize the compatibility wrapper, using @a pool for any allocations.
2602  * The caller must hold on to @a ra_baton as long as the RA library is used.
2603  *
2604  * @deprecated Provided for backward compatibility with the 1.1 API.
2605  */
2607 svn_error_t *
2608 svn_ra_init_ra_libs(void **ra_baton,
2609  apr_pool_t *pool);
2610 
2611 /**
2612  * Return an RA vtable-@a library which can handle URL. A number of
2613  * svn_client_* routines will call this internally, but client apps might
2614  * use it too. $a ra_baton is a baton obtained by a call to
2615  * svn_ra_init_ra_libs().
2616  *
2617  * @deprecated Provided for backward compatibility with the 1.1 API.
2618  */
2620 svn_error_t *
2622  void *ra_baton,
2623  const char *url,
2624  apr_pool_t *pool);
2625 
2626 #ifdef __cplusplus
2627 }
2628 #endif /* __cplusplus */
2629 
2630 #endif /* SVN_RA_H */
2631 
svn_ra_get_deleted_rev
svn_error_t * svn_ra_get_deleted_rev(svn_ra_session_t *session, const char *path, svn_revnum_t peg_revision, svn_revnum_t end_revision, svn_revnum_t *revision_deleted, apr_pool_t *pool)
Given path at revision peg_revision, set *revision_deleted to the revision path was first deleted,...
svn_ra_get_uuid
svn_error_t * svn_ra_get_uuid(svn_ra_session_t *session, const char **uuid, apr_pool_t *pool)
Similar to svn_ra_get_uuid2(), but returns the value allocated in session's pool.
svn_ra_replay
svn_error_t * svn_ra_replay(svn_ra_session_t *session, svn_revnum_t revision, svn_revnum_t low_water_mark, svn_boolean_t send_deltas, const svn_delta_editor_t *editor, void *edit_baton, apr_pool_t *pool)
Replay the changes from revision through editor and edit_baton.
svn_error_t
Subversion error object.
Definition: svn_types.h:180
svn_auth.h
Subversion's authentication system.
svn_ra_svn_init
svn_error_t * svn_ra_svn_init(int abi_version, apr_pool_t *pool, apr_hash_t *hash)
Initialize libsvn_ra_svn.
svn_ra_get_locks
svn_error_t * svn_ra_get_locks(svn_ra_session_t *session, apr_hash_t **locks, const char *path, apr_pool_t *pool)
Similar to svn_ra_get_locks2(), but with depth always passed as svn_depth_infinity.
svn_ra_do_diff
svn_error_t * svn_ra_do_diff(svn_ra_session_t *session, const svn_ra_reporter2_t **reporter, void **report_baton, svn_revnum_t revision, const char *diff_target, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, const char *versus_url, const svn_delta_editor_t *diff_editor, void *diff_baton, apr_pool_t *pool)
Similar to svn_ra_do_diff2(), but with text_deltas set to TRUE.
svn_ra_change_rev_prop
svn_error_t * svn_ra_change_rev_prop(svn_ra_session_t *session, svn_revnum_t rev, const char *name, const svn_string_t *value, apr_pool_t *pool)
Similar to svn_ra_change_rev_prop2(), but with old_value_p set to NULL.
svn_ra_get_lock
svn_error_t * svn_ra_get_lock(svn_ra_session_t *session, svn_lock_t **lock, const char *path, apr_pool_t *pool)
If path is locked, set *lock to an svn_lock_t which represents the lock, allocated in pool.
svn_ra_get_wc_prop_func_t
svn_error_t *(* svn_ra_get_wc_prop_func_t)(void *baton, const char *path, const char *name, const svn_string_t **value, apr_pool_t *pool)
This is a function type which allows the RA layer to fetch working copy (WC) properties.
Definition: svn_ra.h:73
svn_ra_list
svn_error_t * svn_ra_list(svn_ra_session_t *session, const char *path, svn_revnum_t revision, const apr_array_header_t *patterns, svn_depth_t depth, apr_uint32_t dirent_fields, svn_ra_dirent_receiver_t receiver, void *receiver_baton, apr_pool_t *scratch_pool)
Efficiently list everything within a sub-tree.
svn_ra_has_capability
svn_error_t * svn_ra_has_capability(svn_ra_session_t *session, svn_boolean_t *has, const char *capability, apr_pool_t *pool)
Set *has to TRUE if the server represented by session has capability (one of the capabilities beginni...
svn_ra_callbacks_t
struct svn_ra_callbacks_t svn_ra_callbacks_t
Similar to svn_ra_callbacks2_t, except that the progress notification function and baton is missing.
svn_string.h
Counted-length strings for Subversion, plus some C string goodies.
svn_ra_initialize
svn_error_t * svn_ra_initialize(apr_pool_t *pool)
Initialize the RA library.
svn_ra_callbacks2_t::progress_baton
void * progress_baton
Notification callback baton, used with progress_func.
Definition: svn_ra.h:579
svn_ra_callbacks2_t::set_wc_prop
svn_ra_set_wc_prop_func_t set_wc_prop
Immediately set new values for working copy properties.
Definition: svn_ra.h:565
svn_ra_file_rev_handler_t
svn_error_t *(* svn_ra_file_rev_handler_t)(void *baton, const char *path, svn_revnum_t rev, apr_hash_t *rev_props, svn_txdelta_window_handler_t *delta_handler, void **delta_baton, apr_array_header_t *prop_diffs, apr_pool_t *pool)
A callback function type for use in get_file_revs.
Definition: svn_ra.h:174
svn_ra_get_file_revs
svn_error_t * svn_ra_get_file_revs(svn_ra_session_t *session, const char *path, svn_revnum_t start, svn_revnum_t end, svn_ra_file_rev_handler_t handler, void *handler_baton, apr_pool_t *pool)
Similar to svn_ra_get_file_revs2(), but with include_merged_revisions set to FALSE.
svn_ra_init_ra_libs
svn_error_t * svn_ra_init_ra_libs(void **ra_baton, apr_pool_t *pool)
Initialize the compatibility wrapper, using pool for any allocations.
svn_ra_local_init
svn_error_t * svn_ra_local_init(int abi_version, apr_pool_t *pool, apr_hash_t *hash)
Initialize libsvn_ra_local.
svn_ra_do_switch
svn_error_t * svn_ra_do_switch(svn_ra_session_t *session, const svn_ra_reporter2_t **reporter, void **report_baton, svn_revnum_t revision_to_switch_to, const char *switch_target, svn_boolean_t recurse, const char *switch_url, const svn_delta_editor_t *switch_editor, void *switch_baton, apr_pool_t *pool)
Similar to svn_ra_do_switch2(), but taking svn_ra_reporter2_t instead of svn_ra_reporter3_t,...
svn_ra_get_file_revs2
svn_error_t * svn_ra_get_file_revs2(svn_ra_session_t *session, const char *path, svn_revnum_t start, svn_revnum_t end, svn_boolean_t include_merged_revisions, svn_file_rev_handler_t handler, void *handler_baton, apr_pool_t *pool)
Retrieve a subset of the interesting revisions of a file path as seen in revision end (see svn_fs_his...
svn_ra_lock
svn_error_t * svn_ra_lock(svn_ra_session_t *session, apr_hash_t *path_revs, const char *comment, svn_boolean_t steal_lock, svn_ra_lock_callback_t lock_func, void *lock_baton, apr_pool_t *pool)
Lock each path in path_revs, which is a hash whose keys are the paths to be locked,...
svn_ra_open_tunnel_func_t
svn_error_t *(* svn_ra_open_tunnel_func_t)(svn_stream_t **request, svn_stream_t **response, svn_ra_close_tunnel_func_t *close_func, void **close_baton, void *tunnel_baton, const char *tunnel_name, const char *user, const char *hostname, int port, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *pool)
Callback function for opening a tunnel in ra_svn.
Definition: svn_ra.h:322
svn_ra_callbacks2_t::get_wc_contents
svn_ra_get_wc_contents_func_t get_wc_contents
Working copy file content fetching function.
Definition: svn_ra.h:597
svn_ra_do_update3
svn_error_t * svn_ra_do_update3(svn_ra_session_t *session, const svn_ra_reporter3_t **reporter, void **report_baton, svn_revnum_t revision_to_update_to, const char *update_target, svn_depth_t depth, svn_boolean_t send_copyfrom_args, svn_boolean_t ignore_ancestry, const svn_delta_editor_t *update_editor, void *update_baton, apr_pool_t *result_pool, apr_pool_t *scratch_pool)
Ask the RA layer to update a working copy to a new revision.
svn_ra_plugin_t
Using this callback struct is similar to calling the newer public interface that is based on svn_ra_s...
Definition: svn_ra.h:2289
svn_checksum_t
A generic checksum representation.
Definition: svn_checksum.h:69
svn_ra_open
svn_error_t * svn_ra_open(svn_ra_session_t **session_p, const char *repos_URL, const svn_ra_callbacks_t *callbacks, void *callback_baton, apr_hash_t *config, apr_pool_t *pool)
svn_ra_do_update2
svn_error_t * svn_ra_do_update2(svn_ra_session_t *session, const svn_ra_reporter3_t **reporter, void **report_baton, svn_revnum_t revision_to_update_to, const char *update_target, svn_depth_t depth, svn_boolean_t send_copyfrom_args, const svn_delta_editor_t *update_editor, void *update_baton, apr_pool_t *pool)
Similar to svn_ra_do_update3(), but always ignoring ancestry.
svn_ra_get_commit_editor3
svn_error_t * svn_ra_get_commit_editor3(svn_ra_session_t *session, const svn_delta_editor_t **editor, void **edit_baton, apr_hash_t *revprop_table, svn_commit_callback2_t commit_callback, void *commit_baton, apr_hash_t *lock_tokens, svn_boolean_t keep_locks, apr_pool_t *pool)
Set *editor and *edit_baton to an editor for committing changes to the repository of session,...
svn_ra_get_dated_revision
svn_error_t * svn_ra_get_dated_revision(svn_ra_session_t *session, svn_revnum_t *revision, apr_time_t tm, apr_pool_t *pool)
Get the latest revision number at time tm in the repository of session.
svn_ra_dav_init
svn_error_t * svn_ra_dav_init(int abi_version, apr_pool_t *pool, apr_hash_t *hash)
Initialize libsvn_ra_serf.
svn_ra_get_repos_root
svn_error_t * svn_ra_get_repos_root(svn_ra_session_t *session, const char **url, apr_pool_t *pool)
Similar to svn_ra_get_repos_root2(), but returns the value allocated in session's pool.
svn_ra_get_wc_contents_func_t
svn_error_t *(* svn_ra_get_wc_contents_func_t)(void *baton, svn_stream_t **contents, const svn_checksum_t *checksum, apr_pool_t *pool)
This is a function type which allows the RA layer to fetch the cached pristine file contents whose ch...
Definition: svn_ra.h:131
svn_ra_push_wc_prop_func_t
svn_error_t *(* svn_ra_push_wc_prop_func_t)(void *baton, const char *path, const char *name, const svn_string_t *value, apr_pool_t *pool)
This is a function type which allows the RA layer to store new working copy properties as part of a c...
Definition: svn_ra.h:105
svn_ra_callbacks2_t::get_client_string
svn_ra_get_client_string_func_t get_client_string
Client string customization callback function.
Definition: svn_ra.h:592
svn_ra_do_switch2
svn_error_t * svn_ra_do_switch2(svn_ra_session_t *session, const svn_ra_reporter3_t **reporter, void **report_baton, svn_revnum_t revision_to_switch_to, const char *switch_target, svn_depth_t depth, const char *switch_url, const svn_delta_editor_t *switch_editor, void *switch_baton, apr_pool_t *pool)
Similar to svn_ra_do_switch3(), but always ignoring ancestry and never sending copyfrom_args.
svn_ra_reporter_t
Similar to svn_ra_reporter2_t, but without support for lock tokens.
Definition: svn_ra.h:486
svn_ra_get_commit_editor2
svn_error_t * svn_ra_get_commit_editor2(svn_ra_session_t *session, const svn_delta_editor_t **editor, void **edit_baton, const char *log_msg, svn_commit_callback2_t commit_callback, void *commit_baton, apr_hash_t *lock_tokens, svn_boolean_t keep_locks, apr_pool_t *pool)
Same as svn_ra_get_commit_editor3(), but with revprop_table set to a hash containing the SVN_PROP_REV...
svn_ra_serf_init
svn_error_t * svn_ra_serf_init(int abi_version, apr_pool_t *pool, apr_hash_t *hash)
Initialize libsvn_ra_serf.
svn_ra_get_path_relative_to_session
svn_error_t * svn_ra_get_path_relative_to_session(svn_ra_session_t *ra_session, const char **rel_path, const char *url, apr_pool_t *pool)
Convert url into a path relative to the session URL of ra_session, setting *rel_path to that value.
svn_ra_open3
svn_error_t * svn_ra_open3(svn_ra_session_t **session_p, const char *repos_URL, const char *uuid, const svn_ra_callbacks2_t *callbacks, void *callback_baton, apr_hash_t *config, apr_pool_t *pool)
Similar to svn_ra_open4(), but with corrected_url always passed as NULL.
svn_ra_get_file
svn_error_t * svn_ra_get_file(svn_ra_session_t *session, const char *path, svn_revnum_t revision, svn_stream_t *stream, svn_revnum_t *fetched_rev, apr_hash_t **props, apr_pool_t *pool)
Fetch the contents and properties of file path at revision.
svn_ra_replay_revstart_callback_t
svn_error_t *(* svn_ra_replay_revstart_callback_t)(svn_revnum_t revision, void *replay_baton, const svn_delta_editor_t **editor, void **edit_baton, apr_hash_t *rev_props, apr_pool_t *pool)
Callback function type for replay_range actions.
Definition: svn_ra.h:241
svn_stream_t
struct svn_stream_t svn_stream_t
An abstract stream of bytes–either incoming or outgoing or both.
Definition: svn_io.h:863
svn_ra_get_session_url
svn_error_t * svn_ra_get_session_url(svn_ra_session_t *ra_session, const char **url, apr_pool_t *pool)
Set *url to the session URL – the URL to which ra_session was opened or most recently reparented.
svn_ra_callbacks2_t::cancel_func
svn_cancel_func_t cancel_func
Cancellation function.
Definition: svn_ra.h:587
svn_mergeinfo_catalog_t
apr_hash_t * svn_mergeinfo_catalog_t
A hash mapping paths (const char *) to svn_mergeinfo_t.
Definition: svn_mergeinfo.h:150
svn_ra_plugin_t::name
const char * name
The proper name of the RA library, (like "ra_serf" or "ra_local")
Definition: svn_ra.h:2292
svn_ra_plugin_t
struct svn_ra_plugin_t svn_ra_plugin_t
Using this callback struct is similar to calling the newer public interface that is based on svn_ra_s...
svn_ra_progress_notify_func_t
void(* svn_ra_progress_notify_func_t)(apr_off_t progress, apr_off_t total, void *baton, apr_pool_t *pool)
Callback function type for progress notification.
Definition: svn_ra.h:219
svn_string_t
A simple counted string.
Definition: svn_string.h:96
svn_ra_open2
svn_error_t * svn_ra_open2(svn_ra_session_t **session_p, const char *repos_URL, const svn_ra_callbacks2_t *callbacks, void *callback_baton, apr_hash_t *config, apr_pool_t *pool)
Similar to svn_ra_open3(), but with uuid set to NULL.
svn_ra_callbacks2_t::tunnel_baton
void * tunnel_baton
A baton used with open_tunnel_func and close_tunnel_func.
Definition: svn_ra.h:623
svn_ra_reporter2_t
Similar to svn_ra_reporter3_t, but without support for depths.
Definition: svn_ra.h:445
svn_types.h
Subversion's data types.
svn_ra_stat
svn_error_t * svn_ra_stat(svn_ra_session_t *session, const char *path, svn_revnum_t revision, svn_dirent_t **dirent, apr_pool_t *pool)
Set *dirent to an svn_dirent_t associated with path at revision.
svn_depth_t
svn_depth_t
The concept of depth for directories.
Definition: svn_types_impl.h:110
svn_ra_invalidate_wc_props_func_t
svn_error_t *(* svn_ra_invalidate_wc_props_func_t)(void *baton, const char *path, const char *name, apr_pool_t *pool)
This is a function type which allows the RA layer to invalidate (i.e., remove) wcprops recursively.
Definition: svn_ra.h:118
svn_ra_reporter_t
struct svn_ra_reporter_t svn_ra_reporter_t
Similar to svn_ra_reporter2_t, but without support for lock tokens.
svn_ra_get_log2
svn_error_t * svn_ra_get_log2(svn_ra_session_t *session, const apr_array_header_t *paths, svn_revnum_t start, svn_revnum_t end, int limit, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_boolean_t include_merged_revisions, const apr_array_header_t *revprops, svn_log_entry_receiver_t receiver, void *receiver_baton, apr_pool_t *pool)
Invoke receiver with receiver_baton on each log message from start to end.
svn_ra_get_location_segments
svn_error_t * svn_ra_get_location_segments(svn_ra_session_t *session, const char *path, svn_revnum_t peg_revision, svn_revnum_t start_rev, svn_revnum_t end_rev, svn_location_segment_receiver_t receiver, void *receiver_baton, apr_pool_t *pool)
Call receiver (with receiver_baton) for each segment in the location history of path in peg_revision,...
svn_mergeinfo_inheritance_t
svn_mergeinfo_inheritance_t
The three ways to request mergeinfo affecting a given path.
Definition: svn_mergeinfo.h:600
svn_log_message_receiver_t
svn_error_t *(* svn_log_message_receiver_t)(void *baton, apr_hash_t *changed_paths, svn_revnum_t revision, const char *author, const char *date, const char *message, apr_pool_t *pool)
Similar to svn_log_entry_receiver_t, except this uses separate parameters for each part of the log en...
Definition: svn_types.h:978
svn_lock_t
A lock object, for client & server to share.
Definition: svn_types.h:1108
svn_ra_callbacks2_t::auth_baton
svn_auth_baton_t * auth_baton
An authentication baton, created by the application, which is capable of retrieving all known types o...
Definition: svn_ra.h:547
svn_ra_do_status
svn_error_t * svn_ra_do_status(svn_ra_session_t *session, const svn_ra_reporter2_t **reporter, void **report_baton, const char *status_target, svn_revnum_t revision, svn_boolean_t recurse, const svn_delta_editor_t *status_editor, void *status_baton, apr_pool_t *pool)
Similar to svn_ra_do_status2(), but taking svn_ra_reporter2_t instead of svn_ra_reporter3_t,...
svn_ra_get_repos_root2
svn_error_t * svn_ra_get_repos_root2(svn_ra_session_t *session, const char **url, apr_pool_t *pool)
Set *url to the repository's root URL, allocated in pool.
svn_commit_callback2_t
svn_error_t *(* svn_commit_callback2_t)(const svn_commit_info_t *commit_info, void *baton, apr_pool_t *pool)
Callback function type for commits.
Definition: svn_types.h:1001
svn_ra_create_callbacks
svn_error_t * svn_ra_create_callbacks(svn_ra_callbacks2_t **callbacks, apr_pool_t *pool)
Initialize a callback structure.
svn_ra_session_t
struct svn_ra_session_t svn_ra_session_t
A repository access session.
Definition: svn_ra.h:685
svn_ra_replay_range
svn_error_t * svn_ra_replay_range(svn_ra_session_t *session, svn_revnum_t start_revision, svn_revnum_t end_revision, svn_revnum_t low_water_mark, svn_boolean_t send_deltas, svn_ra_replay_revstart_callback_t revstart_func, svn_ra_replay_revfinish_callback_t revfinish_func, void *replay_baton, apr_pool_t *pool)
Replay the changes from a range of revisions between start_revision and end_revision (inclusive).
svn_ra_change_rev_prop2
svn_error_t * svn_ra_change_rev_prop2(svn_ra_session_t *session, svn_revnum_t rev, const char *name, const svn_string_t *const *old_value_p, const svn_string_t *value, apr_pool_t *pool)
Set the property name to value on revision rev in the repository of session.
svn_ra_unlock
svn_error_t * svn_ra_unlock(svn_ra_session_t *session, apr_hash_t *path_tokens, svn_boolean_t break_lock, svn_ra_lock_callback_t lock_func, void *lock_baton, apr_pool_t *pool)
Remove the repository lock for each path in path_tokens.
svn_commit_callback_t
svn_error_t *(* svn_commit_callback_t)(svn_revnum_t new_revision, const char *date, const char *author, void *baton)
Same as svn_commit_callback2_t, but uses individual data elements instead of the svn_commit_info_t st...
Definition: svn_types.h:1011
svn_ra_callbacks_t
Similar to svn_ra_callbacks2_t, except that the progress notification function and baton is missing.
Definition: svn_ra.h:631
svn_ra_callbacks2_t::get_wc_prop
svn_ra_get_wc_prop_func_t get_wc_prop
Fetch working copy properties.
Definition: svn_ra.h:562
svn_ra_get_locks2
svn_error_t * svn_ra_get_locks2(svn_ra_session_t *session, apr_hash_t **locks, const char *path, svn_depth_t depth, apr_pool_t *pool)
Set *locks to a hashtable which represents all locks on or below path.
svn_location_segment_receiver_t
svn_error_t *(* svn_location_segment_receiver_t)(svn_location_segment_t *segment, void *baton, apr_pool_t *pool)
A callback invoked by generators of svn_location_segment_t objects, used to report information about ...
Definition: svn_types.h:1223
svn_ra_check_path
svn_error_t * svn_ra_check_path(svn_ra_session_t *session, const char *path, svn_revnum_t revision, svn_node_kind_t *kind, apr_pool_t *pool)
Set *kind to the node kind associated with path at revision.
svn_ra_reporter2_t
struct svn_ra_reporter2_t svn_ra_reporter2_t
Similar to svn_ra_reporter3_t, but without support for depths.
svn_ra_callbacks2_t
struct svn_ra_callbacks2_t svn_ra_callbacks2_t
A collection of callbacks implemented by libsvn_client which allows an RA layer to "pull" information...
svn_ra_get_latest_revnum
svn_error_t * svn_ra_get_latest_revnum(svn_ra_session_t *session, svn_revnum_t *latest_revnum, apr_pool_t *pool)
Get the latest revision number from the repository of session.
svn_ra_reparent
svn_error_t * svn_ra_reparent(svn_ra_session_t *ra_session, const char *url, apr_pool_t *pool)
Change the root URL of an open ra_session to point to a new path in the same repository.
svn_ra_dirent_receiver_t
svn_error_t *(* svn_ra_dirent_receiver_t)(const char *rel_path, svn_dirent_t *dirent, void *baton, apr_pool_t *scratch_pool)
Callback type to be used with svn_ra_list().
Definition: svn_ra.h:1145
svn_ra_get_ra_library
svn_error_t * svn_ra_get_ra_library(svn_ra_plugin_t **library, void *ra_baton, const char *url, apr_pool_t *pool)
Return an RA vtable-library which can handle URL.
svn_ra_version
const svn_version_t * svn_ra_version(void)
Get libsvn_ra version information.
svn_dirent_t
A general subversion directory entry.
Definition: svn_types.h:563
svn_ra_open4
svn_error_t * svn_ra_open4(svn_ra_session_t **session_p, const char **corrected_url, const char *repos_URL, const char *uuid, const svn_ra_callbacks2_t *callbacks, void *callback_baton, apr_hash_t *config, apr_pool_t *pool)
Open a repository access session to the repository at repos_URL, or inform the caller regarding a cor...
svn_ra_get_dir
svn_error_t * svn_ra_get_dir(svn_ra_session_t *session, const char *path, svn_revnum_t revision, apr_hash_t **dirents, svn_revnum_t *fetched_rev, apr_hash_t **props, apr_pool_t *pool)
Similar to svn_ra_get_dir2, but with SVN_DIRENT_ALL for the dirent_fields parameter.
svn_txdelta_window_handler_t
svn_error_t *(* svn_txdelta_window_handler_t)(svn_txdelta_window_t *window, void *baton)
A typedef for functions that consume a series of delta windows, for use in caller-pushes interfaces.
Definition: svn_delta.h:265
svn_ra_check_tunnel_func_t
svn_boolean_t(* svn_ra_check_tunnel_func_t)(void *tunnel_baton, const char *tunnel_name)
Callback function that checks if an ra_svn tunnel called tunnel_name is handled by the callbakcs or t...
Definition: svn_ra.h:283
svn_ra_get_path_relative_to_root
svn_error_t * svn_ra_get_path_relative_to_root(svn_ra_session_t *ra_session, const char **rel_path, const char *url, apr_pool_t *pool)
Convert url into a path relative to the repository root URL of the repository with which ra_session i...
svn_boolean_t
int svn_boolean_t
YABT: Yet Another Boolean Type.
Definition: svn_types.h:141
SVN_DEPRECATED
#define SVN_DEPRECATED
Macro used to mark deprecated functions.
Definition: svn_types.h:62
svn_ra_callbacks2_t::check_tunnel_func
svn_ra_check_tunnel_func_t check_tunnel_func
Check-tunnel callback.
Definition: svn_ra.h:608
svn_revnum_t
long int svn_revnum_t
A revision number.
Definition: svn_types_impl.h:95
svn_node_kind_t
svn_node_kind_t
The various types of nodes in the Subversion filesystem.
Definition: svn_types_impl.h:50
svn_ra_reporter3_t
The update Reporter.
Definition: svn_ra.h:356
svn_log_entry_receiver_t
svn_error_t *(* svn_log_entry_receiver_t)(void *baton, svn_log_entry_t *log_entry, apr_pool_t *pool)
The callback invoked by log message loopers, such as svn_ra_plugin_t.get_log() and svn_repos_get_logs...
Definition: svn_types.h:967
svn_ra_do_diff2
svn_error_t * svn_ra_do_diff2(svn_ra_session_t *session, const svn_ra_reporter2_t **reporter, void **report_baton, svn_revnum_t revision, const char *diff_target, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t text_deltas, const char *versus_url, const svn_delta_editor_t *diff_editor, void *diff_baton, apr_pool_t *pool)
Similar to svn_ra_do_diff3(), but taking svn_ra_reporter2_t instead of svn_ra_reporter3_t,...
svn_ra_get_inherited_props
svn_error_t * svn_ra_get_inherited_props(svn_ra_session_t *session, apr_array_header_t **inherited_props, const char *path, svn_revnum_t revision, apr_pool_t *result_pool, apr_pool_t *scratch_pool)
Set *inherited_props to a depth-first ordered array of svn_prop_inherited_item_t * structures represe...
svn_ra_get_uuid2
svn_error_t * svn_ra_get_uuid2(svn_ra_session_t *session, const char **uuid, apr_pool_t *pool)
Set *uuid to the repository's UUID, allocated in pool.
svn_ra_get_locations
svn_error_t * svn_ra_get_locations(svn_ra_session_t *session, apr_hash_t **locations, const char *path, svn_revnum_t peg_revision, const apr_array_header_t *location_revisions, apr_pool_t *pool)
Set *locations to the locations (at the repository revisions location_revisions) of the file identifi...
svn_cancel_func_t
svn_error_t *(* svn_cancel_func_t)(void *cancel_baton)
A user defined callback that subversion will call with a user defined baton to see if the current ope...
Definition: svn_types.h:1085
svn_ra_replay_revfinish_callback_t
svn_error_t *(* svn_ra_replay_revfinish_callback_t)(svn_revnum_t revision, void *replay_baton, const svn_delta_editor_t *editor, void *edit_baton, apr_hash_t *rev_props, apr_pool_t *pool)
Callback function type for replay_range actions.
Definition: svn_ra.h:265
svn_ra_print_modules
svn_error_t * svn_ra_print_modules(svn_stringbuf_t *output, apr_pool_t *pool)
Append a textual list of all available RA modules to the stringbuf output.
svn_delta_editor_t
A structure full of callback functions the delta source will invoke as it produces the delta.
Definition: svn_delta.h:883
svn_ra_callbacks2_t::push_wc_prop
svn_ra_push_wc_prop_func_t push_wc_prop
Schedule new values for working copy properties.
Definition: svn_ra.h:568
svn_ra_get_commit_editor
svn_error_t * svn_ra_get_commit_editor(svn_ra_session_t *session, const svn_delta_editor_t **editor, void **edit_baton, const char *log_msg, svn_commit_callback_t callback, void *callback_baton, apr_hash_t *lock_tokens, svn_boolean_t keep_locks, apr_pool_t *pool)
Same as svn_ra_get_commit_editor2(), but uses svn_commit_callback_t.
svn_ra_do_switch3
svn_error_t * svn_ra_do_switch3(svn_ra_session_t *session, const svn_ra_reporter3_t **reporter, void **report_baton, svn_revnum_t revision_to_switch_to, const char *switch_target, svn_depth_t depth, const char *switch_url, svn_boolean_t send_copyfrom_args, svn_boolean_t ignore_ancestry, const svn_delta_editor_t *switch_editor, void *switch_baton, apr_pool_t *result_pool, apr_pool_t *scratch_pool)
Ask the RA layer to switch a working copy to a new revision and URL.
svn_ra_do_update
svn_error_t * svn_ra_do_update(svn_ra_session_t *session, const svn_ra_reporter2_t **reporter, void **report_baton, svn_revnum_t revision_to_update_to, const char *update_target, svn_boolean_t recurse, const svn_delta_editor_t *update_editor, void *update_baton, apr_pool_t *pool)
Similar to svn_ra_do_update2(), but taking svn_ra_reporter2_t instead of svn_ra_reporter3_t; if recur...
svn_ra_print_ra_libraries
svn_error_t * svn_ra_print_ra_libraries(svn_stringbuf_t **descriptions, void *ra_baton, apr_pool_t *pool)
Similar to svn_ra_print_modules().
svn_ra_callbacks2_t
A collection of callbacks implemented by libsvn_client which allows an RA layer to "pull" information...
Definition: svn_ra.h:533
svn_file_rev_handler_t
svn_error_t *(* svn_file_rev_handler_t)(void *baton, const char *path, svn_revnum_t rev, apr_hash_t *rev_props, svn_boolean_t result_of_merge, svn_txdelta_window_handler_t *delta_handler, void **delta_baton, apr_array_header_t *prop_diffs, apr_pool_t *pool)
The callback invoked by file rev loopers, such as svn_ra_plugin_t.get_file_revs2() and svn_repos_get_...
Definition: svn_delta.h:1519
svn_ra_rev_prop
svn_error_t * svn_ra_rev_prop(svn_ra_session_t *session, svn_revnum_t rev, const char *name, svn_string_t **value, apr_pool_t *pool)
Set *value to the value of unversioned property name attached to revision rev in the repository of se...
svn_ra_lock_callback_t
svn_error_t *(* svn_ra_lock_callback_t)(void *baton, const char *path, svn_boolean_t do_lock, const svn_lock_t *lock, svn_error_t *ra_err, apr_pool_t *pool)
Callback function type for locking and unlocking actions.
Definition: svn_ra.h:203
svn_ra_close_tunnel_func_t
void(* svn_ra_close_tunnel_func_t)(void *close_baton, void *tunnel_baton)
Callback function for closing a tunnel in ra_svn.
Definition: svn_ra.h:299
svn_ra_get_client_string_func_t
svn_error_t *(* svn_ra_get_client_string_func_t)(void *baton, const char **name, apr_pool_t *pool)
A function type which allows the RA layer to ask about any customizations to the client name string.
Definition: svn_ra.h:152
svn_ra_callbacks2_t::progress_func
svn_ra_progress_notify_func_t progress_func
Notification callback used for progress information.
Definition: svn_ra.h:576
svn_stringbuf_t
A buffered string, capable of appending without an allocation and copy for each append.
Definition: svn_string.h:104
svn_ra_callbacks2_t::invalidate_wc_props
svn_ra_invalidate_wc_props_func_t invalidate_wc_props
Invalidate working copy properties.
Definition: svn_ra.h:571
svn_ra_get_log
svn_error_t * svn_ra_get_log(svn_ra_session_t *session, const apr_array_header_t *paths, svn_revnum_t start, svn_revnum_t end, int limit, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_log_message_receiver_t receiver, void *receiver_baton, apr_pool_t *pool)
Similar to svn_ra_get_log2(), but uses svn_log_message_receiver_t instead of svn_log_entry_receiver_t...
svn_auth_baton_t
struct svn_auth_baton_t svn_auth_baton_t
The type of a Subversion authentication object.
Definition: svn_auth.h:87
svn_mergeinfo.h
mergeinfo handling and processing
svn_version_t
Version information.
Definition: svn_version.h:147
svn_ra_set_wc_prop_func_t
svn_error_t *(* svn_ra_set_wc_prop_func_t)(void *baton, const char *path, const char *name, const svn_string_t *value, apr_pool_t *pool)
This is a function type which allows the RA layer to store new working copy properties during update-...
Definition: svn_ra.h:85
svn_ra_rev_proplist
svn_error_t * svn_ra_rev_proplist(svn_ra_session_t *session, svn_revnum_t rev, apr_hash_t **props, apr_pool_t *pool)
Set *props to the list of unversioned properties attached to revision rev in the repository of sessio...
svn_ra_plugin_t::description
const char * description
Short doc string printed out by svn --version
Definition: svn_ra.h:2295
svn_delta.h
Delta-parsing.
svn_ra_do_diff3
svn_error_t * svn_ra_do_diff3(svn_ra_session_t *session, const svn_ra_reporter3_t **reporter, void **report_baton, svn_revnum_t revision, const char *diff_target, svn_depth_t depth, svn_boolean_t ignore_ancestry, svn_boolean_t text_deltas, const char *versus_url, const svn_delta_editor_t *diff_editor, void *diff_baton, apr_pool_t *pool)
Ask the RA layer to 'diff' a working copy against versus_url; it's another form of svn_ra_do_update2(...
svn_ra_callbacks2_t::open_tunnel_func
svn_ra_open_tunnel_func_t open_tunnel_func
Open-tunnel callback.
Definition: svn_ra.h:618
svn_ra_get_dir2
svn_error_t * svn_ra_get_dir2(svn_ra_session_t *session, apr_hash_t **dirents, svn_revnum_t *fetched_rev, apr_hash_t **props, const char *path, svn_revnum_t revision, apr_uint32_t dirent_fields, apr_pool_t *pool)
If dirents is non NULL, set *dirents to contain all the entries of directory path at revision.
svn_ra_get_mergeinfo
svn_error_t * svn_ra_get_mergeinfo(svn_ra_session_t *session, svn_mergeinfo_catalog_t *catalog, const apr_array_header_t *paths, svn_revnum_t revision, svn_mergeinfo_inheritance_t inherit, svn_boolean_t include_descendants, apr_pool_t *pool)
Set *catalog to a mergeinfo catalog for the paths in paths.
svn_ra_reporter3_t
struct svn_ra_reporter3_t svn_ra_reporter3_t
The update Reporter.
svn_ra_do_status2
svn_error_t * svn_ra_do_status2(svn_ra_session_t *session, const svn_ra_reporter3_t **reporter, void **report_baton, const char *status_target, svn_revnum_t revision, svn_depth_t depth, const svn_delta_editor_t *status_editor, void *status_baton, apr_pool_t *pool)
Ask the RA layer to describe the status of a working copy with respect to revision of the repository ...