* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
[svn.git] / subversion / bindings / swig / python / svn / delta.py
blob70e34ad891a72ae848f12dc759a98c007fb3eae4
2 # delta.py: public Python interface for delta components
4 # Subversion is a tool for revision control.
5 # See http://subversion.tigris.org for more information.
7 ######################################################################
9 # Copyright (c) 2000-2004 CollabNet. All rights reserved.
11 # This software is licensed as described in the file COPYING, which
12 # you should have received as part of this distribution. The terms
13 # are also available at http://subversion.tigris.org/license-1.html.
14 # If newer versions of this license are posted there, you may use a
15 # newer version instead, at your option.
17 ######################################################################
19 from libsvn.delta import *
20 from svn.core import _unprefix_names
21 _unprefix_names(locals(), 'svn_delta_')
22 _unprefix_names(locals(), 'svn_txdelta_', 'tx_')
23 del _unprefix_names
26 class Editor:
28 def set_target_revision(self, target_revision):
29 pass
31 def open_root(self, base_revision, dir_pool=None):
32 return None
34 def delete_entry(self, path, revision, parent_baton, pool=None):
35 pass
37 def add_directory(self, path, parent_baton,
38 copyfrom_path, copyfrom_revision, dir_pool=None):
39 return None
41 def open_directory(self, path, parent_baton, base_revision, dir_pool=None):
42 return None
44 def change_dir_prop(self, dir_baton, name, value, pool=None):
45 pass
47 def close_directory(self, dir_baton):
48 pass
50 def add_file(self, path, parent_baton,
51 copyfrom_path, copyfrom_revision, file_pool=None):
52 return None
54 def open_file(self, path, parent_baton, base_revision, file_pool=None):
55 return None
57 def apply_textdelta(self, file_baton, base_checksum):
58 return None
60 def change_file_prop(self, file_baton, name, value, pool=None):
61 pass
63 def close_file(self, file_baton, text_checksum):
64 pass
66 def close_edit(self):
67 pass
69 def abort_edit(self):
70 pass
73 def make_editor(editor, pool=None):
74 return svn_swig_py_make_editor(editor, pool)