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_')
28 def set_target_revision(self
, target_revision
):
31 def open_root(self
, base_revision
, dir_pool
=None):
34 def delete_entry(self
, path
, revision
, parent_baton
, pool
=None):
37 def add_directory(self
, path
, parent_baton
,
38 copyfrom_path
, copyfrom_revision
, dir_pool
=None):
41 def open_directory(self
, path
, parent_baton
, base_revision
, dir_pool
=None):
44 def change_dir_prop(self
, dir_baton
, name
, value
, pool
=None):
47 def close_directory(self
, dir_baton
):
50 def add_file(self
, path
, parent_baton
,
51 copyfrom_path
, copyfrom_revision
, file_pool
=None):
54 def open_file(self
, path
, parent_baton
, base_revision
, file_pool
=None):
57 def apply_textdelta(self
, file_baton
, base_checksum
):
60 def change_file_prop(self
, file_baton
, name
, value
, pool
=None):
63 def close_file(self
, file_baton
, text_checksum
):
73 def make_editor(editor
, pool
=None):
74 return svn_swig_py_make_editor(editor
, pool
)