Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/bindings/swig/python/repos.py view on Meta::CPAN
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name)
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _copy_metadata_deep(value, old_value):
"""Copy all attributes of old_value into value, recursively traversing
lists and dicts if needed."""
if value is None or old_value is None or value is old_value: return
if isinstance(value, dict):
for k, v in value.iteritems():
_copy_metadata_deep(v, old_value[k])
elif isinstance(value, list):
for v, old_v in zip(value, old_value):
_copy_metadata_deep(v, old_v)
else:
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
def _assert_valid_deep(value):
"""Assert value's validity, recursively traversing lists and dicts."""
if isinstance(value, dict):
for v in value.itervalues():
_assert_valid_deep(v)
elif isinstance(value, list):
for v in value:
_assert_valid_deep(v)
else:
if hasattr(value, "assert_valid"):
value.assert_valid()
import libsvn.core
import libsvn.delta
import libsvn.fs
def svn_repos_version():
"""svn_repos_version() -> svn_version_t const *"""
return _repos.svn_repos_version()
svn_node_action_change = _repos.svn_node_action_change
svn_node_action_add = _repos.svn_node_action_add
svn_node_action_delete = _repos.svn_node_action_delete
svn_node_action_replace = _repos.svn_node_action_replace
svn_repos_load_uuid_default = _repos.svn_repos_load_uuid_default
svn_repos_load_uuid_ignore = _repos.svn_repos_load_uuid_ignore
svn_repos_load_uuid_force = _repos.svn_repos_load_uuid_force
svn_authz_none = _repos.svn_authz_none
svn_authz_read = _repos.svn_authz_read
svn_authz_write = _repos.svn_authz_write
svn_authz_recursive = _repos.svn_authz_recursive
svn_repos_notify_warning = _repos.svn_repos_notify_warning
svn_repos_notify_dump_rev_end = _repos.svn_repos_notify_dump_rev_end
svn_repos_notify_verify_rev_end = _repos.svn_repos_notify_verify_rev_end
svn_repos_notify_dump_end = _repos.svn_repos_notify_dump_end
svn_repos_notify_verify_end = _repos.svn_repos_notify_verify_end
svn_repos_notify_pack_shard_start = _repos.svn_repos_notify_pack_shard_start
svn_repos_notify_pack_shard_end = _repos.svn_repos_notify_pack_shard_end
svn_repos_notify_pack_shard_start_revprop = _repos.svn_repos_notify_pack_shard_start_revprop
svn_repos_notify_pack_shard_end_revprop = _repos.svn_repos_notify_pack_shard_end_revprop
svn_repos_notify_load_txn_start = _repos.svn_repos_notify_load_txn_start
svn_repos_notify_load_txn_committed = _repos.svn_repos_notify_load_txn_committed
svn_repos_notify_load_node_start = _repos.svn_repos_notify_load_node_start
svn_repos_notify_load_node_done = _repos.svn_repos_notify_load_node_done
svn_repos_notify_load_copied_node = _repos.svn_repos_notify_load_copied_node
svn_repos_notify_load_normalized_mergeinfo = _repos.svn_repos_notify_load_normalized_mergeinfo
svn_repos_notify_mutex_acquired = _repos.svn_repos_notify_mutex_acquired
svn_repos_notify_recover_start = _repos.svn_repos_notify_recover_start
svn_repos_notify_upgrade_start = _repos.svn_repos_notify_upgrade_start
svn_repos_notify_load_skipped_rev = _repos.svn_repos_notify_load_skipped_rev
svn_repos_notify_verify_rev_structure = _repos.svn_repos_notify_verify_rev_structure
svn_repos_notify_warning_found_old_reference = _repos.svn_repos_notify_warning_found_old_reference
svn_repos_notify_warning_found_old_mergeinfo = _repos.svn_repos_notify_warning_found_old_mergeinfo
svn_repos_notify_warning_invalid_fspath = _repos.svn_repos_notify_warning_invalid_fspath
class svn_repos_notify_t:
"""Proxy of C svn_repos_notify_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_repos_notify_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_repos_notify_t, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_setmethods__["action"] = _repos.svn_repos_notify_t_action_set
__swig_getmethods__["action"] = _repos.svn_repos_notify_t_action_get
__swig_setmethods__["revision"] = _repos.svn_repos_notify_t_revision_set
__swig_getmethods__["revision"] = _repos.svn_repos_notify_t_revision_get
__swig_setmethods__["warning_str"] = _repos.svn_repos_notify_t_warning_str_set
__swig_getmethods__["warning_str"] = _repos.svn_repos_notify_t_warning_str_get
__swig_setmethods__["warning"] = _repos.svn_repos_notify_t_warning_set
__swig_getmethods__["warning"] = _repos.svn_repos_notify_t_warning_get
__swig_setmethods__["shard"] = _repos.svn_repos_notify_t_shard_set
__swig_getmethods__["shard"] = _repos.svn_repos_notify_t_shard_get
__swig_setmethods__["new_revision"] = _repos.svn_repos_notify_t_new_revision_set
__swig_getmethods__["new_revision"] = _repos.svn_repos_notify_t_new_revision_get
__swig_setmethods__["old_revision"] = _repos.svn_repos_notify_t_old_revision_set
__swig_getmethods__["old_revision"] = _repos.svn_repos_notify_t_old_revision_get
__swig_setmethods__["node_action"] = _repos.svn_repos_notify_t_node_action_set
__swig_getmethods__["node_action"] = _repos.svn_repos_notify_t_node_action_get
__swig_setmethods__["path"] = _repos.svn_repos_notify_t_path_set
__swig_getmethods__["path"] = _repos.svn_repos_notify_t_path_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_repos_notify_t"""
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)
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
_assert_valid_deep(value)
return value
src/subversion/subversion/bindings/swig/python/repos.py view on Meta::CPAN
members = self.__dict__.get("_members")
if members is not None:
_copy_metadata_deep(value, members.get(name))
_assert_valid_deep(value)
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
svn_repos_node_t_swigregister = _repos.svn_repos_node_t_swigregister
svn_repos_node_t_swigregister(svn_repos_node_t)
def svn_repos_node_editor(*args):
"""
svn_repos_node_editor(svn_repos_t * repos, svn_fs_root_t * base_root, svn_fs_root_t * root, apr_pool_t node_pool,
apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_node_editor(*args)
def svn_repos_node_from_baton(*args):
"""svn_repos_node_from_baton(void * edit_baton) -> svn_repos_node_t"""
return _repos.svn_repos_node_from_baton(*args)
SVN_REPOS_DUMPFILE_MAGIC_HEADER = _repos.SVN_REPOS_DUMPFILE_MAGIC_HEADER
SVN_REPOS_DUMPFILE_FORMAT_VERSION = _repos.SVN_REPOS_DUMPFILE_FORMAT_VERSION
SVN_REPOS_DUMPFILE_FORMAT_VERSION_DELTAS = _repos.SVN_REPOS_DUMPFILE_FORMAT_VERSION_DELTAS
SVN_REPOS_DUMPFILE_UUID = _repos.SVN_REPOS_DUMPFILE_UUID
SVN_REPOS_DUMPFILE_CONTENT_LENGTH = _repos.SVN_REPOS_DUMPFILE_CONTENT_LENGTH
SVN_REPOS_DUMPFILE_REVISION_NUMBER = _repos.SVN_REPOS_DUMPFILE_REVISION_NUMBER
SVN_REPOS_DUMPFILE_NODE_PATH = _repos.SVN_REPOS_DUMPFILE_NODE_PATH
SVN_REPOS_DUMPFILE_NODE_KIND = _repos.SVN_REPOS_DUMPFILE_NODE_KIND
SVN_REPOS_DUMPFILE_NODE_ACTION = _repos.SVN_REPOS_DUMPFILE_NODE_ACTION
SVN_REPOS_DUMPFILE_NODE_COPYFROM_PATH = _repos.SVN_REPOS_DUMPFILE_NODE_COPYFROM_PATH
SVN_REPOS_DUMPFILE_NODE_COPYFROM_REV = _repos.SVN_REPOS_DUMPFILE_NODE_COPYFROM_REV
SVN_REPOS_DUMPFILE_TEXT_COPY_SOURCE_MD5 = _repos.SVN_REPOS_DUMPFILE_TEXT_COPY_SOURCE_MD5
SVN_REPOS_DUMPFILE_TEXT_COPY_SOURCE_SHA1 = _repos.SVN_REPOS_DUMPFILE_TEXT_COPY_SOURCE_SHA1
SVN_REPOS_DUMPFILE_TEXT_COPY_SOURCE_CHECKSUM = _repos.SVN_REPOS_DUMPFILE_TEXT_COPY_SOURCE_CHECKSUM
SVN_REPOS_DUMPFILE_TEXT_CONTENT_MD5 = _repos.SVN_REPOS_DUMPFILE_TEXT_CONTENT_MD5
SVN_REPOS_DUMPFILE_TEXT_CONTENT_SHA1 = _repos.SVN_REPOS_DUMPFILE_TEXT_CONTENT_SHA1
SVN_REPOS_DUMPFILE_TEXT_CONTENT_CHECKSUM = _repos.SVN_REPOS_DUMPFILE_TEXT_CONTENT_CHECKSUM
SVN_REPOS_DUMPFILE_PROP_CONTENT_LENGTH = _repos.SVN_REPOS_DUMPFILE_PROP_CONTENT_LENGTH
SVN_REPOS_DUMPFILE_TEXT_CONTENT_LENGTH = _repos.SVN_REPOS_DUMPFILE_TEXT_CONTENT_LENGTH
SVN_REPOS_DUMPFILE_PROP_DELTA = _repos.SVN_REPOS_DUMPFILE_PROP_DELTA
SVN_REPOS_DUMPFILE_TEXT_DELTA = _repos.SVN_REPOS_DUMPFILE_TEXT_DELTA
SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_MD5 = _repos.SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_MD5
SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_SHA1 = _repos.SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_SHA1
SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_CHECKSUM = _repos.SVN_REPOS_DUMPFILE_TEXT_DELTA_BASE_CHECKSUM
def svn_repos_verify_fs2(*args):
"""
svn_repos_verify_fs2(svn_repos_t * repos, svn_revnum_t start_rev, svn_revnum_t end_rev, svn_repos_notify_func_t notify_func,
void * notify_baton, svn_cancel_func_t cancel, void * cancel_baton,
apr_pool_t scratch_pool) -> svn_error_t
"""
return _repos.svn_repos_verify_fs2(*args)
def svn_repos_verify_fs(*args):
"""
svn_repos_verify_fs(svn_repos_t * repos, svn_stream_t * feedback_stream, svn_revnum_t start_rev, svn_revnum_t end_rev,
svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_verify_fs(*args)
def svn_repos_dump_fs3(*args):
"""
svn_repos_dump_fs3(svn_repos_t * repos, svn_stream_t * dumpstream, svn_revnum_t start_rev, svn_revnum_t end_rev,
svn_boolean_t incremental, svn_boolean_t use_deltas, svn_repos_notify_func_t notify_func,
void * notify_baton, svn_cancel_func_t cancel_func,
apr_pool_t scratch_pool) -> svn_error_t
"""
return _repos.svn_repos_dump_fs3(*args)
def svn_repos_dump_fs2(*args):
"""
svn_repos_dump_fs2(svn_repos_t * repos, svn_stream_t * dumpstream, svn_stream_t * feedback_stream, svn_revnum_t start_rev,
svn_revnum_t end_rev, svn_boolean_t incremental, svn_boolean_t use_deltas,
svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_dump_fs2(*args)
def svn_repos_dump_fs(*args):
"""
svn_repos_dump_fs(svn_repos_t * repos, svn_stream_t * dumpstream, svn_stream_t * feedback_stream, svn_revnum_t start_rev,
svn_revnum_t end_rev, svn_boolean_t incremental, svn_cancel_func_t cancel_func,
apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_dump_fs(*args)
def svn_repos_load_fs4(*args):
"""
svn_repos_load_fs4(svn_repos_t * repos, svn_stream_t * dumpstream, svn_revnum_t start_rev, svn_revnum_t end_rev,
enum svn_repos_load_uuid uuid_action, char const * parent_dir,
svn_boolean_t use_pre_commit_hook, svn_boolean_t use_post_commit_hook, svn_boolean_t validate_props,
svn_repos_notify_func_t notify_func, void * notify_baton,
svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_load_fs4(*args)
def svn_repos_load_fs3(*args):
"""
svn_repos_load_fs3(svn_repos_t * repos, svn_stream_t * dumpstream, enum svn_repos_load_uuid uuid_action,
char const * parent_dir, svn_boolean_t use_pre_commit_hook, svn_boolean_t use_post_commit_hook,
svn_boolean_t validate_props, svn_repos_notify_func_t notify_func,
void * notify_baton, svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_load_fs3(*args)
def svn_repos_load_fs2(*args):
"""
svn_repos_load_fs2(svn_repos_t * repos, svn_stream_t * dumpstream, svn_stream_t * feedback_stream, enum svn_repos_load_uuid uuid_action,
char const * parent_dir, svn_boolean_t use_pre_commit_hook,
svn_boolean_t use_post_commit_hook, svn_cancel_func_t cancel_func,
apr_pool_t pool) -> svn_error_t
"""
return _repos.svn_repos_load_fs2(*args)
def svn_repos_load_fs(*args):
"""
svn_repos_load_fs(svn_repos_t * repos, svn_stream_t * dumpstream, svn_stream_t * feedback_stream, enum svn_repos_load_uuid uuid_action,
char const * parent_dir, svn_cancel_func_t cancel_func,
apr_pool_t pool) -> svn_error_t
"""
( run in 0.941 second using v1.01-cache-2.11-cpan-ceb78f64989 )