Change the format of the revprops block sent in svnserve for
[svn.git] / subversion / include / svn_ra.h
blob2dc0127318efd83e2695036006d9ba40b2e8543d
1 /**
2 * @copyright
3 * ====================================================================
4 * Copyright (c) 2000-2008 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
16 * @endcopyright
18 * @file svn_ra.h
19 * @brief Repository Access
25 #ifndef SVN_RA_H
26 #define SVN_RA_H
28 #include <apr_pools.h>
29 #include <apr_tables.h>
31 #include "svn_error.h"
32 #include "svn_delta.h"
33 #include "svn_auth.h"
34 #include "svn_mergeinfo.h"
36 #ifdef __cplusplus
37 extern "C" {
38 #endif /* __cplusplus */
42 /* Misc. declarations */
44 /**
45 * Get libsvn_ra version information.
47 * @since New in 1.1.
49 const svn_version_t *svn_ra_version(void);
52 /** This is a function type which allows the RA layer to fetch working
53 * copy (WC) properties.
55 * The @a baton is provided along with the function pointer and should
56 * be passed back in. This will be the @a callback_baton or the
57 * @a close_baton as appropriate.
59 * @a path is relative to the "root" of the session, defined by the
60 * @a repos_url passed to svn_ra_open2() vtable call.
62 * @a name is the name of the property to fetch. If the property is present,
63 * then it is returned in @a value. Otherwise, @a *value is set to @c NULL.
65 typedef svn_error_t *(*svn_ra_get_wc_prop_func_t)(void *baton,
66 const char *relpath,
67 const char *name,
68 const svn_string_t **value,
69 apr_pool_t *pool);
71 /** This is a function type which allows the RA layer to store new
72 * working copy properties during update-like operations. See the
73 * comments for @c svn_ra_get_wc_prop_func_t for @a baton, @a path, and
74 * @a name. The @a value is the value that will be stored for the property;
75 * a NULL @a value means the property will be deleted.
77 typedef svn_error_t *(*svn_ra_set_wc_prop_func_t)(void *baton,
78 const char *path,
79 const char *name,
80 const svn_string_t *value,
81 apr_pool_t *pool);
83 /** This is a function type which allows the RA layer to store new
84 * working copy properties as part of a commit. See the comments for
85 * @c svn_ra_get_wc_prop_func_t for @a baton, @a path, and @a name.
86 * The @a value is the value that will be stored for the property; a
87 * @c NULL @a value means the property will be deleted.
89 * Note that this might not actually store the new property before
90 * returning, but instead schedule it to be changed as part of
91 * post-commit processing (in which case a successful commit means the
92 * properties got written). Thus, during the commit, it is possible
93 * to invoke this function to set a new value for a wc prop, then read
94 * the wc prop back from the working copy and get the *old* value.
95 * Callers beware.
97 typedef svn_error_t *(*svn_ra_push_wc_prop_func_t)(void *baton,
98 const char *path,
99 const char *name,
100 const svn_string_t *value,
101 apr_pool_t *pool);
103 /** This is a function type which allows the RA layer to invalidate
104 * (i.e., remove) wcprops recursively. See the documentation for
105 * @c svn_ra_get_wc_prop_func_t for @a baton, @a path, and @a name.
107 * Unlike @c svn_ra_push_wc_prop_func_t, this has immediate effect. If
108 * it returns success, the wcprops have been removed.
110 typedef svn_error_t *(*svn_ra_invalidate_wc_props_func_t)(void *baton,
111 const char *path,
112 const char *name,
113 apr_pool_t *pool);
116 /** A function type for retrieving the youngest revision from a repos. */
117 typedef svn_error_t *(*svn_ra_get_latest_revnum_func_t)
118 (void *session_baton,
119 svn_revnum_t *latest_revnum);
121 /** A function type which allows the RA layer to ask about any
122 * customizations to the client name string. This is primarily used
123 * by HTTP-based RA layers wishing to extend the string reported to
124 * Apache/mod_dav_svn via the User-agent HTTP header.
126 typedef svn_error_t *(*svn_ra_get_client_string_func_t)(void *baton,
127 const char **name,
128 apr_pool_t *pool);
132 * A callback function type for use in @c get_file_revs.
133 * @a baton is provided by the caller, @a path is the pathname of the file
134 * in revision @a rev and @a rev_props are the revision properties.
135 * If @a delta_handler and @a delta_baton are non-NULL, they may be set to a
136 * handler/baton which will be called with the delta between the previous
137 * revision and this one after the return of this callback. They may be
138 * left as NULL/NULL.
139 * @a prop_diffs is an array of svn_prop_t elements indicating the property
140 * delta for this and the previous revision.
141 * @a pool may be used for temporary allocations, but you can't rely
142 * on objects allocated to live outside of this particular call and the
143 * immediately following calls to @a *delta_handler, if any.
145 * @since New in 1.1.
147 typedef svn_error_t *(*svn_ra_file_rev_handler_t)
148 (void *baton,
149 const char *path,
150 svn_revnum_t rev,
151 apr_hash_t *rev_props,
152 svn_txdelta_window_handler_t *delta_handler,
153 void **delta_baton,
154 apr_array_header_t *prop_diffs,
155 apr_pool_t *pool);
158 * Callback function type for locking and unlocking actions.
160 * @since New in 1.2.
162 * @a do_lock is TRUE when locking @a path, and FALSE
163 * otherwise.
165 * @a lock is a lock for @a path or NULL if @a do_lock is FALSE or @a ra_err is
166 * non-NULL.
168 * @a ra_err is NULL unless the ra layer encounters a locking related
169 * error which it passes back for notification purposes. The caller
170 * is responsible for clearing @a ra_err after the callback is run.
172 * @a baton is a closure object; it should be provided by the
173 * implementation, and passed by the caller. @a pool may be used for
174 * temporary allocation.
176 typedef svn_error_t *(*svn_ra_lock_callback_t)(void *baton,
177 const char *path,
178 svn_boolean_t do_lock,
179 const svn_lock_t *lock,
180 svn_error_t *ra_err,
181 apr_pool_t *pool);
184 * Callback function type for progress notification.
186 * @a progress is the number of bytes already transferred, @a total is
187 * the total number of bytes to transfer or -1 if it's not known, @a
188 * baton is the callback baton.
190 * @since New in 1.3.
192 typedef void (*svn_ra_progress_notify_func_t)(apr_off_t progress,
193 apr_off_t total,
194 void *baton,
195 apr_pool_t *pool);
198 * Callback function type for replay_range actions.
200 * This callback function should provide replay_range with an editor which
201 * will be driven with the received replay reports from the master repository.
203 * @a revision is the target revision number of the received replay report.
205 * @a editor and @a edit_baton should provided by the callback implementation.
207 * @a replay_baton is the baton as originally passed to replay_range.
209 * @a revprops contains key/value pairs for each revision properties for this
210 * revision.
212 * @since New in 1.5.
214 typedef svn_error_t *(*svn_ra_replay_revstart_callback_t)
215 (svn_revnum_t revision,
216 void *replay_baton,
217 const svn_delta_editor_t **editor,
218 void **edit_baton,
219 apr_hash_t *rev_props,
220 apr_pool_t *pool);
223 * Callback function type for replay_range actions.
225 * This callback function should close the editor.
227 * @a revision is the target revision number of the received replay report.
229 * @a editor and @a edit_baton should provided by the callback implementation.
231 * @a replay_baton is the baton as originally passed to replay_range.
233 * @a revprops contains key/value pairs for each revision properties for this
234 * revision.
236 * @since New in 1.5.
238 typedef svn_error_t *(*svn_ra_replay_revfinish_callback_t)
239 (svn_revnum_t revision,
240 void *replay_baton,
241 const svn_delta_editor_t *editor,
242 void *edit_baton,
243 apr_hash_t *rev_props,
244 apr_pool_t *pool);
248 * The update Reporter.
250 * A vtable structure which allows a working copy to describe a subset
251 * (or possibly all) of its working-copy to an RA layer, for the
252 * purposes of an update, switch, status, or diff operation.
254 * Paths for report calls are relative to the target (not the anchor)
255 * of the operation. Report calls must be made in depth-first order:
256 * parents before children, all children of a parent before any
257 * siblings of the parent. The first report call must be a set_path
258 * with a @a path argument of "" and a valid revision. (If the target
259 * of the operation is locally deleted or missing, use the anchor's
260 * revision.) If the target of the operation is deleted or switched
261 * relative to the anchor, follow up the initial set_path call with a
262 * link_path or delete_path call with a @a path argument of "" to
263 * indicate that. In no other case may there be two report
264 * descriptions for the same path. If the target of the operation is
265 * a locally added file or directory (which previously did not exist),
266 * it may be reported as having revision 0 or as having the parent
267 * directory's revision.
269 * @since New in 1.5.
271 typedef struct svn_ra_reporter3_t
273 /** Describe a working copy @a path as being at a particular
274 * @a revision and having depth @a depth.
276 * @a revision may be SVN_INVALID_REVNUM if (for example) @a path
277 * represents a locally-added path with no revision number, or @a
278 * depth is @c svn_depth_exclude.
280 * @a path may not be underneath a path on which set_path() was
281 * previously called with @c svn_depth_exclude in this report.
283 * If @a start_empty is set and @a path is a directory, the
284 * implementor should assume the directory has no entries or props.
286 * This will *override* any previous set_path() calls made on parent
287 * paths. @a path is relative to the URL specified in svn_ra_open2().
289 * If @a lock_token is non-NULL, it is the lock token for @a path in the WC.
291 * All temporary allocations are done in @a pool.
293 svn_error_t *(*set_path)(void *report_baton,
294 const char *path,
295 svn_revnum_t revision,
296 svn_depth_t depth,
297 svn_boolean_t start_empty,
298 const char *lock_token,
299 apr_pool_t *pool);
301 /** Describing a working copy @a path as missing.
303 * @a path may not be underneath a path on which set_path() was
304 * previously called with @c svn_depth_exclude in this report.
306 * All temporary allocations are done in @a pool.
308 svn_error_t *(*delete_path)(void *report_baton,
309 const char *path,
310 apr_pool_t *pool);
312 /** Like set_path(), but differs in that @a path in the working copy
313 * (relative to the root of the report driver) isn't a reflection of
314 * @a path in the repository (relative to the URL specified when
315 * opening the RA layer), but is instead a reflection of a different
316 * repository @a url at @a revision, and has depth @a depth.
318 * @a path may not be underneath a path on which set_path() was
319 * previously called with @c svn_depth_exclude in this report.
321 * If @a start_empty is set and @a path is a directory,
322 * the implementor should assume the directory has no entries or props.
324 * If @a lock_token is non-NULL, it is the lock token for @a path in the WC.
326 * All temporary allocations are done in @a pool.
328 svn_error_t *(*link_path)(void *report_baton,
329 const char *path,
330 const char *url,
331 svn_revnum_t revision,
332 svn_depth_t depth,
333 svn_boolean_t start_empty,
334 const char *lock_token,
335 apr_pool_t *pool);
337 /** WC calls this when the state report is finished; any directories
338 * or files not explicitly `set' are assumed to be at the
339 * baseline revision originally passed into do_update(). No other
340 * reporting functions, including abort_report, should be called after
341 * calling this function.
343 svn_error_t *(*finish_report)(void *report_baton,
344 apr_pool_t *pool);
346 /** If an error occurs during a report, this routine should cause the
347 * filesystem transaction to be aborted & cleaned up. No other reporting
348 * functions should be called after calling this function.
350 svn_error_t *(*abort_report)(void *report_baton,
351 apr_pool_t *pool);
353 } svn_ra_reporter3_t;
356 * Similar to @c svn_ra_reporter3_t, but without support for depths.
358 * @deprecated Provided for backward compatibility with the 1.4 API.
360 typedef struct svn_ra_reporter2_t
362 /** Similar to the corresponding field in @c svn_ra_reporter3_t, but
363 * with @a depth always set to @c svn_depth_infinity. */
364 svn_error_t *(*set_path)(void *report_baton,
365 const char *path,
366 svn_revnum_t revision,
367 svn_boolean_t start_empty,
368 const char *lock_token,
369 apr_pool_t *pool);
371 /** Same as the corresponding field in @c svn_ra_reporter3_t. */
372 svn_error_t *(*delete_path)(void *report_baton,
373 const char *path,
374 apr_pool_t *pool);
376 /** Similar to the corresponding field in @c svn_ra_reporter3_t, but
377 * with @a depth always set to @c svn_depth_infinity. */
378 svn_error_t *(*link_path)(void *report_baton,
379 const char *path,
380 const char *url,
381 svn_revnum_t revision,
382 svn_boolean_t start_empty,
383 const char *lock_token,
384 apr_pool_t *pool);
386 /** Same as the corresponding field in @c svn_ra_reporter3_t. */
387 svn_error_t *(*finish_report)(void *report_baton,
388 apr_pool_t *pool);
390 /** Same as the corresponding field in @c svn_ra_reporter3_t. */
391 svn_error_t *(*abort_report)(void *report_baton,
392 apr_pool_t *pool);
394 } svn_ra_reporter2_t;
397 * Similar to @c svn_ra_reporter2_t, but without support for lock tokens.
399 * @deprecated Provided for backward compatibility with the 1.1 API.
401 typedef struct svn_ra_reporter_t
403 /** Similar to the corresponding field in @c svn_ra_reporter2_t, but
404 * with @a lock_token always set to NULL. */
405 svn_error_t *(*set_path)(void *report_baton,
406 const char *path,
407 svn_revnum_t revision,
408 svn_boolean_t start_empty,
409 apr_pool_t *pool);
411 /** Same as the corresponding field in @c svn_ra_reporter2_t. */
412 svn_error_t *(*delete_path)(void *report_baton,
413 const char *path,
414 apr_pool_t *pool);
416 /** Similar to the corresponding field in @c svn_ra_reporter2_t, but
417 * with @a lock_token always set to NULL. */
418 svn_error_t *(*link_path)(void *report_baton,
419 const char *path,
420 const char *url,
421 svn_revnum_t revision,
422 svn_boolean_t start_empty,
423 apr_pool_t *pool);
425 /** Same as the corresponding field in @c svn_ra_reporter2_t. */
426 svn_error_t *(*finish_report)(void *report_baton,
427 apr_pool_t *pool);
429 /** Same as the corresponding field in @c svn_ra_reporter2_t. */
430 svn_error_t *(*abort_report)(void *report_baton,
431 apr_pool_t *pool);
432 } svn_ra_reporter_t;
435 /** A collection of callbacks implemented by libsvn_client which allows
436 * an RA layer to "pull" information from the client application, or
437 * possibly store information. libsvn_client passes this vtable to
438 * svn_ra_open2().
440 * Each routine takes a @a callback_baton originally provided with the
441 * vtable.
443 * Clients must use svn_ra_create_callbacks() to allocate and
444 * initialize this structure.
446 * @since New in 1.3.
448 typedef struct svn_ra_callbacks2_t
450 /** Open a unique temporary file for writing in the working copy.
451 * This file will be automatically deleted when @a fp is closed.
453 svn_error_t *(*open_tmp_file)(apr_file_t **fp,
454 void *callback_baton,
455 apr_pool_t *pool);
457 /** An authentication baton, created by the application, which is
458 * capable of retrieving all known types of credentials.
460 svn_auth_baton_t *auth_baton;
462 /*** The following items may be set to NULL to disallow the RA layer
463 to perform the respective operations of the vtable functions.
464 Perhaps WC props are not defined or are in invalid for this
465 session, or perhaps the commit operation this RA session will
466 perform is a server-side only one that shouldn't do post-commit
467 processing on a working copy path. ***/
469 /** Fetch working copy properties.
471 *<pre> ### we might have a problem if the RA layer ever wants a property
472 * ### that corresponds to a different revision of the file than
473 * ### what is in the WC. we'll cross that bridge one day...</pre>
475 svn_ra_get_wc_prop_func_t get_wc_prop;
477 /** Immediately set new values for working copy properties. */
478 svn_ra_set_wc_prop_func_t set_wc_prop;
480 /** Schedule new values for working copy properties. */
481 svn_ra_push_wc_prop_func_t push_wc_prop;
483 /** Invalidate working copy properties. */
484 svn_ra_invalidate_wc_props_func_t invalidate_wc_props;
486 /** Notification callback used for progress information.
487 * May be NULL if not used.
489 svn_ra_progress_notify_func_t progress_func;
491 /** Notification callback baton, used with progress_func. */
492 void *progress_baton;
494 /** Cancelation function
496 * As its baton, the general callback baton is used
498 * @since New in 1.5
500 svn_cancel_func_t cancel_func;
502 /** Client string customization callback function
503 * @since New in 1.5
505 svn_ra_get_client_string_func_t get_client_string;
507 } svn_ra_callbacks2_t;
509 /** Similar to svn_ra_callbacks2_t, except that the progress
510 * notification function and baton is missing.
512 * @deprecated Provided for backward compatibility with the 1.2 API.
514 typedef struct svn_ra_callbacks_t
516 svn_error_t *(*open_tmp_file)(apr_file_t **fp,
517 void *callback_baton,
518 apr_pool_t *pool);
520 svn_auth_baton_t *auth_baton;
522 svn_ra_get_wc_prop_func_t get_wc_prop;
524 svn_ra_set_wc_prop_func_t set_wc_prop;
526 svn_ra_push_wc_prop_func_t push_wc_prop;
528 svn_ra_invalidate_wc_props_func_t invalidate_wc_props;
530 } svn_ra_callbacks_t;
534 /*----------------------------------------------------------------------*/
536 /* Public Interfaces. */
539 * Initialize the RA library. This function must be called before using
540 * any function in this header, except the deprecated APIs based on
541 * @c svn_ra_plugin_t, or svn_ra_version(). This function must not be called
542 * simultaneously in multiple threads. @a pool must live
543 * longer than any open RA sessions.
545 * @since New in 1.2.
547 svn_error_t *
548 svn_ra_initialize(apr_pool_t *pool);
550 /** Initialize a callback structure.
551 * Set @a *callbacks to a ra callbacks object, allocated in @a pool.
553 * Clients must use this function to allocate and initialize @c
554 * svn_ra_callbacks2_t structures.
556 * @since New in 1.3.
558 svn_error_t *
559 svn_ra_create_callbacks(svn_ra_callbacks2_t **callbacks,
560 apr_pool_t *pool);
563 * A repository access session. This object is used to perform requests
564 * to a repository, identified by an URL.
566 * @since New in 1.2.
568 typedef struct svn_ra_session_t svn_ra_session_t;
571 * Open a repository session to @a repos_URL. Return an opaque object
572 * representing this session in @a *session_p, allocated in @a pool.
574 * @a callbacks/@a callback_baton is a table of callbacks provided by the
575 * client; see @c svn_ra_callbacks2_t.
577 * @a config is a hash mapping <tt>const char *</tt> keys to
578 * @c svn_config_t * values. For example, the @c svn_config_t for the
579 * "~/.subversion/config" file is under the key "config".
581 * All RA requests require a session; they will continue to
582 * use @a pool for memory allocation.
584 * @see svn_client_open_ra_session().
586 * @since New in 1.3.
588 svn_error_t *
589 svn_ra_open2(svn_ra_session_t **session_p,
590 const char *repos_URL,
591 const svn_ra_callbacks2_t *callbacks,
592 void *callback_baton,
593 apr_hash_t *config,
594 apr_pool_t *pool);
597 * @see svn_ra_open2().
598 * @since New in 1.2.
599 * @deprecated Provided for backward compatibility with the 1.2 API.
601 svn_error_t *
602 svn_ra_open(svn_ra_session_t **session_p,
603 const char *repos_URL,
604 const svn_ra_callbacks_t *callbacks,
605 void *callback_baton,
606 apr_hash_t *config,
607 apr_pool_t *pool);
609 /** Change the root URL of an open @a ra_session to point to a new path in the
610 * same repository. @a url is the new root URL. Use @a pool for
611 * temporary allocations.
613 * If @a url has a different repository root than the current session
614 * URL, return @c SVN_ERR_RA_ILLEGAL_URL.
616 * @since New in 1.4.
618 svn_error_t *
619 svn_ra_reparent(svn_ra_session_t *ra_session,
620 const char *url,
621 apr_pool_t *pool);
623 /** Set @a *url to the repository URL to which @a ra_session was
624 * opened or most recently reparented.
626 svn_error_t *
627 svn_ra_get_session_url(svn_ra_session_t *ra_session,
628 const char **url,
629 apr_pool_t *pool);
633 * Get the latest revision number from the repository of @a session.
635 * Use @a pool for memory allocation.
637 * @since New in 1.2.
639 svn_error_t *
640 svn_ra_get_latest_revnum(svn_ra_session_t *session,
641 svn_revnum_t *latest_revnum,
642 apr_pool_t *pool);
645 * Get the latest revision number at time @a tm in the repository of
646 * @a session.
648 * Use @a pool for memory allocation.
650 * @since New in 1.2.
652 svn_error_t *
653 svn_ra_get_dated_revision(svn_ra_session_t *session,
654 svn_revnum_t *revision,
655 apr_time_t tm,
656 apr_pool_t *pool);
659 * Set the property @a name to @a value on revision @a rev in the repository
660 * of @a session.
662 * If @a value is @c NULL, delete the named revision property.
664 * Please note that properties attached to revisions are @em unversioned.
666 * Use @a pool for memory allocation.
668 * @since New in 1.2.
670 svn_error_t *
671 svn_ra_change_rev_prop(svn_ra_session_t *session,
672 svn_revnum_t rev,
673 const char *name,
674 const svn_string_t *value,
675 apr_pool_t *pool);
678 * Set @a *props to the list of unversioned properties attached to revision
679 * @a rev in the repository of @a session. The hash maps
680 * (<tt>const char *</tt>) names to (<tt>@c svn_string_t *</tt>) values.
682 * Use @a pool for memory allocation.
684 * @since New in 1.2.
686 svn_error_t *
687 svn_ra_rev_proplist(svn_ra_session_t *session,
688 svn_revnum_t rev,
689 apr_hash_t **props,
690 apr_pool_t *pool);
693 * Set @a *value to the value of unversioned property @a name attached to
694 * revision @a rev in the repository of @a session. If @a rev has no
695 * property by that name, set @a *value to @c NULL.
697 * Use @a pool for memory allocation.
699 * @since New in 1.2.
701 svn_error_t *
702 svn_ra_rev_prop(svn_ra_session_t *session,
703 svn_revnum_t rev,
704 const char *name,
705 svn_string_t **value,
706 apr_pool_t *pool);
709 * Set @a *editor and @a *edit_baton to an editor for committing
710 * changes to the repository of @a session, setting the revision
711 * properties from @a revprop_table. The revisions being committed
712 * against are passed to the editor functions, starting with the rev
713 * argument to @c open_root. The path root of the commit is the @a
714 * session's URL.
716 * @a revprop_table is a hash mapping <tt>const char *</tt> property
717 * names to @c svn_string_t property values. The commit log message
718 * is expected to be in the @c SVN_PROP_REVISION_LOG element. @a
719 * revprop_table can not contain either of @c SVN_PROP_REVISION_DATE
720 * or @c SVN_PROP_REVISION_AUTHOR.
722 * Before @c close_edit returns, but after the commit has succeeded,
723 * it will invoke @a callback with the new revision number, the
724 * commit date (as a <tt>const char *</tt>), commit author (as a
725 * <tt>const char *</tt>), and @a callback_baton as arguments. If
726 * @a callback returns an error, that error will be returned from @c
727 * close_edit, otherwise @c close_edit will return successfully
728 * (unless it encountered an error before invoking @a callback).
730 * The callback will not be called if the commit was a no-op
731 * (i.e. nothing was committed);
733 * @a lock_tokens, if non-NULL, is a hash mapping <tt>const char
734 * *</tt> paths (relative to the URL of @a session) to <tt>
735 * const char *</tt> lock tokens. The server checks that the
736 * correct token is provided for each committed, locked path. @a lock_tokens
737 * must live during the whole commit operation.
739 * If @a keep_locks is @c TRUE, then do not release locks on
740 * committed objects. Else, automatically release such locks.
742 * The caller may not perform any RA operations using @a session before
743 * finishing the edit.
745 * Use @a pool for memory allocation.
747 * @since New in 1.5.
749 svn_error_t *
750 svn_ra_get_commit_editor3(svn_ra_session_t *session,
751 const svn_delta_editor_t **editor,
752 void **edit_baton,
753 apr_hash_t *revprop_table,
754 svn_commit_callback2_t callback,
755 void *callback_baton,
756 apr_hash_t *lock_tokens,
757 svn_boolean_t keep_locks,
758 apr_pool_t *pool);
761 * Same as svn_ra_get_commit_editor3(), but with @c revprop_table set
762 * to a hash containing the @c SVN_PROP_REVISION_LOG property set
763 * to the value of @a log_msg.
765 * @since New in 1.4.
767 * @deprecated Provided for backward compatibility with the 1.4 API.
769 svn_error_t *
770 svn_ra_get_commit_editor2(svn_ra_session_t *session,
771 const svn_delta_editor_t **editor,
772 void **edit_baton,
773 const char *log_msg,
774 svn_commit_callback2_t callback,
775 void *callback_baton,
776 apr_hash_t *lock_tokens,
777 svn_boolean_t keep_locks,
778 apr_pool_t *pool);
781 * Same as svn_ra_get_commit_editor2(), but uses @c svn_commit_callback_t.
783 * @since New in 1.2.
785 * @deprecated Provided for backward compatibility with the 1.3 API.
787 svn_error_t *
788 svn_ra_get_commit_editor(svn_ra_session_t *session,
789 const svn_delta_editor_t **editor,
790 void **edit_baton,
791 const char *log_msg,
792 svn_commit_callback_t callback,
793 void *callback_baton,
794 apr_hash_t *lock_tokens,
795 svn_boolean_t keep_locks,
796 apr_pool_t *pool);
799 * Fetch the contents and properties of file @a path at @a revision.
800 * @a revision may be SVN_INVALID_REVNUM, indicating that the HEAD
801 * revision should be used. Interpret @a path relative to the URL in
802 * @a session. Use @a pool for all allocations.
804 * If @a revision is @c SVN_INVALID_REVNUM and @a fetched_rev is not
805 * @c NULL, then set @a *fetched_rev to the actual revision that was
806 * retrieved.
808 * If @a stream is non @c NULL, push the contents of the file at @a
809 * stream, do not call svn_stream_close() when finished.
811 * If @a props is non @c NULL, set @a *props to contain the properties of
812 * the file. This means @em all properties: not just ones controlled by
813 * the user and stored in the repository fs, but non-tweakable ones
814 * generated by the SCM system itself (e.g. 'wcprops', 'entryprops',
815 * etc.) The keys are <tt>const char *</tt>, values are
816 * <tt>@c svn_string_t *</tt>.
818 * The stream handlers for @a stream may not perform any RA
819 * operations using @a session.
821 * @since New in 1.2.
823 svn_error_t *
824 svn_ra_get_file(svn_ra_session_t *session,
825 const char *path,
826 svn_revnum_t revision,
827 svn_stream_t *stream,
828 svn_revnum_t *fetched_rev,
829 apr_hash_t **props,
830 apr_pool_t *pool);
833 * If @a dirents is non @c NULL, set @a *dirents to contain all the entries
834 * of directory @a path at @a revision. The keys of @a dirents will be
835 * entry names (<tt>const char *</tt>), and the values dirents
836 * (<tt>@c svn_dirent_t *</tt>). Use @a pool for all allocations.
838 * @a dirent_fields controls which portions of the <tt>@c svn_dirent_t</tt>
839 * objects are filled in. To have them completely filled in just pass
840 * @c SVN_DIRENT_ALL, otherwise pass the bitwise OR of all the @c SVN_DIRENT_
841 * fields you would like to have returned to you.
843 * @a path is interpreted relative to the URL in @a session.
845 * If @a revision is @c SVN_INVALID_REVNUM (meaning 'head') and
846 * @a *fetched_rev is not @c NULL, then this function will set
847 * @a *fetched_rev to the actual revision that was retrieved. (Some
848 * callers want to know, and some don't.)
850 * If @a props is non @c NULL, set @a *props to contain the properties of
851 * the directory. This means @em all properties: not just ones controlled by
852 * the user and stored in the repository fs, but non-tweakable ones
853 * generated by the SCM system itself (e.g. 'wcprops', 'entryprops',
854 * etc.) The keys are <tt>const char *</tt>, values are
855 * <tt>@c svn_string_t *</tt>.
857 * @since New in 1.4.
859 svn_error_t *
860 svn_ra_get_dir2(svn_ra_session_t *session,
861 apr_hash_t **dirents,
862 svn_revnum_t *fetched_rev,
863 apr_hash_t **props,
864 const char *path,
865 svn_revnum_t revision,
866 apr_uint32_t dirent_fields,
867 apr_pool_t *pool);
870 * Similar to @c svn_ra_get_dir2, but with @c SVN_DIRENT_ALL for the
871 * @a dirent_fields parameter.
873 * @since New in 1.2.
875 * @deprecated Provided for compatibility with the 1.3 API.
877 svn_error_t *
878 svn_ra_get_dir(svn_ra_session_t *session,
879 const char *path,
880 svn_revnum_t revision,
881 apr_hash_t **dirents,
882 svn_revnum_t *fetched_rev,
883 apr_hash_t **props,
884 apr_pool_t *pool);
887 * Set @a *catalog to a mergeinfo catalog for the paths in @a paths.
888 * If no mergeinfo is available, set @a *catalog to @c NULL. The
889 * requested mergeinfo hashes are for @a paths (which are relative to
890 * @a session's URL) in @a revision. If one of the paths does not exist
891 * in that revision, return SVN_ERR_FS_NOT_FOUND.
893 * @a inherit indicates whether explicit, explicit or inherited, or
894 * only inherited mergeinfo for @a paths is retrieved.
896 * If @a include_descendants is TRUE, then additionally return the
897 * mergeinfo for any descendant of any element of @a paths which has
898 * the @c SVN_PROP_MERGEINFO property explicitly set on it. (Note
899 * that inheritance is only taken into account for the elements in @a
900 * paths; descendants of the elements in @a paths which get their
901 * mergeinfo via inheritance are not included in @a *catalog.)
903 * Allocate the returned values in @a pool.
905 * If @a revision is @c SVN_INVALID_REVNUM, it defaults to youngest.
907 * If the server doesn't support retrieval of mergeinfo (which can
908 * happen even for file:// URLs, if the repository itself hasn't been
909 * upgraded), return @c SVN_ERR_UNSUPPORTED_FEATURE in preference to
910 * any other error that might otherwise be returned.
912 * @since New in 1.5.
914 svn_error_t *
915 svn_ra_get_mergeinfo(svn_ra_session_t *session,
916 svn_mergeinfo_catalog_t *catalog,
917 const apr_array_header_t *paths,
918 svn_revnum_t revision,
919 svn_mergeinfo_inheritance_t inherit,
920 svn_boolean_t include_descendants,
921 apr_pool_t *pool);
924 * Ask the RA layer to update a working copy.
926 * The client initially provides an @a update_editor/@a update_baton to the
927 * RA layer; this editor contains knowledge of where the change will
928 * begin in the working copy (when @c open_root() is called).
930 * In return, the client receives a @a reporter/@a report_baton. The
931 * client then describes its working copy by making calls into the
932 * @a reporter.
934 * When finished, the client calls @a reporter->finish_report(). The
935 * RA layer then does a complete drive of @a update_editor, ending with
936 * @a update_editor->close_edit(), to update the working copy.
938 * @a update_target is an optional single path component to restrict
939 * the scope of the update to just that entry (in the directory
940 * represented by the @a session's URL). If @a update_target is the
941 * empty string, the entire directory is updated.
943 * Update the target only as deeply as @a depth indicates.
945 * If @a send_copyfrom_args is TRUE, then ask the server to send
946 * copyfrom arguments to add_file() and add_directory() when possible.
947 * (Note: this means that any subsequent txdeltas coming from the
948 * server are presumed to apply against the copied file!)
950 * The working copy will be updated to @a revision_to_update_to, or the
951 * "latest" revision if this arg is invalid.
953 * The caller may not perform any RA operations using @a session before
954 * finishing the report, and may not perform any RA operations using
955 * @a session from within the editing operations of @a update_editor.
957 * Use @a pool for memory allocation.
959 * @note The reporter provided by this function does NOT supply copy-
960 * from information to the diff editor callbacks.
962 * @note In order to prevent pre-1.5 servers from doing more work than
963 * needed, and sending too much data back, a pre-1.5 'recurse'
964 * directive may be sent to the server, based on @a depth.
966 * @since New in 1.5.
968 svn_error_t *
969 svn_ra_do_update2(svn_ra_session_t *session,
970 const svn_ra_reporter3_t **reporter,
971 void **report_baton,
972 svn_revnum_t revision_to_update_to,
973 const char *update_target,
974 svn_depth_t depth,
975 svn_boolean_t send_copyfrom_args,
976 const svn_delta_editor_t *update_editor,
977 void *update_baton,
978 apr_pool_t *pool);
981 * Similar to svn_ra_do_update2(), but taking @c svn_ra_reporter2_t
982 * instead of @c svn_ra_reporter3_t. If @a recurse is TRUE, pass
983 * @c svn_depth_infinity for @a depth, else pass @c svn_depth_files.
985 * @deprecated Provided for compatibility with the 1.4 API.
987 svn_error_t *
988 svn_ra_do_update(svn_ra_session_t *session,
989 const svn_ra_reporter2_t **reporter,
990 void **report_baton,
991 svn_revnum_t revision_to_update_to,
992 const char *update_target,
993 svn_boolean_t recurse,
994 const svn_delta_editor_t *update_editor,
995 void *update_baton,
996 apr_pool_t *pool);
1000 * Ask the RA layer to 'switch' a working copy to a new
1001 * @a switch_url; it's another form of svn_ra_do_update().
1003 * The client initially provides a @a switch_editor/@a switch_baton to the RA
1004 * layer; this editor contains knowledge of where the change will
1005 * begin in the working copy (when open_root() is called).
1007 * In return, the client receives a @a reporter/@a report_baton. The
1008 * client then describes its working copy by making calls into the
1009 * @a reporter.
1011 * When finished, the client calls @a reporter->finish_report(). The
1012 * RA layer then does a complete drive of @a switch_editor, ending with
1013 * close_edit(), to switch the working copy.
1015 * @a switch_target is an optional single path component will restrict
1016 * the scope of things affected by the switch to an entry in the
1017 * directory represented by the @a session's URL, or empty if the
1018 * entire directory is meant to be switched.
1020 * Switch the target only as deeply as @a depth indicates.
1022 * The working copy will be switched to @a revision_to_switch_to, or the
1023 * "latest" revision if this arg is invalid.
1025 * The caller may not perform any RA operations using
1026 * @a session before finishing the report, and may not perform
1027 * any RA operations using @a session from within the editing
1028 * operations of @a switch_editor.
1030 * Use @a pool for memory allocation.
1032 * @note The reporter provided by this function does NOT supply copy-
1033 * from information to the diff editor callbacks.
1035 * @note In order to prevent pre-1.5 servers from doing more work than
1036 * needed, and sending too much data back, a pre-1.5 'recurse'
1037 * directive may be sent to the server, based on @a depth.
1039 * @since New in 1.5.
1041 svn_error_t *
1042 svn_ra_do_switch2(svn_ra_session_t *session,
1043 const svn_ra_reporter3_t **reporter,
1044 void **report_baton,
1045 svn_revnum_t revision_to_switch_to,
1046 const char *switch_target,
1047 svn_depth_t depth,
1048 const char *switch_url,
1049 const svn_delta_editor_t *switch_editor,
1050 void *switch_baton,
1051 apr_pool_t *pool);
1054 * Similar to svn_ra_do_switch2(), but taking @c svn_ra_reporter2_t
1055 * instead of @c svn_ra_reporter3_t, and therefore only able to report
1056 * @c svn_depth_infinity for depths. The switch itself is performed
1057 * according to @a recurse: if TRUE, then use @c svn_depth_infinity
1058 * for @a depth, else use @c svn_depth_files.
1060 * @deprecated Provided for compatibility with the 1.4 API.
1062 svn_error_t *
1063 svn_ra_do_switch(svn_ra_session_t *session,
1064 const svn_ra_reporter2_t **reporter,
1065 void **report_baton,
1066 svn_revnum_t revision_to_switch_to,
1067 const char *switch_target,
1068 svn_boolean_t recurse,
1069 const char *switch_url,
1070 const svn_delta_editor_t *switch_editor,
1071 void *switch_baton,
1072 apr_pool_t *pool);
1075 * Ask the RA layer to describe the status of a working copy with respect
1076 * to @a revision of the repository (or HEAD, if @a revision is invalid).
1078 * The client initially provides a @a status_editor/@a status_baton to the RA
1079 * layer; this editor contains knowledge of where the change will
1080 * begin in the working copy (when open_root() is called).
1082 * In return, the client receives a @a reporter/@a report_baton. The
1083 * client then describes its working copy by making calls into the
1084 * @a reporter.
1086 * When finished, the client calls @a reporter->finish_report(). The RA
1087 * layer then does a complete drive of @a status_editor, ending with
1088 * close_edit(), to report, essentially, what would be modified in
1089 * the working copy were the client to call do_update().
1090 * @a status_target is an optional single path component will restrict
1091 * the scope of the status report to an entry in the directory
1092 * represented by the @a session's URL, or empty if the entire directory
1093 * is meant to be examined.
1095 * Get status only as deeply as @a depth indicates.
1097 * The caller may not perform any RA operations using @a session
1098 * before finishing the report, and may not perform any RA operations
1099 * using @a session from within the editing operations of @a status_editor.
1101 * Use @a pool for memory allocation.
1103 * @note The reporter provided by this function does NOT supply copy-
1104 * from information to the diff editor callbacks.
1106 * @note In order to prevent pre-1.5 servers from doing more work than
1107 * needed, and sending too much data back, a pre-1.5 'recurse'
1108 * directive may be sent to the server, based on @a depth.
1110 * @since New in 1.5.
1112 svn_error_t *
1113 svn_ra_do_status2(svn_ra_session_t *session,
1114 const svn_ra_reporter3_t **reporter,
1115 void **report_baton,
1116 const char *status_target,
1117 svn_revnum_t revision,
1118 svn_depth_t depth,
1119 const svn_delta_editor_t *status_editor,
1120 void *status_baton,
1121 apr_pool_t *pool);
1125 * Similar to svn_ra_do_status2(), but taking @c svn_ra_reporter2_t
1126 * instead of @c svn_ra_reporter3_t, and therefore only able to report
1127 * @c svn_depth_infinity for depths. The status operation itself is
1128 * performed according to @a recurse: if TRUE, then @a depth is
1129 * @c svn_depth_infinity, else it is @c svn_depth_immediates.
1131 * @deprecated Provided for compatibility with the 1.4 API.
1133 svn_error_t *
1134 svn_ra_do_status(svn_ra_session_t *session,
1135 const svn_ra_reporter2_t **reporter,
1136 void **report_baton,
1137 const char *status_target,
1138 svn_revnum_t revision,
1139 svn_boolean_t recurse,
1140 const svn_delta_editor_t *status_editor,
1141 void *status_baton,
1142 apr_pool_t *pool);
1145 * Ask the RA layer to 'diff' a working copy against @a versus_url;
1146 * it's another form of svn_ra_do_update2().
1148 * @note This function cannot be used to diff a single file, only a
1149 * working copy directory. See the svn_ra_do_switch2() function
1150 * for more details.
1152 * The client initially provides a @a diff_editor/@a diff_baton to the RA
1153 * layer; this editor contains knowledge of where the common diff
1154 * root is in the working copy (when open_root() is called).
1156 * In return, the client receives a @a reporter/@a report_baton. The
1157 * client then describes its working copy by making calls into the
1158 * @a reporter.
1160 * When finished, the client calls @a reporter->finish_report(). The
1161 * RA layer then does a complete drive of @a diff_editor, ending with
1162 * close_edit(), to transmit the diff.
1164 * @a diff_target is an optional single path component will restrict
1165 * the scope of the diff to an entry in the directory represented by
1166 * the @a session's URL, or empty if the entire directory is meant to be
1167 * one of the diff paths.
1169 * The working copy will be diffed against @a versus_url as it exists
1170 * in revision @a revision, or as it is in head if @a revision is
1171 * @c SVN_INVALID_REVNUM.
1173 * Use @a ignore_ancestry to control whether or not items being
1174 * diffed will be checked for relatedness first. Unrelated items
1175 * are typically transmitted to the editor as a deletion of one thing
1176 * and the addition of another, but if this flag is @c TRUE,
1177 * unrelated items will be diffed as if they were related.
1179 * Diff only as deeply as @a depth indicates.
1181 * The caller may not perform any RA operations using @a session before
1182 * finishing the report, and may not perform any RA operations using
1183 * @a session from within the editing operations of @a diff_editor.
1185 * @a text_deltas instructs the driver of the @a diff_editor to enable
1186 * the generation of text deltas. If @a text_deltas is FALSE the window
1187 * handler returned by apply_textdelta will be called once with a NULL
1188 * @c svn_txdelta_window_t pointer.
1190 * Use @a pool for memory allocation.
1192 * @note The reporter provided by this function does NOT supply copy-
1193 * from information to the diff editor callbacks.
1195 * @note In order to prevent pre-1.5 servers from doing more work than
1196 * needed, and sending too much data back, a pre-1.5 'recurse'
1197 * directive may be sent to the server, based on @a depth.
1199 * @since New in 1.5.
1201 svn_error_t *
1202 svn_ra_do_diff3(svn_ra_session_t *session,
1203 const svn_ra_reporter3_t **reporter,
1204 void **report_baton,
1205 svn_revnum_t revision,
1206 const char *diff_target,
1207 svn_depth_t depth,
1208 svn_boolean_t ignore_ancestry,
1209 svn_boolean_t text_deltas,
1210 const char *versus_url,
1211 const svn_delta_editor_t *diff_editor,
1212 void *diff_baton,
1213 apr_pool_t *pool);
1216 * Similar to svn_ra_do_diff3(), but taking @c svn_ra_reporter2_t
1217 * instead of @c svn_ra_reporter3_t, and therefore only able to report
1218 * @c svn_depth_infinity for depths. Perform the diff according to
1219 * @a recurse: if TRUE, then @a depth is @c svn_depth_infinity, else
1220 * it is @c svn_depth_files.
1222 * @deprecated Provided for compatibility with the 1.4 API.
1224 svn_error_t *
1225 svn_ra_do_diff2(svn_ra_session_t *session,
1226 const svn_ra_reporter2_t **reporter,
1227 void **report_baton,
1228 svn_revnum_t revision,
1229 const char *diff_target,
1230 svn_boolean_t recurse,
1231 svn_boolean_t ignore_ancestry,
1232 svn_boolean_t text_deltas,
1233 const char *versus_url,
1234 const svn_delta_editor_t *diff_editor,
1235 void *diff_baton,
1236 apr_pool_t *pool);
1240 * Similar to svn_ra_do_diff2(), but with @a text_deltas set to @c TRUE.
1242 * @deprecated Provided for backward compatibility with the 1.3 API.
1244 svn_error_t *
1245 svn_ra_do_diff(svn_ra_session_t *session,
1246 const svn_ra_reporter2_t **reporter,
1247 void **report_baton,
1248 svn_revnum_t revision,
1249 const char *diff_target,
1250 svn_boolean_t recurse,
1251 svn_boolean_t ignore_ancestry,
1252 const char *versus_url,
1253 const svn_delta_editor_t *diff_editor,
1254 void *diff_baton,
1255 apr_pool_t *pool);
1258 * Invoke @a receiver with @a receiver_baton on each log message from
1259 * @a start to @a end. @a start may be greater or less than @a end;
1260 * this just controls whether the log messages are processed in descending
1261 * or ascending revision number order.
1263 * If @a start or @a end is @c SVN_INVALID_REVNUM, it defaults to youngest.
1265 * If @a paths is non-NULL and has one or more elements, then only show
1266 * revisions in which at least one of @a paths was changed (i.e., if
1267 * file, text or props changed; if dir, props changed or an entry
1268 * was added or deleted). Each path is an <tt>const char *</tt>, relative
1269 * to the @a session's common parent.
1271 * If @a limit is non-zero only invoke @a receiver on the first @a limit
1272 * logs.
1274 * If @a discover_changed_paths, then each call to receiver passes a
1275 * <tt>const apr_hash_t *</tt> for the receiver's @a changed_paths argument;
1276 * the hash's keys are all the paths committed in that revision.
1277 * Otherwise, each call to receiver passes NULL for @a changed_paths.
1279 * If @a strict_node_history is set, copy history will not be traversed
1280 * (if any exists) when harvesting the revision logs for each path.
1282 * If @a include_merged_revisions is set, log information for revisions
1283 * which have been merged to @a targets will also be returned.
1285 * If @a revprops is NULL, retrieve all revprops; else, retrieve only the
1286 * revprops named in the array (i.e. retrieve none if the array is empty).
1288 * If any invocation of @a receiver returns error, return that error
1289 * immediately and without wrapping it.
1291 * If @a start or @a end is a non-existent revision, return the error
1292 * @c SVN_ERR_FS_NO_SUCH_REVISION, without ever invoking @a receiver.
1294 * See also the documentation for @c svn_log_message_receiver_t.
1296 * The caller may not invoke any RA operations using @a session from
1297 * within @a receiver.
1299 * Use @a pool for memory allocation.
1301 * @note Pre-1.5 servers do not support custom revprop retrieval; if @a
1302 * revprops is NULL or contains a revprop other than svn:author, svn:date,
1303 * or svn:log, an @c SVN_ERR_RA_NOT_IMPLEMENTED error is returned.
1305 * @since New in 1.5.
1308 svn_error_t *
1309 svn_ra_get_log2(svn_ra_session_t *session,
1310 const apr_array_header_t *paths,
1311 svn_revnum_t start,
1312 svn_revnum_t end,
1313 int limit,
1314 svn_boolean_t discover_changed_paths,
1315 svn_boolean_t strict_node_history,
1316 svn_boolean_t include_merged_revisions,
1317 const apr_array_header_t *revprops,
1318 svn_log_entry_receiver_t receiver,
1319 void *receiver_baton,
1320 apr_pool_t *pool);
1323 * Similar to svn_ra_get_log2(), but uses @c svn_log_message_receiver_t
1324 * instead of @c svn_log_entry_receiver_t. Also, @a
1325 * include_merged_revisions is set to @c FALSE and @a revprops is
1326 * svn:author, svn:date, and svn:log.
1328 * @since New in 1.2.
1329 * @deprecated Provided for backward compatibility with the 1.4 API.
1331 svn_error_t *
1332 svn_ra_get_log(svn_ra_session_t *session,
1333 const apr_array_header_t *paths,
1334 svn_revnum_t start,
1335 svn_revnum_t end,
1336 int limit,
1337 svn_boolean_t discover_changed_paths,
1338 svn_boolean_t strict_node_history,
1339 svn_log_message_receiver_t receiver,
1340 void *receiver_baton,
1341 apr_pool_t *pool);
1344 * Set @a *kind to the node kind associated with @a path at @a revision.
1345 * If @a path does not exist under @a revision, set @a *kind to
1346 * @c svn_node_none. @a path is relative to the @a session's parent URL.
1348 * Use @a pool for memory allocation.
1350 * @since New in 1.2.
1352 svn_error_t *
1353 svn_ra_check_path(svn_ra_session_t *session,
1354 const char *path,
1355 svn_revnum_t revision,
1356 svn_node_kind_t *kind,
1357 apr_pool_t *pool);
1360 * Set @a *dirent to an @c svn_dirent_t associated with @a path at @a
1361 * revision. @a path is relative to the @a session's parent's URL.
1362 * If @a path does not exist in @a revision, set @a *dirent to NULL.
1364 * Use @a pool for memory allocation.
1366 * @since New in 1.2.
1368 svn_error_t *
1369 svn_ra_stat(svn_ra_session_t *session,
1370 const char *path,
1371 svn_revnum_t revision,
1372 svn_dirent_t **dirent,
1373 apr_pool_t *pool);
1377 * Set @a *uuid to the repository's UUID, allocated in @a pool.
1379 * @since New in 1.6.
1381 svn_error_t *
1382 svn_ra_get_uuid2(svn_ra_session_t *session,
1383 const char **uuid,
1384 apr_pool_t *pool);
1387 * Similar to svn_ra_get_uuid2(), but returns the value allocated in
1388 * @a session's pool.
1390 * @deprecated Provided for backward compatibility with the 1.5 API.
1391 * @since New in 1.2.
1393 svn_error_t *
1394 svn_ra_get_uuid(svn_ra_session_t *session,
1395 const char **uuid,
1396 apr_pool_t *pool);
1399 * Set @a *url to the repository's root URL, allocated in @a pool.
1400 * The value will not include a trailing '/'. The returned URL is
1401 * guaranteed to be a prefix of the @a session's URL.
1403 * @since New in 1.6.
1405 svn_error_t *
1406 svn_ra_get_repos_root2(svn_ra_session_t *session,
1407 const char **url,
1408 apr_pool_t *pool);
1412 * Similar to svn_ra_get_repos_root2(), but returns the value
1413 * allocated in @a session's pool.
1415 * @deprecated Provided for backward compatibility with the 1.5 API.
1416 * @since New in 1.2.
1418 svn_error_t *
1419 svn_ra_get_repos_root(svn_ra_session_t *session,
1420 const char **url,
1421 apr_pool_t *pool);
1424 * Set @a *locations to the locations (at the repository revisions
1425 * @a location_revisions) of the file identified by @a path in
1426 * @a peg_revision. @a path is relative to the URL to which
1427 * @a session was opened. @a location_revisions is an array of
1428 * @c svn_revnum_t's. @a *locations will be a mapping from the revisions to
1429 * their appropriate absolute paths. If the file doesn't exist in a
1430 * location_revision, that revision will be ignored.
1432 * Use @a pool for all allocations.
1434 * @since New in 1.2.
1436 svn_error_t *
1437 svn_ra_get_locations(svn_ra_session_t *session,
1438 apr_hash_t **locations,
1439 const char *path,
1440 svn_revnum_t peg_revision,
1441 apr_array_header_t *location_revisions,
1442 apr_pool_t *pool);
1446 * Call @a receiver (with @a receiver_baton) for each segment in the
1447 * location history of @a path in @a peg_revision, working backwards in
1448 * time from @a start_rev to @a end_rev.
1450 * @a end_rev may be @c SVN_INVALID_REVNUM to indicate that you want
1451 * to trace the history of the object to its origin.
1453 * @a start_rev may be @c SVN_INVALID_REVNUM to indicate "the HEAD
1454 * revision". Otherwise, @a start_rev must be younger than @a end_rev
1455 * (unless @a end_rev is @c SVN_INVALID_REVNUM).
1457 * @a peg_revision may be @c SVN_INVALID_REVNUM to indicate "the HEAD
1458 * revision", and must evaluate to be at least as young as @a start_rev.
1460 * Use @a pool for all allocations.
1462 * @since New in 1.5.
1464 svn_error_t *
1465 svn_ra_get_location_segments(svn_ra_session_t *session,
1466 const char *path,
1467 svn_revnum_t peg_revision,
1468 svn_revnum_t start_rev,
1469 svn_revnum_t end_rev,
1470 svn_location_segment_receiver_t receiver,
1471 void *receiver_baton,
1472 apr_pool_t *pool);
1475 * Retrieve a subset of the interesting revisions of a file @a path
1476 * as seen in revision @a end (see svn_fs_history_prev() for a
1477 * definition of "interesting revisions"). Invoke @a handler with
1478 * @a handler_baton as its first argument for each such revision.
1479 * @a session is an open RA session. Use @a pool for all allocations.
1481 * If there is an interesting revision of the file that is less than or
1482 * equal to @a start, the iteration will begin at that revision.
1483 * Else, the iteration will begin at the first revision of the file in
1484 * the repository, which has to be less than or equal to @a end. Note
1485 * that if the function succeeds, @a handler will have been called at
1486 * least once.
1488 * In a series of calls to @a handler, the file contents for the first
1489 * interesting revision will be provided as a text delta against the
1490 * empty file. In the following calls, the delta will be against the
1491 * fulltext contents for the previous call.
1493 * If @a include_merged_revisions is TRUE, revisions which a included as a
1494 * result of a merge between @a start and @a end will be included.
1496 * @note This functionality is not available in pre-1.1 servers. If the
1497 * server doesn't implement it, an @c SVN_ERR_RA_NOT_IMPLEMENTED error is
1498 * returned.
1500 * @since New in 1.5.
1502 svn_error_t *
1503 svn_ra_get_file_revs2(svn_ra_session_t *session,
1504 const char *path,
1505 svn_revnum_t start,
1506 svn_revnum_t end,
1507 svn_boolean_t include_merged_revisions,
1508 svn_file_rev_handler_t handler,
1509 void *handler_baton,
1510 apr_pool_t *pool);
1513 * Similiar to svn_ra_get_file_revs2(), but with @a include_merged_revisions
1514 * set to FALSE.
1516 * @since New in 1.2.
1517 * @deprecated Provided for backward compatibility with the 1.4 API.
1519 svn_error_t *
1520 svn_ra_get_file_revs(svn_ra_session_t *session,
1521 const char *path,
1522 svn_revnum_t start,
1523 svn_revnum_t end,
1524 svn_ra_file_rev_handler_t handler,
1525 void *handler_baton,
1526 apr_pool_t *pool);
1529 * Lock each path in @a path_revs, which is a hash whose keys are the
1530 * paths to be locked, and whose values are the corresponding base
1531 * revisions for each path.
1533 * Note that locking is never anonymous, so any server implementing
1534 * this function will have to "pull" a username from the client, if
1535 * it hasn't done so already.
1537 * @a comment is optional: it's either an xml-escapable string
1538 * which describes the lock, or it is NULL.
1540 * If any path is already locked by a different user, then call @a
1541 * lock_func/@a lock_baton with an error. If @a steal_lock is TRUE,
1542 * then "steal" the existing lock(s) anyway, even if the RA username
1543 * does not match the current lock's owner. Delete any lock on the
1544 * path, and unconditionally create a new lock.
1546 * For each path, if its base revision (in @a path_revs) is a valid
1547 * revnum, then do an out-of-dateness check. If the revnum is less
1548 * than the last-changed-revision of any path (or if a path doesn't
1549 * exist in HEAD), call @a lock_func/@a lock_baton with an
1550 * SVN_ERR_RA_OUT_OF_DATE error.
1552 * After successfully locking a file, @a lock_func is called with the
1553 * @a lock_baton.
1555 * Use @a pool for temporary allocations.
1557 * @since New in 1.2.
1559 svn_error_t *
1560 svn_ra_lock(svn_ra_session_t *session,
1561 apr_hash_t *path_revs,
1562 const char *comment,
1563 svn_boolean_t steal_lock,
1564 svn_ra_lock_callback_t lock_func,
1565 void *lock_baton,
1566 apr_pool_t *pool);
1569 * Remove the repository lock for each path in @a path_tokens.
1570 * @a path_tokens is a hash whose keys are the paths to be locked, and
1571 * whose values are the corresponding lock tokens for each path. If
1572 * the path has no corresponding lock token, or if @a break_lock is TRUE,
1573 * then the corresponding value shall be "".
1575 * Note that unlocking is never anonymous, so any server
1576 * implementing this function will have to "pull" a username from
1577 * the client, if it hasn't done so already.
1579 * If @a token points to a lock, but the RA username doesn't match the
1580 * lock's owner, call @a lock_func/@a lock_baton with an error. If @a
1581 * break_lock is TRUE, however, instead allow the lock to be "broken"
1582 * by the RA user.
1584 * After successfully unlocking a path, @a lock_func is called with
1585 * the @a lock_baton.
1587 * Use @a pool for temporary allocations.
1589 * @since New in 1.2.
1591 svn_error_t *
1592 svn_ra_unlock(svn_ra_session_t *session,
1593 apr_hash_t *path_tokens,
1594 svn_boolean_t break_lock,
1595 svn_ra_lock_callback_t lock_func,
1596 void *lock_baton,
1597 apr_pool_t *pool);
1600 * If @a path is locked, set @a *lock to an svn_lock_t which
1601 * represents the lock, allocated in @a pool. If @a path is not
1602 * locked, set @a *lock to NULL.
1604 * @since New in 1.2.
1606 svn_error_t *
1607 svn_ra_get_lock(svn_ra_session_t *session,
1608 svn_lock_t **lock,
1609 const char *path,
1610 apr_pool_t *pool);
1613 * Set @a *locks to a hashtable which represents all locks on or
1614 * below @a path.
1616 * The hashtable maps (const char *) absolute fs paths to (const
1617 * svn_lock_t *) structures. The hashtable -- and all keys and
1618 * values -- are allocated in @a pool.
1620 * @note It is not considered an error for @a path to not exist in HEAD.
1621 * Such a search will simply return no locks.
1623 * @note This functionality is not available in pre-1.2 servers. If the
1624 * server doesn't implement it, an @c SVN_ERR_RA_NOT_IMPLEMENTED error is
1625 * returned.
1627 * @since New in 1.2.
1629 svn_error_t *
1630 svn_ra_get_locks(svn_ra_session_t *session,
1631 apr_hash_t **locks,
1632 const char *path,
1633 apr_pool_t *pool);
1637 * Replay the changes from a range of revisions between @a start_revision
1638 * and @a end_revision.
1640 * When receiving information for one revision, a callback @a revstart_func is
1641 * called; this callback will provide an editor and baton through which the
1642 * revision will be replayed.
1643 * When replaying the revision is finished, callback @a fevfinish_func will be
1644 * called so the editor can be closed.
1646 * Changes will be limited to those that occur under @a session's URL, and
1647 * the server will assume that the client has no knowledge of revisions
1648 * prior to @a low_water_mark. These two limiting factors define the portion
1649 * of the tree that the server will assume the client already has knowledge of,
1650 * and thus any copies of data from outside that part of the tree will be
1651 * sent in their entirety, not as simple copies or deltas against a previous
1652 * version.
1654 * If @a send_deltas is @c TRUE, the actual text and property changes in
1655 * the revision will be sent, otherwise dummy text deltas and NULL property
1656 * changes will be sent instead.
1658 * @a pool is used for all allocation.
1660 * @since New in 1.5.
1662 svn_error_t *
1663 svn_ra_replay_range(svn_ra_session_t *session,
1664 svn_revnum_t start_revision,
1665 svn_revnum_t end_revision,
1666 svn_revnum_t low_water_mark,
1667 svn_boolean_t send_deltas,
1668 svn_ra_replay_revstart_callback_t revstart_func,
1669 svn_ra_replay_revfinish_callback_t revfinish_func,
1670 void *replay_baton,
1671 apr_pool_t *pool);
1674 * Replay the changes from @a revision through @a editor and @a edit_baton.
1676 * Changes will be limited to those that occur under @a session's URL, and
1677 * the server will assume that the client has no knowledge of revisions
1678 * prior to @a low_water_mark. These two limiting factors define the portion
1679 * of the tree that the server will assume the client already has knowledge of,
1680 * and thus any copies of data from outside that part of the tree will be
1681 * sent in their entirety, not as simple copies or deltas against a previous
1682 * version.
1684 * If @a send_deltas is @c TRUE, the actual text and property changes in
1685 * the revision will be sent, otherwise dummy text deltas and null property
1686 * changes will be sent instead.
1688 * @a pool is used for all allocation.
1690 * @since New in 1.4.
1692 svn_error_t *
1693 svn_ra_replay(svn_ra_session_t *session,
1694 svn_revnum_t revision,
1695 svn_revnum_t low_water_mark,
1696 svn_boolean_t send_deltas,
1697 const svn_delta_editor_t *editor,
1698 void *edit_baton,
1699 apr_pool_t *pool);
1702 * Set @a *has to TRUE if the server represented by @a session has
1703 * @a capability (one of the capabilities beginning with
1704 * @c "SVN_RA_CAPABILITY_"), else set @a *has to FALSE.
1706 * If @a capability isn't recognized, throw @c SVN_ERR_UNKNOWN_CAPABILITY,
1707 * with the effect on @a *has undefined.
1709 * Use @a pool for all allocation.
1711 * @since New in 1.5.
1713 svn_error_t *
1714 svn_ra_has_capability(svn_ra_session_t *session,
1715 svn_boolean_t *has,
1716 const char *capability,
1717 apr_pool_t *pool);
1720 * The capability of understanding @c svn_depth_t (e.g., the server
1721 * understands what the client means when the client describes the
1722 * depth of a working copy to the server.)
1724 * @since New in 1.5.
1726 #define SVN_RA_CAPABILITY_DEPTH "depth"
1729 * The capability of doing the right thing with merge-tracking
1730 * information. This capability should be reported bidirectionally,
1731 * because some repositories may want to reject clients that do not
1732 * self-report as knowing how to handle merge-tracking.
1734 * @since New in 1.5.
1736 #define SVN_RA_CAPABILITY_MERGEINFO "mergeinfo"
1739 * The capability of retrieving arbitrary revprops in svn_ra_get_log2.
1741 * @since New in 1.5.
1743 #define SVN_RA_CAPABILITY_LOG_REVPROPS "log-revprops"
1746 * The capability of replaying a directory in the repository (partial replay).
1748 * @since New in 1.5.
1750 #define SVN_RA_CAPABILITY_PARTIAL_REPLAY "partial-replay"
1752 /* *** PLEASE READ THIS IF YOU ADD A NEW CAPABILITY ***
1754 * RA layers generally fetch all capabilities when asked about any
1755 * capability, to save future round trips. So if you add a new
1756 * capability here, make sure to update the RA layers to remember
1757 * it after any capabilities query.
1759 * Also note that capability strings should not include colons,
1760 * because we pass a list of client capabilities to the start-commit
1761 * hook as a single, colon-separated string.
1765 * Append a textual list of all available RA modules to the stringbuf
1766 * @a output.
1768 * @since New in 1.2.
1770 svn_error_t *
1771 svn_ra_print_modules(svn_stringbuf_t *output,
1772 apr_pool_t *pool);
1776 * Similar to svn_ra_print_modules().
1777 * @a ra_baton is ignored.
1779 * @deprecated Provided for backward compatibility with the 1.1 API.
1781 svn_error_t *
1782 svn_ra_print_ra_libraries(svn_stringbuf_t **descriptions,
1783 void *ra_baton,
1784 apr_pool_t *pool);
1789 * Using this callback struct is similar to calling the newer public
1790 * interface that is based on @c svn_ra_session_t.
1792 * @deprecated Provided for backward compatibility with the 1.1 API.
1794 typedef struct svn_ra_plugin_t
1796 /** The proper name of the RA library, (like "ra_neon" or "ra_local") */
1797 const char *name;
1799 /** Short doc string printed out by `svn --version` */
1800 const char *description;
1802 /* The vtable hooks */
1804 /** Call svn_ra_open() and set @a session_baton to an object representing
1805 * the new session. All other arguments are passed to svn_ra_open().
1807 svn_error_t *(*open)(void **session_baton,
1808 const char *repos_URL,
1809 const svn_ra_callbacks_t *callbacks,
1810 void *callback_baton,
1811 apr_hash_t *config,
1812 apr_pool_t *pool);
1814 /** Call svn_ra_get_latest_revnum() with the session associated with
1815 * @a session_baton and all other arguments.
1817 svn_error_t *(*get_latest_revnum)(void *session_baton,
1818 svn_revnum_t *latest_revnum,
1819 apr_pool_t *pool);
1821 /** Call svn_ra_get_dated_revision() with the session associated with
1822 * @a session_baton and all other arguments.
1824 svn_error_t *(*get_dated_revision)(void *session_baton,
1825 svn_revnum_t *revision,
1826 apr_time_t tm,
1827 apr_pool_t *pool);
1829 /** Call svn_ra_change_rev_prop() with the session associated with
1830 * @a session_baton and all other arguments.
1832 svn_error_t *(*change_rev_prop)(void *session_baton,
1833 svn_revnum_t rev,
1834 const char *name,
1835 const svn_string_t *value,
1836 apr_pool_t *pool);
1838 /** Call svn_ra_rev_proplist() with the session associated with
1839 * @a session_baton and all other arguments.
1841 svn_error_t *(*rev_proplist)(void *session_baton,
1842 svn_revnum_t rev,
1843 apr_hash_t **props,
1844 apr_pool_t *pool);
1846 /** Call svn_ra_rev_prop() with the session associated with
1847 * @a session_baton and all other arguments.
1849 svn_error_t *(*rev_prop)(void *session_baton,
1850 svn_revnum_t rev,
1851 const char *name,
1852 svn_string_t **value,
1853 apr_pool_t *pool);
1855 /** Call svn_ra_get_commit_editor() with the session associated with
1856 * @a session_baton and all other arguments plus @a lock_tokens set to
1857 * @c NULL and @a keep_locks set to @c TRUE.
1859 svn_error_t *(*get_commit_editor)(void *session_baton,
1860 const svn_delta_editor_t **editor,
1861 void **edit_baton,
1862 const char *log_msg,
1863 svn_commit_callback_t callback,
1864 void *callback_baton,
1865 apr_pool_t *pool);
1867 /** Call svn_ra_get_file() with the session associated with
1868 * @a session_baton and all other arguments.
1870 svn_error_t *(*get_file)(void *session_baton,
1871 const char *path,
1872 svn_revnum_t revision,
1873 svn_stream_t *stream,
1874 svn_revnum_t *fetched_rev,
1875 apr_hash_t **props,
1876 apr_pool_t *pool);
1878 /** Call svn_ra_get_dir() with the session associated with
1879 * @a session_baton and all other arguments.
1881 svn_error_t *(*get_dir)(void *session_baton,
1882 const char *path,
1883 svn_revnum_t revision,
1884 apr_hash_t **dirents,
1885 svn_revnum_t *fetched_rev,
1886 apr_hash_t **props,
1887 apr_pool_t *pool);
1889 /** Call svn_ra_do_update() with the session associated with
1890 * @a session_baton and all other arguments.
1892 svn_error_t *(*do_update)(void *session_baton,
1893 const svn_ra_reporter_t **reporter,
1894 void **report_baton,
1895 svn_revnum_t revision_to_update_to,
1896 const char *update_target,
1897 svn_boolean_t recurse,
1898 const svn_delta_editor_t *update_editor,
1899 void *update_baton,
1900 apr_pool_t *pool);
1902 /** Call svn_ra_do_switch() with the session associated with
1903 * @a session_baton and all other arguments.
1905 svn_error_t *(*do_switch)(void *session_baton,
1906 const svn_ra_reporter_t **reporter,
1907 void **report_baton,
1908 svn_revnum_t revision_to_switch_to,
1909 const char *switch_target,
1910 svn_boolean_t recurse,
1911 const char *switch_url,
1912 const svn_delta_editor_t *switch_editor,
1913 void *switch_baton,
1914 apr_pool_t *pool);
1916 /** Call svn_ra_do_status() with the session associated with
1917 * @a session_baton and all other arguments.
1919 svn_error_t *(*do_status)(void *session_baton,
1920 const svn_ra_reporter_t **reporter,
1921 void **report_baton,
1922 const char *status_target,
1923 svn_revnum_t revision,
1924 svn_boolean_t recurse,
1925 const svn_delta_editor_t *status_editor,
1926 void *status_baton,
1927 apr_pool_t *pool);
1929 /** Call svn_ra_do_diff() with the session associated with
1930 * @a session_baton and all other arguments.
1932 svn_error_t *(*do_diff)(void *session_baton,
1933 const svn_ra_reporter_t **reporter,
1934 void **report_baton,
1935 svn_revnum_t revision,
1936 const char *diff_target,
1937 svn_boolean_t recurse,
1938 svn_boolean_t ignore_ancestry,
1939 const char *versus_url,
1940 const svn_delta_editor_t *diff_editor,
1941 void *diff_baton,
1942 apr_pool_t *pool);
1944 /** Call svn_ra_get_log() with the session associated with
1945 * @a session_baton and all other arguments. @a limit is set to 0.
1947 svn_error_t *(*get_log)(void *session_baton,
1948 const apr_array_header_t *paths,
1949 svn_revnum_t start,
1950 svn_revnum_t end,
1951 svn_boolean_t discover_changed_paths,
1952 svn_boolean_t strict_node_history,
1953 svn_log_message_receiver_t receiver,
1954 void *receiver_baton,
1955 apr_pool_t *pool);
1957 /** Call svn_ra_check_path() with the session associated with
1958 * @a session_baton and all other arguments.
1960 svn_error_t *(*check_path)(void *session_baton,
1961 const char *path,
1962 svn_revnum_t revision,
1963 svn_node_kind_t *kind,
1964 apr_pool_t *pool);
1966 /** Call svn_ra_get_uuid() with the session associated with
1967 * @a session_baton and all other arguments.
1969 svn_error_t *(*get_uuid)(void *session_baton,
1970 const char **uuid,
1971 apr_pool_t *pool);
1973 /** Call svn_ra_get_repos_root() with the session associated with
1974 * @a session_baton and all other arguments.
1976 svn_error_t *(*get_repos_root)(void *session_baton,
1977 const char **url,
1978 apr_pool_t *pool);
1981 * Call svn_ra_get_locations() with the session associated with
1982 * @a session_baton and all other arguments.
1984 * @since New in 1.1.
1986 svn_error_t *(*get_locations)(void *session_baton,
1987 apr_hash_t **locations,
1988 const char *path,
1989 svn_revnum_t peg_revision,
1990 apr_array_header_t *location_revisions,
1991 apr_pool_t *pool);
1994 * Call svn_ra_get_file_revs() with the session associated with
1995 * @a session_baton and all other arguments.
1997 * @since New in 1.1.
1999 svn_error_t *(*get_file_revs)(void *session_baton,
2000 const char *path,
2001 svn_revnum_t start,
2002 svn_revnum_t end,
2003 svn_ra_file_rev_handler_t handler,
2004 void *handler_baton,
2005 apr_pool_t *pool);
2008 * Return the plugin's version information.
2010 * @since New in 1.1.
2012 const svn_version_t *(*get_version)(void);
2015 } svn_ra_plugin_t;
2018 * All "ra_FOO" implementations *must* export a function named
2019 * svn_ra_FOO_init() of type @c svn_ra_init_func_t.
2021 * When called by libsvn_client, this routine adds an entry (or
2022 * entries) to the hash table for any URL schemes it handles. The hash
2023 * value must be of type (<tt>@c svn_ra_plugin_t *</tt>). @a pool is a
2024 * pool for allocating configuration / one-time data.
2026 * This type is defined to use the "C Calling Conventions" to ensure that
2027 * abi_version is the first parameter. The RA plugin must check that value
2028 * before accessing the other parameters.
2030 * ### need to force this to be __cdecl on Windows... how??
2032 * @deprecated Provided for backward compatibility with the 1.1 API.
2034 typedef svn_error_t *(*svn_ra_init_func_t)(int abi_version,
2035 apr_pool_t *pool,
2036 apr_hash_t *hash);
2039 * The current ABI (Application Binary Interface) version for the
2040 * RA plugin model. This version number will change when the ABI
2041 * between the SVN core (e.g. libsvn_client) and the RA plugin changes.
2043 * An RA plugin should verify that the passed version number is acceptable
2044 * before accessing the rest of the parameters, and before returning any
2045 * information.
2047 * It is entirely acceptable for an RA plugin to accept multiple ABI
2048 * versions. It can simply interpret the parameters based on the version,
2049 * and it can return different plugin structures.
2052 * <pre>
2053 * VSN DATE REASON FOR CHANGE
2054 * --- ---------- ------------------------------------------------
2055 * 1 2001-02-17 Initial revision.
2056 * 2 2004-06-29 Preparing for svn 1.1, which adds new RA vtable funcs.
2057 * 2005-01-19 Rework the plugin interface and don't provide the vtable
2058 * to the client. Separate ABI versions are no longer used.
2059 * </pre>
2061 * @deprecated Provided for backward compatibility with the 1.0 API.
2063 #define SVN_RA_ABI_VERSION 2
2065 /* Public RA implementations. */
2067 /** Initialize libsvn_ra_neon.
2069 * @deprecated Provided for backward compatibility with the 1.1 API. */
2070 svn_error_t *
2071 svn_ra_dav_init(int abi_version,
2072 apr_pool_t *pool,
2073 apr_hash_t *hash);
2075 /** Initialize libsvn_ra_local.
2077 * @deprecated Provided for backward compatibility with the 1.1 API. */
2078 svn_error_t *
2079 svn_ra_local_init(int abi_version,
2080 apr_pool_t *pool,
2081 apr_hash_t *hash);
2083 /** Initialize libsvn_ra_svn.
2085 * @deprecated Provided for backward compatibility with the 1.1 API. */
2086 svn_error_t *
2087 svn_ra_svn_init(int abi_version,
2088 apr_pool_t *pool,
2089 apr_hash_t *hash);
2091 /** Initialize libsvn_ra_serf.
2093 * @since New in 1.4.
2094 * @deprecated Provided for backward compatibility with the 1.1 API. */
2095 svn_error_t *
2096 svn_ra_serf_init(int abi_version,
2097 apr_pool_t *pool,
2098 apr_hash_t *hash);
2102 * Initialize the compatibility wrapper, using @a pool for any allocations.
2103 * The caller must hold on to @a ra_baton as long as the RA library is used.
2105 * @deprecated Provided for backward compatibility with the 1.1 API.
2107 svn_error_t *svn_ra_init_ra_libs(void **ra_baton, apr_pool_t *pool);
2110 * Return an RA vtable-@a library which can handle URL. A number of
2111 * svn_client_* routines will call this internally, but client apps might
2112 * use it too. $a ra_baton is a baton obtained by a call to
2113 * svn_ra_init_ra_libs().
2115 * @deprecated Provided for backward compatibility with the 1.1 API.
2117 svn_error_t *
2118 svn_ra_get_ra_library(svn_ra_plugin_t **library,
2119 void *ra_baton,
2120 const char *url,
2121 apr_pool_t *pool);
2123 #ifdef __cplusplus
2125 #endif /* __cplusplus */
2127 #endif /* SVN_RA_H */