client.py

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

PY
1,251
字号
# This file was created automatically by SWIG.# Don't modify this file, modify the SWIG interface instead.# This file is compatible with both classic and new-style classes.import _clientdef _swig_setattr_nondynamic(self,class_type,name,value,static=1):    if (name == "this"):        if isinstance(value, class_type):            self.__dict__[name] = value.this            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown            del value.thisown            return    method = class_type.__swig_setmethods__.get(name,None)    if method: return method(self,value)    if (not static) or hasattr(self,name) or (name == "thisown"):        self.__dict__[name] = value    else:        raise AttributeError("You cannot add attributes to %s" % self)def _swig_setattr(self,class_type,name,value):    return _swig_setattr_nondynamic(self,class_type,name,value,0)def _swig_getattr(self,class_type,name):    method = class_type.__swig_getmethods__.get(name,None)    if method: return method(self)    raise AttributeError,nameimport coreimport deltaimport wcimport radef svn_client_version(*args):    """svn_client_version() -> svn_version_t"""    return apply(_client.svn_client_version, args)def svn_client_get_simple_prompt_provider(*args):    """    svn_client_get_simple_prompt_provider(svn_auth_provider_object_t provider, svn_auth_simple_prompt_func_t prompt_func,         int retry_limit,         apr_pool_t pool)    """    return apply(_client.svn_client_get_simple_prompt_provider, args)def svn_client_get_username_prompt_provider(*args):    """    svn_client_get_username_prompt_provider(svn_auth_provider_object_t provider, svn_auth_username_prompt_func_t prompt_func,         int retry_limit,         apr_pool_t pool)    """    return apply(_client.svn_client_get_username_prompt_provider, args)def svn_client_get_simple_provider(*args):    """svn_client_get_simple_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""    return apply(_client.svn_client_get_simple_provider, args)def svn_client_get_username_provider(*args):    """svn_client_get_username_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""    return apply(_client.svn_client_get_username_provider, args)def svn_client_get_ssl_server_trust_file_provider(*args):    """svn_client_get_ssl_server_trust_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""    return apply(_client.svn_client_get_ssl_server_trust_file_provider, args)def svn_client_get_ssl_client_cert_file_provider(*args):    """svn_client_get_ssl_client_cert_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""    return apply(_client.svn_client_get_ssl_client_cert_file_provider, args)def svn_client_get_ssl_client_cert_pw_file_provider(*args):    """svn_client_get_ssl_client_cert_pw_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""    return apply(_client.svn_client_get_ssl_client_cert_pw_file_provider, args)def svn_client_get_ssl_server_trust_prompt_provider(*args):    """    svn_client_get_ssl_server_trust_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_server_trust_prompt_func_t prompt_func,         apr_pool_t pool)    """    return apply(_client.svn_client_get_ssl_server_trust_prompt_provider, args)def svn_client_get_ssl_client_cert_prompt_provider(*args):    """    svn_client_get_ssl_client_cert_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_client_cert_prompt_func_t prompt_func,         int retry_limit,         apr_pool_t pool)    """    return apply(_client.svn_client_get_ssl_client_cert_prompt_provider, args)def svn_client_get_ssl_client_cert_pw_prompt_provider(*args):    """    svn_client_get_ssl_client_cert_pw_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func,         int retry_limit,         apr_pool_t pool)    """    return apply(_client.svn_client_get_ssl_client_cert_pw_prompt_provider, args)def svn_client_proplist_item_dup(*args):    """svn_client_proplist_item_dup( item, apr_pool_t pool)"""    return apply(_client.svn_client_proplist_item_dup, args)class svn_client_commit_info_t:    """Proxy of C svn_client_commit_info_t struct"""    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_info_t, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_info_t, name)    def __repr__(self):        return "<%s.%s; proxy of C svn_client_commit_info_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["revision"] = _client.svn_client_commit_info_t_revision_set    __swig_getmethods__["revision"] = _client.svn_client_commit_info_t_revision_get    __swig_setmethods__["date"] = _client.svn_client_commit_info_t_date_set    __swig_getmethods__["date"] = _client.svn_client_commit_info_t_date_get    __swig_setmethods__["author"] = _client.svn_client_commit_info_t_author_set    __swig_getmethods__["author"] = _client.svn_client_commit_info_t_author_get    def set_parent_pool(self, parent_pool=None):      """Create a new proxy object for svn_client_commit_info_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_commit_info_t"""        _swig_setattr(self, svn_client_commit_info_t, 'this', apply(_client.new_svn_client_commit_info_t, args))        _swig_setattr(self, svn_client_commit_info_t, 'thisown', 1)    def __del__(self, destroy=_client.delete_svn_client_commit_info_t):        """__del__(self)"""        try:            if self.thisown: destroy(self)        except: passclass svn_client_commit_info_tPtr(svn_client_commit_info_t):    def __init__(self, this):        _swig_setattr(self, svn_client_commit_info_t, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, svn_client_commit_info_t, 'thisown', 0)        _swig_setattr(self, svn_client_commit_info_t,self.__class__,svn_client_commit_info_t)_client.svn_client_commit_info_t_swigregister(svn_client_commit_info_tPtr)SVN_CLIENT_COMMIT_ITEM_ADD = _client.SVN_CLIENT_COMMIT_ITEM_ADDSVN_CLIENT_COMMIT_ITEM_DELETE = _client.SVN_CLIENT_COMMIT_ITEM_DELETESVN_CLIENT_COMMIT_ITEM_TEXT_MODS = _client.SVN_CLIENT_COMMIT_ITEM_TEXT_MODSSVN_CLIENT_COMMIT_ITEM_PROP_MODS = _client.SVN_CLIENT_COMMIT_ITEM_PROP_MODSSVN_CLIENT_COMMIT_ITEM_IS_COPY = _client.SVN_CLIENT_COMMIT_ITEM_IS_COPYSVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN = _client.SVN_CLIENT_COMMIT_ITEM_LOCK_TOKENclass svn_client_commit_item2_t:    """Proxy of C svn_client_commit_item2_t struct"""    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_item2_t, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_item2_t, name)    def __repr__(self):        return "<%s.%s; proxy of C svn_client_commit_item2_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["path"] = _client.svn_client_commit_item2_t_path_set    __swig_getmethods__["path"] = _client.svn_client_commit_item2_t_path_get    __swig_setmethods__["kind"] = _client.svn_client_commit_item2_t_kind_set    __swig_getmethods__["kind"] = _client.svn_client_commit_item2_t_kind_get    __swig_setmethods__["url"] = _client.svn_client_commit_item2_t_url_set    __swig_getmethods__["url"] = _client.svn_client_commit_item2_t_url_get    __swig_setmethods__["revision"] = _client.svn_client_commit_item2_t_revision_set    __swig_getmethods__["revision"] = _client.svn_client_commit_item2_t_revision_get    __swig_setmethods__["copyfrom_url"] = _client.svn_client_commit_item2_t_copyfrom_url_set    __swig_getmethods__["copyfrom_url"] = _client.svn_client_commit_item2_t_copyfrom_url_get    __swig_setmethods__["copyfrom_rev"] = _client.svn_client_commit_item2_t_copyfrom_rev_set    __swig_getmethods__["copyfrom_rev"] = _client.svn_client_commit_item2_t_copyfrom_rev_get    __swig_setmethods__["state_flags"] = _client.svn_client_commit_item2_t_state_flags_set    __swig_getmethods__["state_flags"] = _client.svn_client_commit_item2_t_state_flags_get    __swig_setmethods__["wcprop_changes"] = _client.svn_client_commit_item2_t_wcprop_changes_set    __swig_getmethods__["wcprop_changes"] = _client.svn_client_commit_item2_t_wcprop_changes_get    def set_parent_pool(self, parent_pool=None):      """Create a new proxy object for svn_client_commit_item2_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_commit_item2_t"""        _swig_setattr(self, svn_client_commit_item2_t, 'this', apply(_client.new_svn_client_commit_item2_t, args))        _swig_setattr(self, svn_client_commit_item2_t, 'thisown', 1)    def __del__(self, destroy=_client.delete_svn_client_commit_item2_t):        """__del__(self)"""        try:            if self.thisown: destroy(self)        except: passclass svn_client_commit_item2_tPtr(svn_client_commit_item2_t):    def __init__(self, this):        _swig_setattr(self, svn_client_commit_item2_t, 'this', this)        if not hasattr(self,"thisown"): _swig_setattr(self, svn_client_commit_item2_t, 'thisown', 0)        _swig_setattr(self, svn_client_commit_item2_t,self.__class__,svn_client_commit_item2_t)_client.svn_client_commit_item2_t_swigregister(svn_client_commit_item2_tPtr)def svn_client_commit_item2_dup(*args):    """svn_client_commit_item2_dup(svn_client_commit_item2_t item, apr_pool_t pool) -> svn_client_commit_item2_t"""    return apply(_client.svn_client_commit_item2_dup, args)class svn_client_commit_item_t:    """Proxy of C svn_client_commit_item_t struct"""    __swig_setmethods__ = {}    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_item_t, name, value)    __swig_getmethods__ = {}    __getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_item_t, name)    def __repr__(self):        return "<%s.%s; proxy of C svn_client_commit_item_t instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)    __swig_setmethods__["path"] = _client.svn_client_commit_item_t_path_set    __swig_getmethods__["path"] = _client.svn_client_commit_item_t_path_get    __swig_setmethods__["kind"] = _client.svn_client_commit_item_t_kind_set    __swig_getmethods__["kind"] = _client.svn_client_commit_item_t_kind_get    __swig_setmethods__["url"] = _client.svn_client_commit_item_t_url_set    __swig_getmethods__["url"] = _client.svn_client_commit_item_t_url_get    __swig_setmethods__["revision"] = _client.svn_client_commit_item_t_revision_set    __swig_getmethods__["revision"] = _client.svn_client_commit_item_t_revision_get    __swig_setmethods__["copyfrom_url"] = _client.svn_client_commit_item_t_copyfrom_url_set    __swig_getmethods__["copyfrom_url"] = _client.svn_client_commit_item_t_copyfrom_url_get    __swig_setmethods__["state_flags"] = _client.svn_client_commit_item_t_state_flags_set    __swig_getmethods__["state_flags"] = _client.svn_client_commit_item_t_state_flags_get    __swig_setmethods__["wcprop_changes"] = _client.svn_client_commit_item_t_wcprop_changes_set    __swig_getmethods__["wcprop_changes"] = _client.svn_client_commit_item_t_wcprop_changes_get    def set_parent_pool(self, parent_pool=None):      """Create a new proxy object for svn_client_commit_item_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:

⌨️ 快捷键说明

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