2 * default_editor.c -- provide a basic svn_delta_editor_t
4 * ====================================================================
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied. See the License for the
19 * specific language governing permissions and limitations
21 * ====================================================================
25 #include <apr_pools.h>
26 #include <apr_strings.h>
28 #include "svn_types.h"
29 #include "svn_delta.h"
33 set_target_revision(void *edit_baton,
34 svn_revnum_t target_revision,
40 add_item(const char *path,
42 const char *copyfrom_path,
43 svn_revnum_t copyfrom_revision,
53 single_baton_func(void *baton,
61 absent_xxx_func(const char *path,
70 open_root(void *edit_baton,
71 svn_revnum_t base_revision,
80 delete_entry(const char *path,
81 svn_revnum_t revision,
89 open_item(const char *path,
91 svn_revnum_t base_revision,
100 change_prop(void *file_baton,
102 const svn_string_t *value,
108 svn_error_t *svn_delta_noop_window_handler(svn_txdelta_window_t *window,
115 apply_textdelta(void *file_baton,
116 const char *base_checksum,
118 svn_txdelta_window_handler_t *handler,
119 void **handler_baton)
121 *handler = svn_delta_noop_window_handler;
122 *handler_baton = NULL;
128 close_file(void *file_baton,
129 const char *text_checksum,
137 static const svn_delta_editor_t default_editor =
158 svn_delta_default_editor(apr_pool_t *pool)
160 return apr_pmemdup(pool, &default_editor, sizeof(default_editor));