diff options
Diffstat (limited to 'subversion/bindings/swig/python/core.py')
-rw-r--r-- | subversion/bindings/swig/python/core.py | 190 |
1 files changed, 164 insertions, 26 deletions
diff --git a/subversion/bindings/swig/python/core.py b/subversion/bindings/swig/python/core.py index f51e034..8c3e52a 100644 --- a/subversion/bindings/swig/python/core.py +++ b/subversion/bindings/swig/python/core.py @@ -296,6 +296,7 @@ SVN_ERR_FS_INVALID_GENERATION = _core.SVN_ERR_FS_INVALID_GENERATION SVN_ERR_FS_CORRUPT_REVPROP_MANIFEST = _core.SVN_ERR_FS_CORRUPT_REVPROP_MANIFEST SVN_ERR_FS_CORRUPT_PROPLIST = _core.SVN_ERR_FS_CORRUPT_PROPLIST SVN_ERR_FS_AMBIGUOUS_CHECKSUM_REP = _core.SVN_ERR_FS_AMBIGUOUS_CHECKSUM_REP +SVN_ERR_FS_UNRECOGNIZED_IOCTL_CODE = _core.SVN_ERR_FS_UNRECOGNIZED_IOCTL_CODE SVN_ERR_REPOS_LOCKED = _core.SVN_ERR_REPOS_LOCKED SVN_ERR_REPOS_HOOK_FAILURE = _core.SVN_ERR_REPOS_HOOK_FAILURE SVN_ERR_REPOS_BAD_ARGS = _core.SVN_ERR_REPOS_BAD_ARGS @@ -422,6 +423,7 @@ SVN_ERR_INVALID_INPUT = _core.SVN_ERR_INVALID_INPUT SVN_ERR_SQLITE_ROLLBACK_FAILED = _core.SVN_ERR_SQLITE_ROLLBACK_FAILED SVN_ERR_LZ4_COMPRESSION_FAILED = _core.SVN_ERR_LZ4_COMPRESSION_FAILED SVN_ERR_LZ4_DECOMPRESSION_FAILED = _core.SVN_ERR_LZ4_DECOMPRESSION_FAILED +SVN_ERR_CANONICALIZATION_FAILED = _core.SVN_ERR_CANONICALIZATION_FAILED SVN_ERR_CL_ARG_PARSING_ERROR = _core.SVN_ERR_CL_ARG_PARSING_ERROR SVN_ERR_CL_INSUFFICIENT_ARGS = _core.SVN_ERR_CL_INSUFFICIENT_ARGS SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS = _core.SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS @@ -506,6 +508,20 @@ def svn_parse_date(*args): def svn_sleep_for_timestamps(): """svn_sleep_for_timestamps()""" return _core.svn_sleep_for_timestamps() +svn_node_none = _core.svn_node_none +svn_node_file = _core.svn_node_file +svn_node_dir = _core.svn_node_dir +svn_node_unknown = _core.svn_node_unknown +svn_node_symlink = _core.svn_node_symlink +svn_tristate_false = _core.svn_tristate_false +svn_tristate_true = _core.svn_tristate_true +svn_tristate_unknown = _core.svn_tristate_unknown +svn_depth_unknown = _core.svn_depth_unknown +svn_depth_exclude = _core.svn_depth_exclude +svn_depth_empty = _core.svn_depth_empty +svn_depth_files = _core.svn_depth_files +svn_depth_immediates = _core.svn_depth_immediates +svn_depth_infinity = _core.svn_depth_infinity SVN_UNALIGNED_ACCESS_IS_OK = _core.SVN_UNALIGNED_ACCESS_IS_OK TRUE = _core.TRUE FALSE = _core.FALSE @@ -582,11 +598,6 @@ class svn_error_t: svn_error_t_swigregister = _core.svn_error_t_swigregister svn_error_t_swigregister(svn_error_t) -svn_node_none = _core.svn_node_none -svn_node_file = _core.svn_node_file -svn_node_dir = _core.svn_node_dir -svn_node_unknown = _core.svn_node_unknown -svn_node_symlink = _core.svn_node_symlink def svn_node_kind_to_word(kind): """svn_node_kind_to_word(svn_node_kind_t kind) -> char const *""" @@ -595,9 +606,6 @@ def svn_node_kind_to_word(kind): def svn_node_kind_from_word(word): """svn_node_kind_from_word(char const * word) -> svn_node_kind_t""" return _core.svn_node_kind_from_word(word) -svn_tristate_false = _core.svn_tristate_false -svn_tristate_true = _core.svn_tristate_true -svn_tristate_unknown = _core.svn_tristate_unknown def svn_tristate__to_word(tristate): """svn_tristate__to_word(svn_tristate_t tristate) -> char const *""" @@ -613,12 +621,6 @@ def svn_revnum_parse(str): SVN_REVNUM_T_FMT = _core.SVN_REVNUM_T_FMT svn_nonrecursive = _core.svn_nonrecursive svn_recursive = _core.svn_recursive -svn_depth_unknown = _core.svn_depth_unknown -svn_depth_exclude = _core.svn_depth_exclude -svn_depth_empty = _core.svn_depth_empty -svn_depth_files = _core.svn_depth_files -svn_depth_immediates = _core.svn_depth_immediates -svn_depth_infinity = _core.svn_depth_infinity def svn_depth_to_word(depth): """svn_depth_to_word(svn_depth_t depth) -> char const *""" @@ -2333,9 +2335,117 @@ SVN_PROP_TXN_PREFIX = _core.SVN_PROP_TXN_PREFIX SVN_PROP_TXN_CLIENT_COMPAT_VERSION = _core.SVN_PROP_TXN_CLIENT_COMPAT_VERSION SVN_PROP_TXN_USER_AGENT = _core.SVN_PROP_TXN_USER_AGENT SVN_PROP_REVISION_PREFIX = _core.SVN_PROP_REVISION_PREFIX +svn_opt_revision_unspecified = _core.svn_opt_revision_unspecified +svn_opt_revision_number = _core.svn_opt_revision_number +svn_opt_revision_date = _core.svn_opt_revision_date +svn_opt_revision_committed = _core.svn_opt_revision_committed +svn_opt_revision_previous = _core.svn_opt_revision_previous +svn_opt_revision_base = _core.svn_opt_revision_base +svn_opt_revision_working = _core.svn_opt_revision_working +svn_opt_revision_head = _core.svn_opt_revision_head SVN_OPT_MAX_ALIASES = _core.SVN_OPT_MAX_ALIASES SVN_OPT_MAX_OPTIONS = _core.SVN_OPT_MAX_OPTIONS +SVN_OPT_MAX_PARAGRAPHS = _core.SVN_OPT_MAX_PARAGRAPHS SVN_OPT_FIRST_LONGOPT_ID = _core.SVN_OPT_FIRST_LONGOPT_ID +class svn_opt_subcommand_desc3_t: + """Proxy of C svn_opt_subcommand_desc3_t struct.""" + + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_subcommand_desc3_t, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_subcommand_desc3_t, name) + __repr__ = _swig_repr + __swig_setmethods__["name"] = _core.svn_opt_subcommand_desc3_t_name_set + __swig_getmethods__["name"] = _core.svn_opt_subcommand_desc3_t_name_get + __swig_setmethods__["cmd_func"] = _core.svn_opt_subcommand_desc3_t_cmd_func_set + __swig_getmethods__["cmd_func"] = _core.svn_opt_subcommand_desc3_t_cmd_func_get + __swig_setmethods__["aliases"] = _core.svn_opt_subcommand_desc3_t_aliases_set + __swig_getmethods__["aliases"] = _core.svn_opt_subcommand_desc3_t_aliases_get + __swig_setmethods__["help"] = _core.svn_opt_subcommand_desc3_t_help_set + __swig_getmethods__["help"] = _core.svn_opt_subcommand_desc3_t_help_get + __swig_setmethods__["valid_options"] = _core.svn_opt_subcommand_desc3_t_valid_options_set + __swig_getmethods__["valid_options"] = _core.svn_opt_subcommand_desc3_t_valid_options_get + __swig_getmethods__["desc_overrides"] = _core.svn_opt_subcommand_desc3_t_desc_overrides_get + def set_parent_pool(self, parent_pool=None): + """Create a new proxy object for TYPE""" + import libsvn.core, weakref + self.__dict__["_parent_pool"] = \ + parent_pool or libsvn.core.application_pool; + if self.__dict__["_parent_pool"]: + self.__dict__["_is_valid"] = weakref.ref( + self.__dict__["_parent_pool"]._is_valid) + + def assert_valid(self): + """Assert that this object is using valid pool memory""" + if "_is_valid" in self.__dict__: + assert self.__dict__["_is_valid"](), "Variable has already been deleted" + + def __getattr__(self, name): + """Get an attribute from this object""" + self.assert_valid() + + 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 + + def __setattr__(self, name, value): + """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) + + + def __init__(self): + """__init__(svn_opt_subcommand_desc3_t self) -> svn_opt_subcommand_desc3_t""" + this = _core.new_svn_opt_subcommand_desc3_t() + try: + self.this.append(this) + except __builtin__.Exception: + self.this = this + __swig_destroy__ = _core.delete_svn_opt_subcommand_desc3_t + __del__ = lambda self: None +svn_opt_subcommand_desc3_t_swigregister = _core.svn_opt_subcommand_desc3_t_swigregister +svn_opt_subcommand_desc3_t_swigregister(svn_opt_subcommand_desc3_t) + +class svn_opt_subcommand_desc3_t_desc_overrides: + """Proxy of C svn_opt_subcommand_desc3_t_desc_overrides struct.""" + + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, svn_opt_subcommand_desc3_t_desc_overrides, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, svn_opt_subcommand_desc3_t_desc_overrides, name) + __repr__ = _swig_repr + __swig_setmethods__["optch"] = _core.svn_opt_subcommand_desc3_t_desc_overrides_optch_set + __swig_getmethods__["optch"] = _core.svn_opt_subcommand_desc3_t_desc_overrides_optch_get + __swig_setmethods__["desc"] = _core.svn_opt_subcommand_desc3_t_desc_overrides_desc_set + __swig_getmethods__["desc"] = _core.svn_opt_subcommand_desc3_t_desc_overrides_desc_get + + def __init__(self): + """__init__(svn_opt_subcommand_desc3_t_desc_overrides self) -> svn_opt_subcommand_desc3_t_desc_overrides""" + this = _core.new_svn_opt_subcommand_desc3_t_desc_overrides() + try: + self.this.append(this) + except __builtin__.Exception: + self.this = this + __swig_destroy__ = _core.delete_svn_opt_subcommand_desc3_t_desc_overrides + __del__ = lambda self: None +svn_opt_subcommand_desc3_t_desc_overrides_swigregister = _core.svn_opt_subcommand_desc3_t_desc_overrides_swigregister +svn_opt_subcommand_desc3_t_desc_overrides_swigregister(svn_opt_subcommand_desc3_t_desc_overrides) + class svn_opt_subcommand_desc2_t: """Proxy of C svn_opt_subcommand_desc2_t struct.""" @@ -2509,6 +2619,10 @@ svn_opt_subcommand_desc_t_swigregister = _core.svn_opt_subcommand_desc_t_swigreg svn_opt_subcommand_desc_t_swigregister(svn_opt_subcommand_desc_t) +def svn_opt_get_canonical_subcommand3(table, cmd_name): + """svn_opt_get_canonical_subcommand3(svn_opt_subcommand_desc3_t table, char const * cmd_name) -> svn_opt_subcommand_desc3_t""" + return _core.svn_opt_get_canonical_subcommand3(table, cmd_name) + def svn_opt_get_canonical_subcommand2(table, cmd_name): """svn_opt_get_canonical_subcommand2(svn_opt_subcommand_desc2_t table, char const * cmd_name) -> svn_opt_subcommand_desc2_t""" return _core.svn_opt_get_canonical_subcommand2(table, cmd_name) @@ -2517,6 +2631,10 @@ def svn_opt_get_canonical_subcommand(table, cmd_name): """svn_opt_get_canonical_subcommand(svn_opt_subcommand_desc_t table, char const * cmd_name) -> svn_opt_subcommand_desc_t""" return _core.svn_opt_get_canonical_subcommand(table, cmd_name) +def svn_opt_get_option_from_code3(*args): + """svn_opt_get_option_from_code3(int code, apr_getopt_option_t const * option_table, svn_opt_subcommand_desc3_t command, apr_pool_t pool) -> apr_getopt_option_t const *""" + return _core.svn_opt_get_option_from_code3(*args) + def svn_opt_get_option_from_code2(*args): """svn_opt_get_option_from_code2(int code, apr_getopt_option_t const * option_table, svn_opt_subcommand_desc2_t command, apr_pool_t pool) -> apr_getopt_option_t const *""" return _core.svn_opt_get_option_from_code2(*args) @@ -2525,6 +2643,10 @@ def svn_opt_get_option_from_code(code, option_table): """svn_opt_get_option_from_code(int code, apr_getopt_option_t const * option_table) -> apr_getopt_option_t const *""" return _core.svn_opt_get_option_from_code(code, option_table) +def svn_opt_subcommand_takes_option4(command, option_code): + """svn_opt_subcommand_takes_option4(svn_opt_subcommand_desc3_t command, int option_code) -> svn_boolean_t""" + return _core.svn_opt_subcommand_takes_option4(command, option_code) + def svn_opt_subcommand_takes_option3(command, option_code): """svn_opt_subcommand_takes_option3(svn_opt_subcommand_desc2_t command, int option_code) -> svn_boolean_t""" return _core.svn_opt_subcommand_takes_option3(command, option_code) @@ -2537,6 +2659,10 @@ def svn_opt_subcommand_takes_option(command, option_code): """svn_opt_subcommand_takes_option(svn_opt_subcommand_desc_t command, int option_code) -> svn_boolean_t""" return _core.svn_opt_subcommand_takes_option(command, option_code) +def svn_opt_print_generic_help3(*args): + """svn_opt_print_generic_help3(char const * header, svn_opt_subcommand_desc3_t cmd_table, apr_getopt_option_t const * opt_table, char const * footer, apr_pool_t pool, FILE * stream)""" + return _core.svn_opt_print_generic_help3(*args) + def svn_opt_print_generic_help2(*args): """svn_opt_print_generic_help2(char const * header, svn_opt_subcommand_desc2_t cmd_table, apr_getopt_option_t const * opt_table, char const * footer, apr_pool_t pool, FILE * stream)""" return _core.svn_opt_print_generic_help2(*args) @@ -2545,6 +2671,10 @@ def svn_opt_format_option(*args): """svn_opt_format_option(apr_getopt_option_t const * opt, svn_boolean_t doc, apr_pool_t pool)""" return _core.svn_opt_format_option(*args) +def svn_opt_subcommand_help4(*args): + """svn_opt_subcommand_help4(char const * subcommand, svn_opt_subcommand_desc3_t table, apr_getopt_option_t const * options_table, apr_pool_t pool)""" + return _core.svn_opt_subcommand_help4(*args) + def svn_opt_subcommand_help3(*args): """svn_opt_subcommand_help3(char const * subcommand, svn_opt_subcommand_desc2_t table, apr_getopt_option_t const * options_table, apr_pool_t pool)""" return _core.svn_opt_subcommand_help3(*args) @@ -2556,14 +2686,6 @@ def svn_opt_subcommand_help2(*args): def svn_opt_subcommand_help(*args): """svn_opt_subcommand_help(char const * subcommand, svn_opt_subcommand_desc_t table, apr_getopt_option_t const * options_table, apr_pool_t pool)""" return _core.svn_opt_subcommand_help(*args) -svn_opt_revision_unspecified = _core.svn_opt_revision_unspecified -svn_opt_revision_number = _core.svn_opt_revision_number -svn_opt_revision_date = _core.svn_opt_revision_date -svn_opt_revision_committed = _core.svn_opt_revision_committed -svn_opt_revision_previous = _core.svn_opt_revision_previous -svn_opt_revision_base = _core.svn_opt_revision_base -svn_opt_revision_working = _core.svn_opt_revision_working -svn_opt_revision_head = _core.svn_opt_revision_head class svn_opt_revision_value_t: """Proxy of C svn_opt_revision_value_t struct.""" @@ -2806,6 +2928,10 @@ def svn_opt_parse_path(*args): """svn_opt_parse_path(svn_opt_revision_t rev, char const * path, apr_pool_t pool) -> svn_error_t""" return _core.svn_opt_parse_path(*args) +def svn_opt_print_help5(*args): + """svn_opt_print_help5(apr_getopt_t * os, char const * pgm_name, svn_boolean_t print_version, svn_boolean_t quiet, svn_boolean_t verbose, char const * version_footer, char const * header, svn_opt_subcommand_desc3_t cmd_table, apr_getopt_option_t const * option_table, char const * footer, apr_pool_t pool) -> svn_error_t""" + return _core.svn_opt_print_help5(*args) + def svn_opt_print_help4(*args): """svn_opt_print_help4(apr_getopt_t * os, char const * pgm_name, svn_boolean_t print_version, svn_boolean_t quiet, svn_boolean_t verbose, char const * version_footer, char const * header, svn_opt_subcommand_desc2_t cmd_table, apr_getopt_option_t const * option_table, char const * footer, apr_pool_t pool) -> svn_error_t""" return _core.svn_opt_print_help4(*args) @@ -5007,14 +5133,14 @@ def svn_dirent_internal_style(*args): """svn_dirent_internal_style(char const * dirent, apr_pool_t result_pool) -> char const *""" return _core.svn_dirent_internal_style(*args) +def svn_dirent_internal_style_safe(*args): + """svn_dirent_internal_style_safe(char const * dirent, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" + return _core.svn_dirent_internal_style_safe(*args) + def svn_dirent_local_style(*args): """svn_dirent_local_style(char const * dirent, apr_pool_t result_pool) -> char const *""" return _core.svn_dirent_local_style(*args) -def svn_relpath__internal_style(*args): - """svn_relpath__internal_style(char const * relpath, apr_pool_t result_pool) -> char const *""" - return _core.svn_relpath__internal_style(*args) - def svn_dirent_join(*args): """svn_dirent_join(char const * base, char const * component, apr_pool_t result_pool) -> char *""" return _core.svn_dirent_join(*args) @@ -5075,14 +5201,26 @@ def svn_dirent_canonicalize(*args): """svn_dirent_canonicalize(char const * dirent, apr_pool_t result_pool) -> char const *""" return _core.svn_dirent_canonicalize(*args) +def svn_dirent_canonicalize_safe(*args): + """svn_dirent_canonicalize_safe(char const * dirent, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" + return _core.svn_dirent_canonicalize_safe(*args) + def svn_relpath_canonicalize(*args): """svn_relpath_canonicalize(char const * relpath, apr_pool_t result_pool) -> char const *""" return _core.svn_relpath_canonicalize(*args) +def svn_relpath_canonicalize_safe(*args): + """svn_relpath_canonicalize_safe(char const * relpath, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" + return _core.svn_relpath_canonicalize_safe(*args) + def svn_uri_canonicalize(*args): """svn_uri_canonicalize(char const * uri, apr_pool_t result_pool) -> char const *""" return _core.svn_uri_canonicalize(*args) +def svn_uri_canonicalize_safe(*args): + """svn_uri_canonicalize_safe(char const * uri, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" + return _core.svn_uri_canonicalize_safe(*args) + def svn_dirent_is_canonical(*args): """svn_dirent_is_canonical(char const * dirent, apr_pool_t scratch_pool) -> svn_boolean_t""" return _core.svn_dirent_is_canonical(*args) |