client.py

来自「subversion-1.4.5.tar.gz 配置svn的源码」· Python 代码 · 共 1,251 行 · 第 1/4 页

PY
1,251
字号
        pass      return _swig_setattr(self, self.__class__, name, value)    def __init__(self, *args):        """__init__(self) -> svn_client_commit_item_t"""        _swig_setattr(self, svn_client_commit_item_t, 'this', apply(_client.new_svn_client_commit_item_t, args))        _swig_setattr(self, svn_client_commit_item_t, 'thisown', 1)    def __del__(self, destroy=_client.delete_svn_client_commit_item_t):        """__del__(self)"""        try:            if self.thisown: destroy(self)        except: passclass svn_client_commit_item_tPtr(svn_client_commit_item_t):    def __init__(self, this):        _swig_setattr(self, svn_client_commit_item_t, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, svn_client_commit_item_t, 'thisown', 0)        _swig_setattr(self, svn_client_commit_item_t,self.__class__,svn_client_commit_item_t)_client.svn_client_commit_item_t_swigregister(svn_client_commit_item_tPtr)svn_client_diff_summarize_kind_normal = _client.svn_client_diff_summarize_kind_normalsvn_client_diff_summarize_kind_added = _client.svn_client_diff_summarize_kind_addedsvn_client_diff_summarize_kind_modified = _client.svn_client_diff_summarize_kind_modifiedsvn_client_diff_summarize_kind_deleted = _client.svn_client_diff_summarize_kind_deletedclass svn_client_diff_summarize_t:    """Proxy of C svn_client_diff_summarize_t struct"""    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_diff_summarize_t, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, svn_client_diff_summarize_t, name)    def __repr__(self):        return "<%s.%s; proxy of C svn_client_diff_summarize_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["path"] = _client.svn_client_diff_summarize_t_path_set    __swig_getmethods__["path"] = _client.svn_client_diff_summarize_t_path_get    __swig_setmethods__["summarize_kind"] = _client.svn_client_diff_summarize_t_summarize_kind_set    __swig_getmethods__["summarize_kind"] = _client.svn_client_diff_summarize_t_summarize_kind_get    __swig_setmethods__["prop_changed"] = _client.svn_client_diff_summarize_t_prop_changed_set    __swig_getmethods__["prop_changed"] = _client.svn_client_diff_summarize_t_prop_changed_get    __swig_setmethods__["node_kind"] = _client.svn_client_diff_summarize_t_node_kind_set    __swig_getmethods__["node_kind"] = _client.svn_client_diff_summarize_t_node_kind_get    def set_parent_pool(self, parent_pool=None):      """Create a new proxy object for svn_client_diff_summarize_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)      try:        old_dict = self.__dict__["_member_dicts"][name]        value.__dict__["_parent_pool"] = old_dict.get("_parent_pool")        value.__dict__["_member_dicts"] = old_dict.get("_member_dicts")        value.__dict__["_is_valid"] = old_dict.get("_is_valid")        value.assert_valid()      except KeyError:        pass      return value    def __setattr__(self, name, value):      """Set an attribute on this object"""      self.assert_valid()      try:        self.__dict__.setdefault("_member_dicts",{})[name] = value.__dict__      except AttributeError:        pass      return _swig_setattr(self, self.__class__, name, value)    def __init__(self, *args):        """__init__(self) -> svn_client_diff_summarize_t"""        _swig_setattr(self, svn_client_diff_summarize_t, 'this', apply(_client.new_svn_client_diff_summarize_t, args))        _swig_setattr(self, svn_client_diff_summarize_t, 'thisown', 1)    def __del__(self, destroy=_client.delete_svn_client_diff_summarize_t):        """__del__(self)"""        try:            if self.thisown: destroy(self)        except: passclass svn_client_diff_summarize_tPtr(svn_client_diff_summarize_t):    def __init__(self, this):        _swig_setattr(self, svn_client_diff_summarize_t, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, svn_client_diff_summarize_t, 'thisown', 0)        _swig_setattr(self, svn_client_diff_summarize_t,self.__class__,svn_client_diff_summarize_t)_client.svn_client_diff_summarize_t_swigregister(svn_client_diff_summarize_tPtr)def svn_client_diff_summarize_dup(*args):    """svn_client_diff_summarize_dup(svn_client_diff_summarize_t diff, apr_pool_t pool) -> svn_client_diff_summarize_t"""    return apply(_client.svn_client_diff_summarize_dup, args)class svn_client_ctx_t:    """Proxy of C svn_client_ctx_t struct"""    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_ctx_t, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, svn_client_ctx_t, name)    def __repr__(self):        return "<%s.%s; proxy of C svn_client_ctx_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["auth_baton"] = _client.svn_client_ctx_t_auth_baton_set    __swig_getmethods__["auth_baton"] = _client.svn_client_ctx_t_auth_baton_get    __swig_setmethods__["notify_func"] = _client.svn_client_ctx_t_notify_func_set    __swig_getmethods__["notify_func"] = _client.svn_client_ctx_t_notify_func_get    __swig_setmethods__["notify_baton"] = _client.svn_client_ctx_t_notify_baton_set    __swig_getmethods__["notify_baton"] = _client.svn_client_ctx_t_notify_baton_get    __swig_setmethods__["log_msg_func"] = _client.svn_client_ctx_t_log_msg_func_set    __swig_getmethods__["log_msg_func"] = _client.svn_client_ctx_t_log_msg_func_get    __swig_setmethods__["log_msg_baton"] = _client.svn_client_ctx_t_log_msg_baton_set    __swig_getmethods__["log_msg_baton"] = _client.svn_client_ctx_t_log_msg_baton_get    __swig_setmethods__["config"] = _client.svn_client_ctx_t_config_set    __swig_getmethods__["config"] = _client.svn_client_ctx_t_config_get    __swig_setmethods__["cancel_func"] = _client.svn_client_ctx_t_cancel_func_set    __swig_getmethods__["cancel_func"] = _client.svn_client_ctx_t_cancel_func_get    __swig_setmethods__["cancel_baton"] = _client.svn_client_ctx_t_cancel_baton_set    __swig_getmethods__["cancel_baton"] = _client.svn_client_ctx_t_cancel_baton_get    __swig_setmethods__["notify_func2"] = _client.svn_client_ctx_t_notify_func2_set    __swig_getmethods__["notify_func2"] = _client.svn_client_ctx_t_notify_func2_get    __swig_setmethods__["notify_baton2"] = _client.svn_client_ctx_t_notify_baton2_set    __swig_getmethods__["notify_baton2"] = _client.svn_client_ctx_t_notify_baton2_get    __swig_setmethods__["log_msg_func2"] = _client.svn_client_ctx_t_log_msg_func2_set    __swig_getmethods__["log_msg_func2"] = _client.svn_client_ctx_t_log_msg_func2_get    __swig_setmethods__["log_msg_baton2"] = _client.svn_client_ctx_t_log_msg_baton2_set    __swig_getmethods__["log_msg_baton2"] = _client.svn_client_ctx_t_log_msg_baton2_get    __swig_setmethods__["progress_func"] = _client.svn_client_ctx_t_progress_func_set    __swig_getmethods__["progress_func"] = _client.svn_client_ctx_t_progress_func_get    __swig_setmethods__["progress_baton"] = _client.svn_client_ctx_t_progress_baton_set    __swig_getmethods__["progress_baton"] = _client.svn_client_ctx_t_progress_baton_get    def set_parent_pool(self, parent_pool=None):      """Create a new proxy object for svn_client_ctx_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)      try:        old_dict = self.__dict__["_member_dicts"][name]        value.__dict__["_parent_pool"] = old_dict.get("_parent_pool")        value.__dict__["_member_dicts"] = old_dict.get("_member_dicts")        value.__dict__["_is_valid"] = old_dict.get("_is_valid")        value.assert_valid()      except KeyError:        pass      return value    def __setattr__(self, name, value):      """Set an attribute on this object"""      self.assert_valid()      try:        self.__dict__.setdefault("_member_dicts",{})[name] = value.__dict__      except AttributeError:        pass      return _swig_setattr(self, self.__class__, name, value)    def __init__(self, *args):        """__init__(self) -> svn_client_ctx_t"""        _swig_setattr(self, svn_client_ctx_t, 'this', apply(_client.new_svn_client_ctx_t, args))        _swig_setattr(self, svn_client_ctx_t, 'thisown', 1)    def __del__(self, destroy=_client.delete_svn_client_ctx_t):        """__del__(self)"""        try:            if self.thisown: destroy(self)        except: passclass svn_client_ctx_tPtr(svn_client_ctx_t):    def __init__(self, this):        _swig_setattr(self, svn_client_ctx_t, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, svn_client_ctx_t, 'thisown', 0)        _swig_setattr(self, svn_client_ctx_t,self.__class__,svn_client_ctx_t)_client.svn_client_ctx_t_swigregister(svn_client_ctx_tPtr)SVN_CLIENT_AUTH_USERNAME = _client.SVN_CLIENT_AUTH_USERNAMESVN_CLIENT_AUTH_PASSWORD = _client.SVN_CLIENT_AUTH_PASSWORDdef svn_client_create_context(*args):    """svn_client_create_context(svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t"""    return apply(_client.svn_client_create_context, args)def svn_client_checkout2(*args):    """    svn_client_checkout2(svn_revnum_t result_rev, char URL, char path, svn_opt_revision_t peg_revision,         svn_opt_revision_t revision,         svn_boolean_t recurse, svn_boolean_t ignore_externals,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_checkout2, args)def svn_client_checkout(*args):    """    svn_client_checkout(svn_revnum_t result_rev, char URL, char path, svn_opt_revision_t revision,         svn_boolean_t recurse,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_checkout, args)def svn_client_update2(*args):    """    svn_client_update2(apr_array_header_t result_revs, apr_array_header_t paths,         svn_opt_revision_t revision, svn_boolean_t recurse,         svn_boolean_t ignore_externals,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_update2, args)def svn_client_update(*args):    """    svn_client_update(svn_revnum_t result_rev, char path, svn_opt_revision_t revision,         svn_boolean_t recurse, svn_client_ctx_t ctx,         apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_update, args)def svn_client_switch(*args):    """    svn_client_switch(svn_revnum_t result_rev, char path, char url, svn_opt_revision_t revision,         svn_boolean_t recurse,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_switch, args)def svn_client_add3(*args):    """    svn_client_add3(char path, svn_boolean_t recursive, svn_boolean_t force,         svn_boolean_t no_ignore, svn_client_ctx_t ctx,         apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_add3, args)def svn_client_add2(*args):    """    svn_client_add2(char path, svn_boolean_t recursive, svn_boolean_t force,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_add2, args)def svn_client_add(*args):    """    svn_client_add(char path, svn_boolean_t recursive, svn_client_ctx_t ctx,         apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_add, args)def svn_client_mkdir2(*args):    """    svn_client_mkdir2(svn_commit_info_t commit_info_p, apr_array_header_t paths,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_mkdir2, args)def svn_client_mkdir(*args):    """    svn_client_mkdir(svn_client_commit_info_t commit_info_p, apr_array_header_t paths,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_mkdir, args)def svn_client_delete2(*args):    """    svn_client_delete2(svn_commit_info_t commit_info_p, apr_array_header_t paths,         svn_boolean_t force, svn_client_ctx_t ctx,         apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_delete2, args)def svn_client_delete(*args):    """    svn_client_delete(svn_client_commit_info_t commit_info_p, apr_array_header_t paths,         svn_boolean_t force, svn_client_ctx_t ctx,         apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_delete, args)def svn_client_import2(*args):    """    svn_client_import2(svn_commit_info_t commit_info_p, char path, char url,         svn_boolean_t nonrecursive, svn_boolean_t no_ignore,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_import2, args)def svn_client_import(*args):    """    svn_client_import(svn_client_commit_info_t commit_info_p, char path,         char url, svn_boolean_t nonrecursive, svn_client_ctx_t ctx,         apr_pool_t pool) -> svn_error_t    """    return apply(_client.svn_client_import, args)def svn_client_commit3(*args):    """    svn_client_commit3(svn_commit_info_t commit_info_p, apr_array_header_t targets,         svn_boolean_t recurse, svn_boolean_t keep_locks,         svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?