summaryrefslogtreecommitdiff
path: root/subversion/bindings/swig/python/diff.py
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-08-05 16:22:51 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-08-05 16:22:51 +0000
commitcf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch)
treeda27775a2161723ef342e91af41a8b51fedef405 /subversion/bindings/swig/python/diff.py
parentbb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff)
downloadsubversion-tarball-master.tar.gz
Diffstat (limited to 'subversion/bindings/swig/python/diff.py')
-rw-r--r--subversion/bindings/swig/python/diff.py186
1 files changed, 122 insertions, 64 deletions
diff --git a/subversion/bindings/swig/python/diff.py b/subversion/bindings/swig/python/diff.py
index 476236d..24d8142 100644
--- a/subversion/bindings/swig/python/diff.py
+++ b/subversion/bindings/swig/python/diff.py
@@ -1,11 +1,13 @@
# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 2.0.9
+# Version 2.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
+
+
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
@@ -113,7 +115,7 @@ class svn_diff_fns2_t:
__swig_setmethods__["token_discard_all"] = _diff.svn_diff_fns2_t_token_discard_all_set
__swig_getmethods__["token_discard_all"] = _diff.svn_diff_fns2_t_token_discard_all_get
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_diff_fns2_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -132,13 +134,13 @@ class svn_diff_fns2_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -147,9 +149,9 @@ class svn_diff_fns2_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -202,7 +204,7 @@ class svn_diff_fns_t:
__swig_setmethods__["token_discard_all"] = _diff.svn_diff_fns_t_token_discard_all_set
__swig_getmethods__["token_discard_all"] = _diff.svn_diff_fns_t_token_discard_all_get
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_diff_fns_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -221,13 +223,13 @@ class svn_diff_fns_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -236,9 +238,9 @@ class svn_diff_fns_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -321,7 +323,7 @@ class svn_diff_output_fns_t:
__swig_setmethods__["output_conflict"] = _diff.svn_diff_output_fns_t_output_conflict_set
__swig_getmethods__["output_conflict"] = _diff.svn_diff_output_fns_t_output_conflict_get
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_diff_output_fns_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -340,13 +342,13 @@ class svn_diff_output_fns_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -355,9 +357,9 @@ class svn_diff_output_fns_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -394,6 +396,10 @@ svn_diff_conflict_display_modified = _diff.svn_diff_conflict_display_modified
svn_diff_conflict_display_latest = _diff.svn_diff_conflict_display_latest
svn_diff_conflict_display_only_conflicts = _diff.svn_diff_conflict_display_only_conflicts
+def svn_diff_output2(*args):
+ """svn_diff_output2(svn_diff_t * diff, void * output_baton, svn_diff_output_fns_t output_fns, svn_cancel_func_t cancel_func) -> svn_error_t"""
+ return _diff.svn_diff_output2(*args)
+
def svn_diff_output(*args):
"""svn_diff_output(svn_diff_t * diff, void * output_baton, svn_diff_output_fns_t output_fns) -> svn_error_t"""
return _diff.svn_diff_output(*args)
@@ -413,8 +419,10 @@ class svn_diff_file_options_t:
__swig_getmethods__["ignore_eol_style"] = _diff.svn_diff_file_options_t_ignore_eol_style_get
__swig_setmethods__["show_c_function"] = _diff.svn_diff_file_options_t_show_c_function_set
__swig_getmethods__["show_c_function"] = _diff.svn_diff_file_options_t_show_c_function_get
+ __swig_setmethods__["context_size"] = _diff.svn_diff_file_options_t_context_size_set
+ __swig_getmethods__["context_size"] = _diff.svn_diff_file_options_t_context_size_get
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_diff_file_options_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -433,13 +441,13 @@ class svn_diff_file_options_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -448,9 +456,9 @@ class svn_diff_file_options_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -507,6 +515,15 @@ def svn_diff_file_diff4(*args):
"""
return _diff.svn_diff_file_diff4(*args)
+def svn_diff_file_output_unified4(*args):
+ """
+ svn_diff_file_output_unified4(svn_stream_t * output_stream, svn_diff_t * diff, char const * original_path, char const * modified_path,
+ char const * original_header, char const * modified_header,
+ char const * header_encoding, char const * relative_to_dir, svn_boolean_t show_c_function,
+ int context_size, svn_cancel_func_t cancel_func, apr_pool_t scratch_pool) -> svn_error_t
+ """
+ return _diff.svn_diff_file_output_unified4(*args)
+
def svn_diff_file_output_unified3(*args):
"""
svn_diff_file_output_unified3(svn_stream_t * output_stream, svn_diff_t * diff, char const * original_path, char const * modified_path,
@@ -532,6 +549,16 @@ def svn_diff_file_output_unified(*args):
"""
return _diff.svn_diff_file_output_unified(*args)
+def svn_diff_file_output_merge3(*args):
+ """
+ svn_diff_file_output_merge3(svn_stream_t * output_stream, svn_diff_t * diff, char const * original_path, char const * modified_path,
+ char const * latest_path, char const * conflict_original,
+ char const * conflict_modified, char const * conflict_latest, char const * conflict_separator,
+ svn_diff_conflict_display_style_t conflict_style,
+ svn_cancel_func_t cancel_func, apr_pool_t scratch_pool) -> svn_error_t
+ """
+ return _diff.svn_diff_file_output_merge3(*args)
+
def svn_diff_file_output_merge2(*args):
"""
svn_diff_file_output_merge2(svn_stream_t * output_stream, svn_diff_t * diff, char const * original_path, char const * modified_path,
@@ -552,6 +579,13 @@ def svn_diff_file_output_merge(*args):
"""
return _diff.svn_diff_file_output_merge(*args)
+def svn_diff_output_binary(*args):
+ """
+ svn_diff_output_binary(svn_stream_t * output_stream, svn_stream_t * original, svn_stream_t * latest, svn_cancel_func_t cancel_func,
+ apr_pool_t scratch_pool) -> svn_error_t
+ """
+ return _diff.svn_diff_output_binary(*args)
+
def svn_diff_mem_string_diff(*args):
"""
svn_diff_mem_string_diff(svn_string_t const * original, svn_string_t const * modified, svn_diff_file_options_t options,
@@ -573,6 +607,16 @@ def svn_diff_mem_string_diff4(*args):
"""
return _diff.svn_diff_mem_string_diff4(*args)
+def svn_diff_mem_string_output_unified3(*args):
+ """
+ svn_diff_mem_string_output_unified3(svn_stream_t * output_stream, svn_diff_t * diff, svn_boolean_t with_diff_header,
+ char const * hunk_delimiter, char const * original_header, char const * modified_header,
+ char const * header_encoding, svn_string_t const * original,
+ svn_string_t const * modified, int context_size, svn_cancel_func_t cancel_func,
+ apr_pool_t scratch_pool) -> svn_error_t
+ """
+ return _diff.svn_diff_mem_string_output_unified3(*args)
+
def svn_diff_mem_string_output_unified2(*args):
"""
svn_diff_mem_string_output_unified2(svn_stream_t * output_stream, svn_diff_t * diff, svn_boolean_t with_diff_header,
@@ -590,6 +634,16 @@ def svn_diff_mem_string_output_unified(*args):
"""
return _diff.svn_diff_mem_string_output_unified(*args)
+def svn_diff_mem_string_output_merge3(*args):
+ """
+ svn_diff_mem_string_output_merge3(svn_stream_t * output_stream, svn_diff_t * diff, svn_string_t const * original, svn_string_t const * modified,
+ svn_string_t const * latest, char const * conflict_original,
+ char const * conflict_modified, char const * conflict_latest,
+ char const * conflict_separator, svn_diff_conflict_display_style_t style,
+ svn_cancel_func_t cancel_func, apr_pool_t scratch_pool) -> svn_error_t
+ """
+ return _diff.svn_diff_mem_string_output_merge3(*args)
+
def svn_diff_mem_string_output_merge2(*args):
"""
svn_diff_mem_string_output_merge2(svn_stream_t * output_stream, svn_diff_t * diff, svn_string_t const * original, svn_string_t const * modified,
@@ -677,7 +731,7 @@ class svn_prop_patch_t:
__swig_setmethods__["hunks"] = _diff.svn_prop_patch_t_hunks_set
__swig_getmethods__["hunks"] = _diff.svn_prop_patch_t_hunks_get
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_prop_patch_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -696,13 +750,13 @@ class svn_prop_patch_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -711,9 +765,9 @@ class svn_prop_patch_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -747,8 +801,12 @@ class svn_patch_t:
__swig_getmethods__["operation"] = _diff.svn_patch_t_operation_get
__swig_setmethods__["reverse"] = _diff.svn_patch_t_reverse_set
__swig_getmethods__["reverse"] = _diff.svn_patch_t_reverse_get
+ __swig_setmethods__["mergeinfo"] = _diff.svn_patch_t_mergeinfo_set
+ __swig_getmethods__["mergeinfo"] = _diff.svn_patch_t_mergeinfo_get
+ __swig_setmethods__["reverse_mergeinfo"] = _diff.svn_patch_t_reverse_mergeinfo_set
+ __swig_getmethods__["reverse_mergeinfo"] = _diff.svn_patch_t_reverse_mergeinfo_get
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_patch_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -767,13 +825,13 @@ class svn_patch_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -782,9 +840,9 @@ class svn_patch_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -823,7 +881,7 @@ class svn_diff_t:
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_diff_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -842,13 +900,13 @@ class svn_diff_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -857,9 +915,9 @@ class svn_diff_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -876,7 +934,7 @@ class svn_diff_hunk_t:
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_diff_hunk_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -895,13 +953,13 @@ class svn_diff_hunk_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -910,9 +968,9 @@ class svn_diff_hunk_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
@@ -929,7 +987,7 @@ class svn_patch_file_t:
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def set_parent_pool(self, parent_pool=None):
- """Create a new proxy object for svn_patch_file_t"""
+ """Create a new proxy object for TYPE"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
@@ -948,13 +1006,13 @@ class svn_patch_file_t:
value = _swig_getattr(self, self.__class__, name)
-
-
+ # If we got back a different object than we have, we need to copy all our
+ # metadata into it, so that it looks identical
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
-
+ # Verify that the new object is good
_assert_valid_deep(value)
return value
@@ -963,9 +1021,9 @@ class svn_patch_file_t:
"""Set an attribute on this object"""
self.assert_valid()
-
-
-
+ # Save a copy of the object, so that the garbage
+ # collector won't kill the object while it's in
+ # SWIG-land
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)