2 * default_editor.c -- provide a basic svn_delta_editor_t
4 * ====================================================================
5 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
7 * This software is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at http://subversion.tigris.org/license-1.html.
10 * If newer versions of this license are posted there, you may use a
11 * newer version instead, at your option.
13 * This software consists of voluntary contributions made by many
14 * individuals. For exact contribution history, see the revision
15 * history and logs, available at http://subversion.tigris.org/.
16 * ====================================================================
20 #include <apr_pools.h>
21 #include <apr_strings.h>
23 #include "svn_types.h"
24 #include "svn_delta.h"
28 set_target_revision(void *edit_baton
,
29 svn_revnum_t target_revision
,
35 add_item(const char *path
,
37 const char *copyfrom_path
,
38 svn_revnum_t copyfrom_revision
,
48 single_baton_func(void *baton
,
56 absent_xxx_func(const char *path
,
65 open_root(void *edit_baton
,
66 svn_revnum_t base_revision
,
75 delete_entry(const char *path
,
76 svn_revnum_t revision
,
84 open_item(const char *path
,
86 svn_revnum_t base_revision
,
95 change_prop(void *file_baton
,
97 const svn_string_t
*value
,
103 svn_error_t
*svn_delta_noop_window_handler(svn_txdelta_window_t
*window
,
110 apply_textdelta(void *file_baton
,
111 const char *base_checksum
,
113 svn_txdelta_window_handler_t
*handler
,
114 void **handler_baton
)
116 *handler
= svn_delta_noop_window_handler
;
117 *handler_baton
= NULL
;
123 close_file(void *file_baton
,
124 const char *text_checksum
,
132 static const svn_delta_editor_t default_editor
=
153 svn_delta_default_editor(apr_pool_t
*pool
)
155 return apr_pmemdup(pool
, &default_editor
, sizeof(default_editor
));