1# This file was automatically generated by SWIG (http://www.swig.org). 2# Version 3.0.12 3# 4# Do not make changes to this file unless you know what you are doing--modify 5# the SWIG interface file instead. 6 7 8def _dll_paths(): 9 import os 10 if hasattr(os, 'add_dll_directory'): # Python 3.8+ on Windows 11 cookies = [] 12 for path in os.environ.get('PATH', '').split(os.pathsep): 13 if path and os.path.isabs(path): 14 try: 15 cookie = os.add_dll_directory(path) 16 except OSError: 17 continue 18 else: 19 cookies.append(cookie) 20 return cookies 21 else: 22 return () 23 24_dll_paths = _dll_paths() 25try: 26 from . import _ra 27finally: 28 _dll_path = None 29 for _dll_path in _dll_paths: 30 _dll_path.close() 31 del _dll_paths, _dll_path 32 33try: 34 _swig_property = property 35except NameError: 36 pass # Python < 2.2 doesn't have 'property'. 37 38try: 39 import builtins as __builtin__ 40except ImportError: 41 import __builtin__ 42 43def _swig_setattr_nondynamic(self, class_type, name, value, static=1): 44 if (name == "thisown"): 45 return self.this.own(value) 46 if (name == "this"): 47 if type(value).__name__ == 'SwigPyObject': 48 self.__dict__[name] = value 49 return 50 method = class_type.__swig_setmethods__.get(name, None) 51 if method: 52 return method(self, value) 53 if (not static): 54 object.__setattr__(self, name, value) 55 else: 56 raise AttributeError("You cannot add attributes to %s" % self) 57 58 59def _swig_setattr(self, class_type, name, value): 60 return _swig_setattr_nondynamic(self, class_type, name, value, 0) 61 62 63def _swig_getattr(self, class_type, name): 64 if (name == "thisown"): 65 return self.this.own() 66 method = class_type.__swig_getmethods__.get(name, None) 67 if method: 68 return method(self) 69 raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) 70 71 72def _swig_repr(self): 73 try: 74 strthis = "proxy of " + self.this.__repr__() 75 except __builtin__.Exception: 76 strthis = "" 77 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) 78 79 80def _swig_setattr_nondynamic_method(set): 81 def set_attr(self, name, value): 82 if (name == "thisown"): 83 return self.this.own(value) 84 if hasattr(self, name) or (name == "this"): 85 set(self, name, value) 86 else: 87 raise AttributeError("You cannot add attributes to %s" % self) 88 return set_attr 89 90 91 92def _copy_metadata_deep(value, old_value): 93 """Copy all attributes of old_value into value, recursively traversing 94 lists and dicts if needed.""" 95 if value is None or old_value is None or value is old_value: return 96 97 if isinstance(value, dict): 98 for k in value: 99 _copy_metadata_deep(value[k], old_value[k]) 100 elif isinstance(value, list): 101 for v, old_v in zip(value, old_value): 102 _copy_metadata_deep(v, old_v) 103 else: 104 try: 105 value.__dict__.update(old_value.__dict__) 106 except AttributeError: 107 pass 108 109def _assert_valid_deep(value): 110 """Assert value's validity, recursively traversing lists and dicts.""" 111 if isinstance(value, dict): 112 for k in value: 113 _assert_valid_deep(value[k]) 114 elif isinstance(value, list): 115 for v in value: 116 _assert_valid_deep(v) 117# Ensure that the passed in value isn't a type, which could have an 118# assert_valid attribute, but it can not be called without an instance. 119 elif type(value) != type: 120 try: 121 fn = value.assert_valid 122 except AttributeError: 123 pass 124 else: 125 fn() 126 127 128 129 # SWIG classes generated with -modern do not define this variable 130try: 131 _newclass 132except NameError: 133 _newclass = 1 134else: 135 raise RuntimeError("Require -modern option, but _newclass is defined") 136 137_get_instance_attr = object.__getattribute__ 138_set_instance_attr = _swig_setattr_nondynamic_method(object.__setattr__) 139 140 141import libsvn.core 142import libsvn.delta 143 144def svn_ra_version() -> "svn_version_t const *": 145 """svn_ra_version() -> svn_version_t const *""" 146 return _ra.svn_ra_version() 147class svn_ra_reporter3_t(object): 148 """Proxy of C svn_ra_reporter3_t struct.""" 149 150 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 151 __repr__ = _swig_repr 152 set_path = _swig_property(_ra.svn_ra_reporter3_t_set_path_get, _ra.svn_ra_reporter3_t_set_path_set) 153 delete_path = _swig_property(_ra.svn_ra_reporter3_t_delete_path_get, _ra.svn_ra_reporter3_t_delete_path_set) 154 link_path = _swig_property(_ra.svn_ra_reporter3_t_link_path_get, _ra.svn_ra_reporter3_t_link_path_set) 155 finish_report = _swig_property(_ra.svn_ra_reporter3_t_finish_report_get, _ra.svn_ra_reporter3_t_finish_report_set) 156 abort_report = _swig_property(_ra.svn_ra_reporter3_t_abort_report_get, _ra.svn_ra_reporter3_t_abort_report_set) 157 def set_parent_pool(self, parent_pool=None): 158 """Create a new proxy object for TYPE""" 159 import libsvn.core, weakref 160 self.__dict__["_parent_pool"] = \ 161 parent_pool or libsvn.core.application_pool; 162 if self.__dict__["_parent_pool"]: 163 self.__dict__["_is_valid"] = weakref.ref( 164 self.__dict__["_parent_pool"]._is_valid) 165 166 def assert_valid(self): 167 """Assert that this object is using valid pool memory""" 168 if "_is_valid" in self.__dict__: 169 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 170 171 def _retrieve_swig_value(self, name, value): 172 # If we got back a different object than we have cached, we need to copy 173 # all our metadata into it, so that it looks identical to the one 174 # originally set. 175 members = self.__dict__.get('_members') 176 if members is not None and name in members: 177 _copy_metadata_deep(value, members[name]) 178 179 # Verify that the new object is good 180 _assert_valid_deep(value) 181 182 return value 183 184 # Attribute access must be intercepted to ensure that objects coming from 185 # read attribute access match those that are set with write attribute access. 186 # Specifically the metadata, such as the associated apr_pool object, should 187 # match the originally assigned object. 188 # 189 # For classic classes it is enough to use __getattr__ to intercept swig 190 # derived attributes. However, with new style classes SWIG makes use of 191 # descriptors which mean that __getattr__ is never called. Therefore, 192 # __getattribute__ must be used for the interception. 193 194 if _newclass: 195 def __getattribute__(self, name): 196 """Manage access to all attributes of this object.""" 197 198 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 199 # items directly present in __dict__ 200 mydict = object.__getattribute__(self, '__dict__') 201 202 if name == "__dict__": 203 return mydict 204 205 if name in mydict: 206 return mydict[name] 207 208 object.__getattribute__(self, 'assert_valid')() 209 210 value = _get_instance_attr(self, name) 211 fn = object.__getattribute__(self, '_retrieve_swig_value') 212 return fn(name, value) 213 else: 214 def __getattr__(self, name): 215 """Get an attribute from this object""" 216 self.assert_valid() 217 218 value = _swig_getattr(self, self.__class__, name) 219 220 return self._retrieve_swig_value(name, value) 221 222 def __setattr__(self, name, value): 223 """Set an attribute on this object""" 224 self.assert_valid() 225 226 # Save a copy of the object, so that the garbage 227 # collector won't kill the object while it's in 228 # SWIG-land 229 self.__dict__.setdefault("_members",{})[name] = value 230 231 return _set_instance_attr(self, name, value) 232 233 234 def set_path(self, *args): 235 return svn_ra_reporter3_invoke_set_path(self, *args) 236 237 238 def delete_path(self, *args): 239 return svn_ra_reporter3_invoke_delete_path(self, *args) 240 241 242 def link_path(self, *args): 243 return svn_ra_reporter3_invoke_link_path(self, *args) 244 245 246 def finish_report(self, *args): 247 return svn_ra_reporter3_invoke_finish_report(self, *args) 248 249 250 def abort_report(self, *args): 251 return svn_ra_reporter3_invoke_abort_report(self, *args) 252 253 254 def __init__(self): 255 """__init__(svn_ra_reporter3_t self) -> svn_ra_reporter3_t""" 256 this = _ra.new_svn_ra_reporter3_t() 257 try: 258 self.this.append(this) 259 except __builtin__.Exception: 260 self.this = this 261 __swig_destroy__ = _ra.delete_svn_ra_reporter3_t 262 __del__ = lambda self: None 263svn_ra_reporter3_t_swigregister = _ra.svn_ra_reporter3_t_swigregister 264svn_ra_reporter3_t_swigregister(svn_ra_reporter3_t) 265 266class svn_ra_reporter2_t(object): 267 """Proxy of C svn_ra_reporter2_t struct.""" 268 269 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 270 __repr__ = _swig_repr 271 set_path = _swig_property(_ra.svn_ra_reporter2_t_set_path_get, _ra.svn_ra_reporter2_t_set_path_set) 272 delete_path = _swig_property(_ra.svn_ra_reporter2_t_delete_path_get, _ra.svn_ra_reporter2_t_delete_path_set) 273 link_path = _swig_property(_ra.svn_ra_reporter2_t_link_path_get, _ra.svn_ra_reporter2_t_link_path_set) 274 finish_report = _swig_property(_ra.svn_ra_reporter2_t_finish_report_get, _ra.svn_ra_reporter2_t_finish_report_set) 275 abort_report = _swig_property(_ra.svn_ra_reporter2_t_abort_report_get, _ra.svn_ra_reporter2_t_abort_report_set) 276 def set_parent_pool(self, parent_pool=None): 277 """Create a new proxy object for TYPE""" 278 import libsvn.core, weakref 279 self.__dict__["_parent_pool"] = \ 280 parent_pool or libsvn.core.application_pool; 281 if self.__dict__["_parent_pool"]: 282 self.__dict__["_is_valid"] = weakref.ref( 283 self.__dict__["_parent_pool"]._is_valid) 284 285 def assert_valid(self): 286 """Assert that this object is using valid pool memory""" 287 if "_is_valid" in self.__dict__: 288 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 289 290 def _retrieve_swig_value(self, name, value): 291 # If we got back a different object than we have cached, we need to copy 292 # all our metadata into it, so that it looks identical to the one 293 # originally set. 294 members = self.__dict__.get('_members') 295 if members is not None and name in members: 296 _copy_metadata_deep(value, members[name]) 297 298 # Verify that the new object is good 299 _assert_valid_deep(value) 300 301 return value 302 303 # Attribute access must be intercepted to ensure that objects coming from 304 # read attribute access match those that are set with write attribute access. 305 # Specifically the metadata, such as the associated apr_pool object, should 306 # match the originally assigned object. 307 # 308 # For classic classes it is enough to use __getattr__ to intercept swig 309 # derived attributes. However, with new style classes SWIG makes use of 310 # descriptors which mean that __getattr__ is never called. Therefore, 311 # __getattribute__ must be used for the interception. 312 313 if _newclass: 314 def __getattribute__(self, name): 315 """Manage access to all attributes of this object.""" 316 317 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 318 # items directly present in __dict__ 319 mydict = object.__getattribute__(self, '__dict__') 320 321 if name == "__dict__": 322 return mydict 323 324 if name in mydict: 325 return mydict[name] 326 327 object.__getattribute__(self, 'assert_valid')() 328 329 value = _get_instance_attr(self, name) 330 fn = object.__getattribute__(self, '_retrieve_swig_value') 331 return fn(name, value) 332 else: 333 def __getattr__(self, name): 334 """Get an attribute from this object""" 335 self.assert_valid() 336 337 value = _swig_getattr(self, self.__class__, name) 338 339 return self._retrieve_swig_value(name, value) 340 341 def __setattr__(self, name, value): 342 """Set an attribute on this object""" 343 self.assert_valid() 344 345 # Save a copy of the object, so that the garbage 346 # collector won't kill the object while it's in 347 # SWIG-land 348 self.__dict__.setdefault("_members",{})[name] = value 349 350 return _set_instance_attr(self, name, value) 351 352 353 def set_path(self, *args): 354 return svn_ra_reporter2_invoke_set_path(self, *args) 355 356 357 def delete_path(self, *args): 358 return svn_ra_reporter2_invoke_delete_path(self, *args) 359 360 361 def link_path(self, *args): 362 return svn_ra_reporter2_invoke_link_path(self, *args) 363 364 365 def finish_report(self, *args): 366 return svn_ra_reporter2_invoke_finish_report(self, *args) 367 368 369 def abort_report(self, *args): 370 return svn_ra_reporter2_invoke_abort_report(self, *args) 371 372 373 def __init__(self): 374 """__init__(svn_ra_reporter2_t self) -> svn_ra_reporter2_t""" 375 this = _ra.new_svn_ra_reporter2_t() 376 try: 377 self.this.append(this) 378 except __builtin__.Exception: 379 self.this = this 380 __swig_destroy__ = _ra.delete_svn_ra_reporter2_t 381 __del__ = lambda self: None 382svn_ra_reporter2_t_swigregister = _ra.svn_ra_reporter2_t_swigregister 383svn_ra_reporter2_t_swigregister(svn_ra_reporter2_t) 384 385class svn_ra_reporter_t(object): 386 """Proxy of C svn_ra_reporter_t struct.""" 387 388 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 389 __repr__ = _swig_repr 390 set_path = _swig_property(_ra.svn_ra_reporter_t_set_path_get, _ra.svn_ra_reporter_t_set_path_set) 391 delete_path = _swig_property(_ra.svn_ra_reporter_t_delete_path_get, _ra.svn_ra_reporter_t_delete_path_set) 392 link_path = _swig_property(_ra.svn_ra_reporter_t_link_path_get, _ra.svn_ra_reporter_t_link_path_set) 393 finish_report = _swig_property(_ra.svn_ra_reporter_t_finish_report_get, _ra.svn_ra_reporter_t_finish_report_set) 394 abort_report = _swig_property(_ra.svn_ra_reporter_t_abort_report_get, _ra.svn_ra_reporter_t_abort_report_set) 395 def set_parent_pool(self, parent_pool=None): 396 """Create a new proxy object for TYPE""" 397 import libsvn.core, weakref 398 self.__dict__["_parent_pool"] = \ 399 parent_pool or libsvn.core.application_pool; 400 if self.__dict__["_parent_pool"]: 401 self.__dict__["_is_valid"] = weakref.ref( 402 self.__dict__["_parent_pool"]._is_valid) 403 404 def assert_valid(self): 405 """Assert that this object is using valid pool memory""" 406 if "_is_valid" in self.__dict__: 407 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 408 409 def _retrieve_swig_value(self, name, value): 410 # If we got back a different object than we have cached, we need to copy 411 # all our metadata into it, so that it looks identical to the one 412 # originally set. 413 members = self.__dict__.get('_members') 414 if members is not None and name in members: 415 _copy_metadata_deep(value, members[name]) 416 417 # Verify that the new object is good 418 _assert_valid_deep(value) 419 420 return value 421 422 # Attribute access must be intercepted to ensure that objects coming from 423 # read attribute access match those that are set with write attribute access. 424 # Specifically the metadata, such as the associated apr_pool object, should 425 # match the originally assigned object. 426 # 427 # For classic classes it is enough to use __getattr__ to intercept swig 428 # derived attributes. However, with new style classes SWIG makes use of 429 # descriptors which mean that __getattr__ is never called. Therefore, 430 # __getattribute__ must be used for the interception. 431 432 if _newclass: 433 def __getattribute__(self, name): 434 """Manage access to all attributes of this object.""" 435 436 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 437 # items directly present in __dict__ 438 mydict = object.__getattribute__(self, '__dict__') 439 440 if name == "__dict__": 441 return mydict 442 443 if name in mydict: 444 return mydict[name] 445 446 object.__getattribute__(self, 'assert_valid')() 447 448 value = _get_instance_attr(self, name) 449 fn = object.__getattribute__(self, '_retrieve_swig_value') 450 return fn(name, value) 451 else: 452 def __getattr__(self, name): 453 """Get an attribute from this object""" 454 self.assert_valid() 455 456 value = _swig_getattr(self, self.__class__, name) 457 458 return self._retrieve_swig_value(name, value) 459 460 def __setattr__(self, name, value): 461 """Set an attribute on this object""" 462 self.assert_valid() 463 464 # Save a copy of the object, so that the garbage 465 # collector won't kill the object while it's in 466 # SWIG-land 467 self.__dict__.setdefault("_members",{})[name] = value 468 469 return _set_instance_attr(self, name, value) 470 471 472 def set_path(self, *args): 473 return svn_ra_reporter_invoke_set_path(self, *args) 474 475 476 def delete_path(self, *args): 477 return svn_ra_reporter_invoke_delete_path(self, *args) 478 479 480 def link_path(self, *args): 481 return svn_ra_reporter_invoke_link_path(self, *args) 482 483 484 def finish_report(self, *args): 485 return svn_ra_reporter_invoke_finish_report(self, *args) 486 487 488 def abort_report(self, *args): 489 return svn_ra_reporter_invoke_abort_report(self, *args) 490 491 492 def __init__(self): 493 """__init__(svn_ra_reporter_t self) -> svn_ra_reporter_t""" 494 this = _ra.new_svn_ra_reporter_t() 495 try: 496 self.this.append(this) 497 except __builtin__.Exception: 498 self.this = this 499 __swig_destroy__ = _ra.delete_svn_ra_reporter_t 500 __del__ = lambda self: None 501svn_ra_reporter_t_swigregister = _ra.svn_ra_reporter_t_swigregister 502svn_ra_reporter_t_swigregister(svn_ra_reporter_t) 503 504class svn_ra_callbacks2_t(object): 505 """Proxy of C svn_ra_callbacks2_t struct.""" 506 507 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 508 __repr__ = _swig_repr 509 open_tmp_file = _swig_property(_ra.svn_ra_callbacks2_t_open_tmp_file_get, _ra.svn_ra_callbacks2_t_open_tmp_file_set) 510 auth_baton = _swig_property(_ra.svn_ra_callbacks2_t_auth_baton_get, _ra.svn_ra_callbacks2_t_auth_baton_set) 511 get_wc_prop = _swig_property(_ra.svn_ra_callbacks2_t_get_wc_prop_get, _ra.svn_ra_callbacks2_t_get_wc_prop_set) 512 set_wc_prop = _swig_property(_ra.svn_ra_callbacks2_t_set_wc_prop_get, _ra.svn_ra_callbacks2_t_set_wc_prop_set) 513 push_wc_prop = _swig_property(_ra.svn_ra_callbacks2_t_push_wc_prop_get, _ra.svn_ra_callbacks2_t_push_wc_prop_set) 514 invalidate_wc_props = _swig_property(_ra.svn_ra_callbacks2_t_invalidate_wc_props_get, _ra.svn_ra_callbacks2_t_invalidate_wc_props_set) 515 progress_func = _swig_property(_ra.svn_ra_callbacks2_t_progress_func_get, _ra.svn_ra_callbacks2_t_progress_func_set) 516 progress_baton = _swig_property(_ra.svn_ra_callbacks2_t_progress_baton_get, _ra.svn_ra_callbacks2_t_progress_baton_set) 517 cancel_func = _swig_property(_ra.svn_ra_callbacks2_t_cancel_func_get, _ra.svn_ra_callbacks2_t_cancel_func_set) 518 get_client_string = _swig_property(_ra.svn_ra_callbacks2_t_get_client_string_get, _ra.svn_ra_callbacks2_t_get_client_string_set) 519 get_wc_contents = _swig_property(_ra.svn_ra_callbacks2_t_get_wc_contents_get, _ra.svn_ra_callbacks2_t_get_wc_contents_set) 520 check_tunnel_func = _swig_property(_ra.svn_ra_callbacks2_t_check_tunnel_func_get, _ra.svn_ra_callbacks2_t_check_tunnel_func_set) 521 open_tunnel_func = _swig_property(_ra.svn_ra_callbacks2_t_open_tunnel_func_get, _ra.svn_ra_callbacks2_t_open_tunnel_func_set) 522 tunnel_baton = _swig_property(_ra.svn_ra_callbacks2_t_tunnel_baton_get, _ra.svn_ra_callbacks2_t_tunnel_baton_set) 523 def set_parent_pool(self, parent_pool=None): 524 """Create a new proxy object for TYPE""" 525 import libsvn.core, weakref 526 self.__dict__["_parent_pool"] = \ 527 parent_pool or libsvn.core.application_pool; 528 if self.__dict__["_parent_pool"]: 529 self.__dict__["_is_valid"] = weakref.ref( 530 self.__dict__["_parent_pool"]._is_valid) 531 532 def assert_valid(self): 533 """Assert that this object is using valid pool memory""" 534 if "_is_valid" in self.__dict__: 535 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 536 537 def _retrieve_swig_value(self, name, value): 538 # If we got back a different object than we have cached, we need to copy 539 # all our metadata into it, so that it looks identical to the one 540 # originally set. 541 members = self.__dict__.get('_members') 542 if members is not None and name in members: 543 _copy_metadata_deep(value, members[name]) 544 545 # Verify that the new object is good 546 _assert_valid_deep(value) 547 548 return value 549 550 # Attribute access must be intercepted to ensure that objects coming from 551 # read attribute access match those that are set with write attribute access. 552 # Specifically the metadata, such as the associated apr_pool object, should 553 # match the originally assigned object. 554 # 555 # For classic classes it is enough to use __getattr__ to intercept swig 556 # derived attributes. However, with new style classes SWIG makes use of 557 # descriptors which mean that __getattr__ is never called. Therefore, 558 # __getattribute__ must be used for the interception. 559 560 if _newclass: 561 def __getattribute__(self, name): 562 """Manage access to all attributes of this object.""" 563 564 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 565 # items directly present in __dict__ 566 mydict = object.__getattribute__(self, '__dict__') 567 568 if name == "__dict__": 569 return mydict 570 571 if name in mydict: 572 return mydict[name] 573 574 object.__getattribute__(self, 'assert_valid')() 575 576 value = _get_instance_attr(self, name) 577 fn = object.__getattribute__(self, '_retrieve_swig_value') 578 return fn(name, value) 579 else: 580 def __getattr__(self, name): 581 """Get an attribute from this object""" 582 self.assert_valid() 583 584 value = _swig_getattr(self, self.__class__, name) 585 586 return self._retrieve_swig_value(name, value) 587 588 def __setattr__(self, name, value): 589 """Set an attribute on this object""" 590 self.assert_valid() 591 592 # Save a copy of the object, so that the garbage 593 # collector won't kill the object while it's in 594 # SWIG-land 595 self.__dict__.setdefault("_members",{})[name] = value 596 597 return _set_instance_attr(self, name, value) 598 599 600 def open_tmp_file(self, *args): 601 return svn_ra_callbacks2_invoke_open_tmp_file(self, *args) 602 603 604 def __init__(self): 605 """__init__(svn_ra_callbacks2_t self) -> svn_ra_callbacks2_t""" 606 this = _ra.new_svn_ra_callbacks2_t() 607 try: 608 self.this.append(this) 609 except __builtin__.Exception: 610 self.this = this 611 __swig_destroy__ = _ra.delete_svn_ra_callbacks2_t 612 __del__ = lambda self: None 613svn_ra_callbacks2_t_swigregister = _ra.svn_ra_callbacks2_t_swigregister 614svn_ra_callbacks2_t_swigregister(svn_ra_callbacks2_t) 615 616class svn_ra_callbacks_t(object): 617 """Proxy of C svn_ra_callbacks_t struct.""" 618 619 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 620 __repr__ = _swig_repr 621 open_tmp_file = _swig_property(_ra.svn_ra_callbacks_t_open_tmp_file_get, _ra.svn_ra_callbacks_t_open_tmp_file_set) 622 auth_baton = _swig_property(_ra.svn_ra_callbacks_t_auth_baton_get, _ra.svn_ra_callbacks_t_auth_baton_set) 623 get_wc_prop = _swig_property(_ra.svn_ra_callbacks_t_get_wc_prop_get, _ra.svn_ra_callbacks_t_get_wc_prop_set) 624 set_wc_prop = _swig_property(_ra.svn_ra_callbacks_t_set_wc_prop_get, _ra.svn_ra_callbacks_t_set_wc_prop_set) 625 push_wc_prop = _swig_property(_ra.svn_ra_callbacks_t_push_wc_prop_get, _ra.svn_ra_callbacks_t_push_wc_prop_set) 626 invalidate_wc_props = _swig_property(_ra.svn_ra_callbacks_t_invalidate_wc_props_get, _ra.svn_ra_callbacks_t_invalidate_wc_props_set) 627 def set_parent_pool(self, parent_pool=None): 628 """Create a new proxy object for TYPE""" 629 import libsvn.core, weakref 630 self.__dict__["_parent_pool"] = \ 631 parent_pool or libsvn.core.application_pool; 632 if self.__dict__["_parent_pool"]: 633 self.__dict__["_is_valid"] = weakref.ref( 634 self.__dict__["_parent_pool"]._is_valid) 635 636 def assert_valid(self): 637 """Assert that this object is using valid pool memory""" 638 if "_is_valid" in self.__dict__: 639 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 640 641 def _retrieve_swig_value(self, name, value): 642 # If we got back a different object than we have cached, we need to copy 643 # all our metadata into it, so that it looks identical to the one 644 # originally set. 645 members = self.__dict__.get('_members') 646 if members is not None and name in members: 647 _copy_metadata_deep(value, members[name]) 648 649 # Verify that the new object is good 650 _assert_valid_deep(value) 651 652 return value 653 654 # Attribute access must be intercepted to ensure that objects coming from 655 # read attribute access match those that are set with write attribute access. 656 # Specifically the metadata, such as the associated apr_pool object, should 657 # match the originally assigned object. 658 # 659 # For classic classes it is enough to use __getattr__ to intercept swig 660 # derived attributes. However, with new style classes SWIG makes use of 661 # descriptors which mean that __getattr__ is never called. Therefore, 662 # __getattribute__ must be used for the interception. 663 664 if _newclass: 665 def __getattribute__(self, name): 666 """Manage access to all attributes of this object.""" 667 668 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 669 # items directly present in __dict__ 670 mydict = object.__getattribute__(self, '__dict__') 671 672 if name == "__dict__": 673 return mydict 674 675 if name in mydict: 676 return mydict[name] 677 678 object.__getattribute__(self, 'assert_valid')() 679 680 value = _get_instance_attr(self, name) 681 fn = object.__getattribute__(self, '_retrieve_swig_value') 682 return fn(name, value) 683 else: 684 def __getattr__(self, name): 685 """Get an attribute from this object""" 686 self.assert_valid() 687 688 value = _swig_getattr(self, self.__class__, name) 689 690 return self._retrieve_swig_value(name, value) 691 692 def __setattr__(self, name, value): 693 """Set an attribute on this object""" 694 self.assert_valid() 695 696 # Save a copy of the object, so that the garbage 697 # collector won't kill the object while it's in 698 # SWIG-land 699 self.__dict__.setdefault("_members",{})[name] = value 700 701 return _set_instance_attr(self, name, value) 702 703 704 def open_tmp_file(self, *args): 705 return svn_ra_callbacks_invoke_open_tmp_file(self, *args) 706 707 708 def __init__(self): 709 """__init__(svn_ra_callbacks_t self) -> svn_ra_callbacks_t""" 710 this = _ra.new_svn_ra_callbacks_t() 711 try: 712 self.this.append(this) 713 except __builtin__.Exception: 714 self.this = this 715 __swig_destroy__ = _ra.delete_svn_ra_callbacks_t 716 __del__ = lambda self: None 717svn_ra_callbacks_t_swigregister = _ra.svn_ra_callbacks_t_swigregister 718svn_ra_callbacks_t_swigregister(svn_ra_callbacks_t) 719 720 721def svn_ra_initialize(*args) -> "svn_error_t *": 722 """svn_ra_initialize(apr_pool_t pool) -> svn_error_t""" 723 return _ra.svn_ra_initialize(*args) 724 725def svn_ra_create_callbacks(*args) -> "svn_ra_callbacks2_t **": 726 """svn_ra_create_callbacks(apr_pool_t pool) -> svn_error_t""" 727 return _ra.svn_ra_create_callbacks(*args) 728 729def svn_ra_open5(*args) -> "svn_ra_session_t **, char const **, char const **": 730 """svn_ra_open5(char const * repos_URL, char const * uuid, svn_ra_callbacks2_t callbacks, apr_hash_t config, apr_pool_t pool) -> svn_error_t""" 731 return _ra.svn_ra_open5(*args) 732 733def svn_ra_open4(*args) -> "svn_ra_session_t **, char const **": 734 """svn_ra_open4(char const * repos_URL, char const * uuid, svn_ra_callbacks2_t callbacks, apr_hash_t config, apr_pool_t pool) -> svn_error_t""" 735 return _ra.svn_ra_open4(*args) 736 737def svn_ra_open3(*args) -> "svn_ra_session_t **": 738 """svn_ra_open3(char const * repos_URL, char const * uuid, svn_ra_callbacks2_t callbacks, apr_hash_t config, apr_pool_t pool) -> svn_error_t""" 739 return _ra.svn_ra_open3(*args) 740 741def svn_ra_open2(*args) -> "svn_ra_session_t **": 742 """svn_ra_open2(char const * repos_URL, svn_ra_callbacks2_t callbacks, apr_hash_t config, apr_pool_t pool) -> svn_error_t""" 743 return _ra.svn_ra_open2(*args) 744 745def svn_ra_open(*args) -> "svn_ra_session_t **": 746 """svn_ra_open(char const * repos_URL, svn_ra_callbacks_t callbacks, void * callback_baton, apr_hash_t config, apr_pool_t pool) -> svn_error_t""" 747 return _ra.svn_ra_open(*args) 748 749def svn_ra_reparent(*args) -> "svn_error_t *": 750 """svn_ra_reparent(svn_ra_session_t * ra_session, char const * url, apr_pool_t pool) -> svn_error_t""" 751 return _ra.svn_ra_reparent(*args) 752 753def svn_ra_get_session_url(*args) -> "char const **": 754 """svn_ra_get_session_url(svn_ra_session_t * ra_session, apr_pool_t pool) -> svn_error_t""" 755 return _ra.svn_ra_get_session_url(*args) 756 757def svn_ra_get_path_relative_to_session(*args) -> "char const **": 758 """svn_ra_get_path_relative_to_session(svn_ra_session_t * ra_session, char const * url, apr_pool_t pool) -> svn_error_t""" 759 return _ra.svn_ra_get_path_relative_to_session(*args) 760 761def svn_ra_get_path_relative_to_root(*args) -> "char const **": 762 """svn_ra_get_path_relative_to_root(svn_ra_session_t * ra_session, char const * url, apr_pool_t pool) -> svn_error_t""" 763 return _ra.svn_ra_get_path_relative_to_root(*args) 764 765def svn_ra_get_latest_revnum(*args) -> "svn_revnum_t *": 766 """svn_ra_get_latest_revnum(svn_ra_session_t * session, apr_pool_t pool) -> svn_error_t""" 767 return _ra.svn_ra_get_latest_revnum(*args) 768 769def svn_ra_get_dated_revision(*args) -> "svn_revnum_t *": 770 """svn_ra_get_dated_revision(svn_ra_session_t * session, apr_time_t tm, apr_pool_t pool) -> svn_error_t""" 771 return _ra.svn_ra_get_dated_revision(*args) 772 773def svn_ra_change_rev_prop2(*args) -> "svn_string_t **": 774 """svn_ra_change_rev_prop2(svn_ra_session_t * session, svn_revnum_t rev, char const * name, svn_string_t const *const * old_value_p, svn_string_t const * value, apr_pool_t pool) -> svn_error_t""" 775 return _ra.svn_ra_change_rev_prop2(*args) 776 777def svn_ra_change_rev_prop(*args) -> "svn_error_t *": 778 """svn_ra_change_rev_prop(svn_ra_session_t * session, svn_revnum_t rev, char const * name, svn_string_t const * value, apr_pool_t pool) -> svn_error_t""" 779 return _ra.svn_ra_change_rev_prop(*args) 780 781def svn_ra_rev_proplist(*args) -> "apr_hash_t **": 782 """svn_ra_rev_proplist(svn_ra_session_t * session, svn_revnum_t rev, apr_pool_t pool) -> svn_error_t""" 783 return _ra.svn_ra_rev_proplist(*args) 784 785def svn_ra_rev_prop(*args) -> "svn_string_t **": 786 """svn_ra_rev_prop(svn_ra_session_t * session, svn_revnum_t rev, char const * name, apr_pool_t pool) -> svn_error_t""" 787 return _ra.svn_ra_rev_prop(*args) 788 789def svn_ra_get_commit_editor3(*args) -> "svn_delta_editor_t const **, void **": 790 """svn_ra_get_commit_editor3(svn_ra_session_t * session, apr_hash_t revprop_table, svn_commit_callback2_t commit_callback, apr_hash_t lock_tokens, svn_boolean_t keep_locks, apr_pool_t pool) -> svn_error_t""" 791 return _ra.svn_ra_get_commit_editor3(*args) 792 793def svn_ra_get_commit_editor2(*args) -> "svn_delta_editor_t const **, void **": 794 """svn_ra_get_commit_editor2(svn_ra_session_t * session, char const * log_msg, svn_commit_callback2_t commit_callback, apr_hash_t lock_tokens, svn_boolean_t keep_locks, apr_pool_t pool) -> svn_error_t""" 795 return _ra.svn_ra_get_commit_editor2(*args) 796 797def svn_ra_get_commit_editor(*args) -> "svn_delta_editor_t const **, void **": 798 """svn_ra_get_commit_editor(svn_ra_session_t * session, char const * log_msg, svn_commit_callback_t callback, apr_hash_t lock_tokens, svn_boolean_t keep_locks, apr_pool_t pool) -> svn_error_t""" 799 return _ra.svn_ra_get_commit_editor(*args) 800 801def svn_ra_get_file(*args) -> "svn_revnum_t *, apr_hash_t **": 802 """svn_ra_get_file(svn_ra_session_t * session, char const * path, svn_revnum_t revision, svn_stream_t * stream, apr_pool_t pool) -> svn_error_t""" 803 return _ra.svn_ra_get_file(*args) 804 805def svn_ra_get_dir2(*args) -> "apr_hash_t **, svn_revnum_t *, apr_hash_t **": 806 """svn_ra_get_dir2(svn_ra_session_t * session, char const * path, svn_revnum_t revision, apr_uint32_t dirent_fields, apr_pool_t pool) -> svn_error_t""" 807 return _ra.svn_ra_get_dir2(*args) 808 809def svn_ra_get_dir(*args) -> "apr_hash_t **, svn_revnum_t *, apr_hash_t **": 810 """svn_ra_get_dir(svn_ra_session_t * session, char const * path, svn_revnum_t revision, apr_pool_t pool) -> svn_error_t""" 811 return _ra.svn_ra_get_dir(*args) 812 813def svn_ra_list(*args) -> "svn_error_t *": 814 """svn_ra_list(svn_ra_session_t * session, char const * path, svn_revnum_t revision, apr_array_header_t patterns, svn_depth_t depth, apr_uint32_t dirent_fields, svn_ra_dirent_receiver_t receiver, void * receiver_baton, apr_pool_t scratch_pool) -> svn_error_t""" 815 return _ra.svn_ra_list(*args) 816 817def svn_ra_get_mergeinfo(*args) -> "apr_hash_t **": 818 """svn_ra_get_mergeinfo(svn_ra_session_t * session, apr_array_header_t paths, svn_revnum_t revision, svn_mergeinfo_inheritance_t inherit, svn_boolean_t include_descendants, apr_pool_t pool) -> svn_error_t""" 819 return _ra.svn_ra_get_mergeinfo(*args) 820 821def svn_ra_do_update3(*args) -> "svn_ra_reporter3_t const **, void **": 822 """svn_ra_do_update3(svn_ra_session_t * session, svn_revnum_t revision_to_update_to, char const * update_target, svn_depth_t depth, svn_boolean_t send_copyfrom_args, svn_boolean_t ignore_ancestry, svn_delta_editor_t update_editor, void * update_baton, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" 823 return _ra.svn_ra_do_update3(*args) 824 825def svn_ra_do_update2(*args) -> "svn_ra_reporter3_t const **, void **": 826 """svn_ra_do_update2(svn_ra_session_t * session, svn_revnum_t revision_to_update_to, char const * update_target, svn_depth_t depth, svn_boolean_t send_copyfrom_args, svn_delta_editor_t update_editor, void * update_baton, apr_pool_t pool) -> svn_error_t""" 827 return _ra.svn_ra_do_update2(*args) 828 829def svn_ra_do_update(*args) -> "svn_ra_reporter2_t const **, void **": 830 """svn_ra_do_update(svn_ra_session_t * session, svn_revnum_t revision_to_update_to, char const * update_target, svn_boolean_t recurse, svn_delta_editor_t update_editor, void * update_baton, apr_pool_t pool) -> svn_error_t""" 831 return _ra.svn_ra_do_update(*args) 832 833def svn_ra_do_switch3(*args) -> "svn_ra_reporter3_t const **, void **": 834 """svn_ra_do_switch3(svn_ra_session_t * session, svn_revnum_t revision_to_switch_to, char const * switch_target, svn_depth_t depth, char const * switch_url, svn_boolean_t send_copyfrom_args, svn_boolean_t ignore_ancestry, svn_delta_editor_t switch_editor, void * switch_baton, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" 835 return _ra.svn_ra_do_switch3(*args) 836 837def svn_ra_do_switch2(*args) -> "svn_ra_reporter3_t const **, void **": 838 """svn_ra_do_switch2(svn_ra_session_t * session, svn_revnum_t revision_to_switch_to, char const * switch_target, svn_depth_t depth, char const * switch_url, svn_delta_editor_t switch_editor, void * switch_baton, apr_pool_t pool) -> svn_error_t""" 839 return _ra.svn_ra_do_switch2(*args) 840 841def svn_ra_do_switch(*args) -> "svn_ra_reporter2_t const **, void **": 842 """svn_ra_do_switch(svn_ra_session_t * session, svn_revnum_t revision_to_switch_to, char const * switch_target, svn_boolean_t recurse, char const * switch_url, svn_delta_editor_t switch_editor, void * switch_baton, apr_pool_t pool) -> svn_error_t""" 843 return _ra.svn_ra_do_switch(*args) 844 845def svn_ra_do_status2(*args) -> "svn_ra_reporter3_t const **, void **": 846 """svn_ra_do_status2(svn_ra_session_t * session, char const * status_target, svn_revnum_t revision, svn_depth_t depth, svn_delta_editor_t status_editor, void * status_baton, apr_pool_t pool) -> svn_error_t""" 847 return _ra.svn_ra_do_status2(*args) 848 849def svn_ra_do_status(*args) -> "svn_ra_reporter2_t const **, void **": 850 """svn_ra_do_status(svn_ra_session_t * session, char const * status_target, svn_revnum_t revision, svn_boolean_t recurse, svn_delta_editor_t status_editor, void * status_baton, apr_pool_t pool) -> svn_error_t""" 851 return _ra.svn_ra_do_status(*args) 852 853def svn_ra_do_diff3(*args) -> "svn_ra_reporter3_t const **, void **": 854 """svn_ra_do_diff3(svn_ra_session_t * session, svn_revnum_t revision, char const * diff_target, svn_depth_t depth, svn_boolean_t ignore_ancestry, svn_boolean_t text_deltas, char const * versus_url, svn_delta_editor_t diff_editor, void * diff_baton, apr_pool_t pool) -> svn_error_t""" 855 return _ra.svn_ra_do_diff3(*args) 856 857def svn_ra_do_diff2(*args) -> "svn_ra_reporter2_t const **, void **": 858 """svn_ra_do_diff2(svn_ra_session_t * session, svn_revnum_t revision, char const * diff_target, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, svn_boolean_t text_deltas, char const * versus_url, svn_delta_editor_t diff_editor, void * diff_baton, apr_pool_t pool) -> svn_error_t""" 859 return _ra.svn_ra_do_diff2(*args) 860 861def svn_ra_do_diff(*args) -> "svn_ra_reporter2_t const **, void **": 862 """svn_ra_do_diff(svn_ra_session_t * session, svn_revnum_t revision, char const * diff_target, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, char const * versus_url, svn_delta_editor_t diff_editor, void * diff_baton, apr_pool_t pool) -> svn_error_t""" 863 return _ra.svn_ra_do_diff(*args) 864 865def svn_ra_get_log2(*args) -> "svn_error_t *": 866 """svn_ra_get_log2(svn_ra_session_t * session, apr_array_header_t paths, svn_revnum_t start, svn_revnum_t end, int limit, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_boolean_t include_merged_revisions, apr_array_header_t revprops, svn_log_entry_receiver_t receiver, apr_pool_t pool) -> svn_error_t""" 867 return _ra.svn_ra_get_log2(*args) 868 869def svn_ra_get_log(*args) -> "svn_error_t *": 870 """svn_ra_get_log(svn_ra_session_t * session, apr_array_header_t paths, svn_revnum_t start, svn_revnum_t end, int limit, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_log_message_receiver_t receiver, apr_pool_t pool) -> svn_error_t""" 871 return _ra.svn_ra_get_log(*args) 872 873def svn_ra_check_path(*args) -> "svn_node_kind_t *": 874 """svn_ra_check_path(svn_ra_session_t * session, char const * path, svn_revnum_t revision, apr_pool_t pool) -> svn_error_t""" 875 return _ra.svn_ra_check_path(*args) 876 877def svn_ra_stat(*args) -> "svn_dirent_t **": 878 """svn_ra_stat(svn_ra_session_t * session, char const * path, svn_revnum_t revision, apr_pool_t pool) -> svn_error_t""" 879 return _ra.svn_ra_stat(*args) 880 881def svn_ra_get_uuid2(*args) -> "char const **": 882 """svn_ra_get_uuid2(svn_ra_session_t * session, apr_pool_t pool) -> svn_error_t""" 883 return _ra.svn_ra_get_uuid2(*args) 884 885def svn_ra_get_uuid(*args) -> "char const **": 886 """svn_ra_get_uuid(svn_ra_session_t * session, apr_pool_t pool) -> svn_error_t""" 887 return _ra.svn_ra_get_uuid(*args) 888 889def svn_ra_get_repos_root2(*args) -> "char const **": 890 """svn_ra_get_repos_root2(svn_ra_session_t * session, apr_pool_t pool) -> svn_error_t""" 891 return _ra.svn_ra_get_repos_root2(*args) 892 893def svn_ra_get_repos_root(*args) -> "char const **": 894 """svn_ra_get_repos_root(svn_ra_session_t * session, apr_pool_t pool) -> svn_error_t""" 895 return _ra.svn_ra_get_repos_root(*args) 896 897def svn_ra_get_locations(*args) -> "apr_hash_t **": 898 """svn_ra_get_locations(svn_ra_session_t * session, char const * path, svn_revnum_t peg_revision, apr_array_header_t location_revisions, apr_pool_t pool) -> svn_error_t""" 899 return _ra.svn_ra_get_locations(*args) 900 901def svn_ra_get_location_segments(*args) -> "svn_error_t *": 902 """svn_ra_get_location_segments(svn_ra_session_t * session, char const * path, svn_revnum_t peg_revision, svn_revnum_t start_rev, svn_revnum_t end_rev, svn_location_segment_receiver_t receiver, apr_pool_t pool) -> svn_error_t""" 903 return _ra.svn_ra_get_location_segments(*args) 904 905def svn_ra_get_file_revs2(*args) -> "svn_error_t *": 906 """svn_ra_get_file_revs2(svn_ra_session_t * session, char const * path, svn_revnum_t start, svn_revnum_t end, svn_boolean_t include_merged_revisions, svn_file_rev_handler_t handler, void * handler_baton, apr_pool_t pool) -> svn_error_t""" 907 return _ra.svn_ra_get_file_revs2(*args) 908 909def svn_ra_get_file_revs(*args) -> "svn_error_t *": 910 """svn_ra_get_file_revs(svn_ra_session_t * session, char const * path, svn_revnum_t start, svn_revnum_t end, svn_ra_file_rev_handler_t handler, apr_pool_t pool) -> svn_error_t""" 911 return _ra.svn_ra_get_file_revs(*args) 912 913def svn_ra_lock(*args) -> "svn_error_t *": 914 """svn_ra_lock(svn_ra_session_t * session, apr_hash_t path_revs, char const * comment, svn_boolean_t steal_lock, svn_ra_lock_callback_t lock_func, apr_pool_t pool) -> svn_error_t""" 915 return _ra.svn_ra_lock(*args) 916 917def svn_ra_unlock(*args) -> "svn_error_t *": 918 """svn_ra_unlock(svn_ra_session_t * session, apr_hash_t path_tokens, svn_boolean_t break_lock, svn_ra_lock_callback_t lock_func, apr_pool_t pool) -> svn_error_t""" 919 return _ra.svn_ra_unlock(*args) 920 921def svn_ra_get_lock(*args) -> "svn_lock_t **": 922 """svn_ra_get_lock(svn_ra_session_t * session, char const * path, apr_pool_t pool) -> svn_error_t""" 923 return _ra.svn_ra_get_lock(*args) 924 925def svn_ra_get_locks2(*args) -> "apr_hash_t **": 926 """svn_ra_get_locks2(svn_ra_session_t * session, char const * path, svn_depth_t depth, apr_pool_t pool) -> svn_error_t""" 927 return _ra.svn_ra_get_locks2(*args) 928 929def svn_ra_get_locks(*args) -> "apr_hash_t **": 930 """svn_ra_get_locks(svn_ra_session_t * session, char const * path, apr_pool_t pool) -> svn_error_t""" 931 return _ra.svn_ra_get_locks(*args) 932 933def svn_ra_replay_range(*args) -> "svn_error_t *": 934 """svn_ra_replay_range(svn_ra_session_t * session, svn_revnum_t start_revision, svn_revnum_t end_revision, svn_revnum_t low_water_mark, svn_boolean_t send_deltas, svn_ra_replay_revstart_callback_t revstart_func, svn_ra_replay_revfinish_callback_t revfinish_func, void * replay_baton, apr_pool_t pool) -> svn_error_t""" 935 return _ra.svn_ra_replay_range(*args) 936 937def svn_ra_replay(*args) -> "svn_error_t *": 938 """svn_ra_replay(svn_ra_session_t * session, svn_revnum_t revision, svn_revnum_t low_water_mark, svn_boolean_t send_deltas, svn_delta_editor_t editor, void * edit_baton, apr_pool_t pool) -> svn_error_t""" 939 return _ra.svn_ra_replay(*args) 940 941def svn_ra_get_deleted_rev(*args) -> "svn_revnum_t *": 942 """svn_ra_get_deleted_rev(svn_ra_session_t * session, char const * path, svn_revnum_t peg_revision, svn_revnum_t end_revision, apr_pool_t pool) -> svn_error_t""" 943 return _ra.svn_ra_get_deleted_rev(*args) 944 945def svn_ra_get_inherited_props(*args) -> "apr_array_header_t **": 946 """svn_ra_get_inherited_props(svn_ra_session_t * session, char const * path, svn_revnum_t revision, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t""" 947 return _ra.svn_ra_get_inherited_props(*args) 948 949def svn_ra_has_capability(*args) -> "svn_boolean_t *": 950 """svn_ra_has_capability(svn_ra_session_t * session, char const * capability, apr_pool_t pool) -> svn_error_t""" 951 return _ra.svn_ra_has_capability(*args) 952SVN_RA_CAPABILITY_DEPTH = _ra.SVN_RA_CAPABILITY_DEPTH 953SVN_RA_CAPABILITY_MERGEINFO = _ra.SVN_RA_CAPABILITY_MERGEINFO 954SVN_RA_CAPABILITY_LOG_REVPROPS = _ra.SVN_RA_CAPABILITY_LOG_REVPROPS 955SVN_RA_CAPABILITY_PARTIAL_REPLAY = _ra.SVN_RA_CAPABILITY_PARTIAL_REPLAY 956SVN_RA_CAPABILITY_COMMIT_REVPROPS = _ra.SVN_RA_CAPABILITY_COMMIT_REVPROPS 957SVN_RA_CAPABILITY_ATOMIC_REVPROPS = _ra.SVN_RA_CAPABILITY_ATOMIC_REVPROPS 958SVN_RA_CAPABILITY_INHERITED_PROPS = _ra.SVN_RA_CAPABILITY_INHERITED_PROPS 959SVN_RA_CAPABILITY_EPHEMERAL_TXNPROPS = _ra.SVN_RA_CAPABILITY_EPHEMERAL_TXNPROPS 960SVN_RA_CAPABILITY_GET_FILE_REVS_REVERSE = _ra.SVN_RA_CAPABILITY_GET_FILE_REVS_REVERSE 961SVN_RA_CAPABILITY_LIST = _ra.SVN_RA_CAPABILITY_LIST 962 963def svn_ra_print_modules(*args) -> "svn_error_t *": 964 """svn_ra_print_modules(svn_stringbuf_t * output, apr_pool_t pool) -> svn_error_t""" 965 return _ra.svn_ra_print_modules(*args) 966 967def svn_ra_print_ra_libraries(*args) -> "svn_stringbuf_t **": 968 """svn_ra_print_ra_libraries(void * ra_baton, apr_pool_t pool) -> svn_error_t""" 969 return _ra.svn_ra_print_ra_libraries(*args) 970class svn_ra_plugin_t(object): 971 """Proxy of C svn_ra_plugin_t struct.""" 972 973 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 974 __repr__ = _swig_repr 975 name = _swig_property(_ra.svn_ra_plugin_t_name_get, _ra.svn_ra_plugin_t_name_set) 976 description = _swig_property(_ra.svn_ra_plugin_t_description_get, _ra.svn_ra_plugin_t_description_set) 977 open = _swig_property(_ra.svn_ra_plugin_t_open_get, _ra.svn_ra_plugin_t_open_set) 978 get_latest_revnum = _swig_property(_ra.svn_ra_plugin_t_get_latest_revnum_get, _ra.svn_ra_plugin_t_get_latest_revnum_set) 979 get_dated_revision = _swig_property(_ra.svn_ra_plugin_t_get_dated_revision_get, _ra.svn_ra_plugin_t_get_dated_revision_set) 980 change_rev_prop = _swig_property(_ra.svn_ra_plugin_t_change_rev_prop_get, _ra.svn_ra_plugin_t_change_rev_prop_set) 981 rev_proplist = _swig_property(_ra.svn_ra_plugin_t_rev_proplist_get, _ra.svn_ra_plugin_t_rev_proplist_set) 982 rev_prop = _swig_property(_ra.svn_ra_plugin_t_rev_prop_get, _ra.svn_ra_plugin_t_rev_prop_set) 983 get_commit_editor = _swig_property(_ra.svn_ra_plugin_t_get_commit_editor_get, _ra.svn_ra_plugin_t_get_commit_editor_set) 984 get_file = _swig_property(_ra.svn_ra_plugin_t_get_file_get, _ra.svn_ra_plugin_t_get_file_set) 985 get_dir = _swig_property(_ra.svn_ra_plugin_t_get_dir_get, _ra.svn_ra_plugin_t_get_dir_set) 986 do_update = _swig_property(_ra.svn_ra_plugin_t_do_update_get, _ra.svn_ra_plugin_t_do_update_set) 987 do_switch = _swig_property(_ra.svn_ra_plugin_t_do_switch_get, _ra.svn_ra_plugin_t_do_switch_set) 988 do_status = _swig_property(_ra.svn_ra_plugin_t_do_status_get, _ra.svn_ra_plugin_t_do_status_set) 989 do_diff = _swig_property(_ra.svn_ra_plugin_t_do_diff_get, _ra.svn_ra_plugin_t_do_diff_set) 990 get_log = _swig_property(_ra.svn_ra_plugin_t_get_log_get, _ra.svn_ra_plugin_t_get_log_set) 991 check_path = _swig_property(_ra.svn_ra_plugin_t_check_path_get, _ra.svn_ra_plugin_t_check_path_set) 992 get_uuid = _swig_property(_ra.svn_ra_plugin_t_get_uuid_get, _ra.svn_ra_plugin_t_get_uuid_set) 993 get_repos_root = _swig_property(_ra.svn_ra_plugin_t_get_repos_root_get, _ra.svn_ra_plugin_t_get_repos_root_set) 994 get_locations = _swig_property(_ra.svn_ra_plugin_t_get_locations_get, _ra.svn_ra_plugin_t_get_locations_set) 995 get_file_revs = _swig_property(_ra.svn_ra_plugin_t_get_file_revs_get, _ra.svn_ra_plugin_t_get_file_revs_set) 996 get_version = _swig_property(_ra.svn_ra_plugin_t_get_version_get, _ra.svn_ra_plugin_t_get_version_set) 997 def set_parent_pool(self, parent_pool=None): 998 """Create a new proxy object for TYPE""" 999 import libsvn.core, weakref 1000 self.__dict__["_parent_pool"] = \ 1001 parent_pool or libsvn.core.application_pool; 1002 if self.__dict__["_parent_pool"]: 1003 self.__dict__["_is_valid"] = weakref.ref( 1004 self.__dict__["_parent_pool"]._is_valid) 1005 1006 def assert_valid(self): 1007 """Assert that this object is using valid pool memory""" 1008 if "_is_valid" in self.__dict__: 1009 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1010 1011 def _retrieve_swig_value(self, name, value): 1012 # If we got back a different object than we have cached, we need to copy 1013 # all our metadata into it, so that it looks identical to the one 1014 # originally set. 1015 members = self.__dict__.get('_members') 1016 if members is not None and name in members: 1017 _copy_metadata_deep(value, members[name]) 1018 1019 # Verify that the new object is good 1020 _assert_valid_deep(value) 1021 1022 return value 1023 1024 # Attribute access must be intercepted to ensure that objects coming from 1025 # read attribute access match those that are set with write attribute access. 1026 # Specifically the metadata, such as the associated apr_pool object, should 1027 # match the originally assigned object. 1028 # 1029 # For classic classes it is enough to use __getattr__ to intercept swig 1030 # derived attributes. However, with new style classes SWIG makes use of 1031 # descriptors which mean that __getattr__ is never called. Therefore, 1032 # __getattribute__ must be used for the interception. 1033 1034 if _newclass: 1035 def __getattribute__(self, name): 1036 """Manage access to all attributes of this object.""" 1037 1038 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1039 # items directly present in __dict__ 1040 mydict = object.__getattribute__(self, '__dict__') 1041 1042 if name == "__dict__": 1043 return mydict 1044 1045 if name in mydict: 1046 return mydict[name] 1047 1048 object.__getattribute__(self, 'assert_valid')() 1049 1050 value = _get_instance_attr(self, name) 1051 fn = object.__getattribute__(self, '_retrieve_swig_value') 1052 return fn(name, value) 1053 else: 1054 def __getattr__(self, name): 1055 """Get an attribute from this object""" 1056 self.assert_valid() 1057 1058 value = _swig_getattr(self, self.__class__, name) 1059 1060 return self._retrieve_swig_value(name, value) 1061 1062 def __setattr__(self, name, value): 1063 """Set an attribute on this object""" 1064 self.assert_valid() 1065 1066 # Save a copy of the object, so that the garbage 1067 # collector won't kill the object while it's in 1068 # SWIG-land 1069 self.__dict__.setdefault("_members",{})[name] = value 1070 1071 return _set_instance_attr(self, name, value) 1072 1073 1074 def open(self, *args): 1075 return svn_ra_plugin_invoke_open(self, *args) 1076 1077 1078 def get_latest_revnum(self, *args): 1079 return svn_ra_plugin_invoke_get_latest_revnum(self, *args) 1080 1081 1082 def get_dated_revision(self, *args): 1083 return svn_ra_plugin_invoke_get_dated_revision(self, *args) 1084 1085 1086 def change_rev_prop(self, *args): 1087 return svn_ra_plugin_invoke_change_rev_prop(self, *args) 1088 1089 1090 def rev_proplist(self, *args): 1091 return svn_ra_plugin_invoke_rev_proplist(self, *args) 1092 1093 1094 def rev_prop(self, *args): 1095 return svn_ra_plugin_invoke_rev_prop(self, *args) 1096 1097 1098 def get_commit_editor(self, *args): 1099 return svn_ra_plugin_invoke_get_commit_editor(self, *args) 1100 1101 1102 def get_file(self, *args): 1103 return svn_ra_plugin_invoke_get_file(self, *args) 1104 1105 1106 def get_dir(self, *args): 1107 return svn_ra_plugin_invoke_get_dir(self, *args) 1108 1109 1110 def do_update(self, *args): 1111 return svn_ra_plugin_invoke_do_update(self, *args) 1112 1113 1114 def do_switch(self, *args): 1115 return svn_ra_plugin_invoke_do_switch(self, *args) 1116 1117 1118 def do_status(self, *args): 1119 return svn_ra_plugin_invoke_do_status(self, *args) 1120 1121 1122 def do_diff(self, *args): 1123 return svn_ra_plugin_invoke_do_diff(self, *args) 1124 1125 1126 def get_log(self, *args): 1127 return svn_ra_plugin_invoke_get_log(self, *args) 1128 1129 1130 def check_path(self, *args): 1131 return svn_ra_plugin_invoke_check_path(self, *args) 1132 1133 1134 def get_uuid(self, *args): 1135 return svn_ra_plugin_invoke_get_uuid(self, *args) 1136 1137 1138 def get_repos_root(self, *args): 1139 return svn_ra_plugin_invoke_get_repos_root(self, *args) 1140 1141 1142 def get_locations(self, *args): 1143 return svn_ra_plugin_invoke_get_locations(self, *args) 1144 1145 1146 def get_file_revs(self, *args): 1147 return svn_ra_plugin_invoke_get_file_revs(self, *args) 1148 1149 1150 def get_version(self, *args): 1151 return svn_ra_plugin_invoke_get_version(self, *args) 1152 1153 1154 def __init__(self): 1155 """__init__(svn_ra_plugin_t self) -> svn_ra_plugin_t""" 1156 this = _ra.new_svn_ra_plugin_t() 1157 try: 1158 self.this.append(this) 1159 except __builtin__.Exception: 1160 self.this = this 1161 __swig_destroy__ = _ra.delete_svn_ra_plugin_t 1162 __del__ = lambda self: None 1163svn_ra_plugin_t_swigregister = _ra.svn_ra_plugin_t_swigregister 1164svn_ra_plugin_t_swigregister(svn_ra_plugin_t) 1165 1166SVN_RA_ABI_VERSION = _ra.SVN_RA_ABI_VERSION 1167 1168def svn_ra_init_ra_libs(*args) -> "void **": 1169 """svn_ra_init_ra_libs(apr_pool_t pool) -> svn_error_t""" 1170 return _ra.svn_ra_init_ra_libs(*args) 1171 1172def svn_ra_get_ra_library(*args) -> "svn_ra_plugin_t **": 1173 """svn_ra_get_ra_library(void * ra_baton, char const * url, apr_pool_t pool) -> svn_error_t""" 1174 return _ra.svn_ra_get_ra_library(*args) 1175class svn_ra_session_t(object): 1176 """Proxy of C svn_ra_session_t struct.""" 1177 1178 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1179 1180 def __init__(self, *args, **kwargs): 1181 raise AttributeError("No constructor defined") 1182 __repr__ = _swig_repr 1183 def set_parent_pool(self, parent_pool=None): 1184 """Create a new proxy object for TYPE""" 1185 import libsvn.core, weakref 1186 self.__dict__["_parent_pool"] = \ 1187 parent_pool or libsvn.core.application_pool; 1188 if self.__dict__["_parent_pool"]: 1189 self.__dict__["_is_valid"] = weakref.ref( 1190 self.__dict__["_parent_pool"]._is_valid) 1191 1192 def assert_valid(self): 1193 """Assert that this object is using valid pool memory""" 1194 if "_is_valid" in self.__dict__: 1195 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1196 1197 def _retrieve_swig_value(self, name, value): 1198 # If we got back a different object than we have cached, we need to copy 1199 # all our metadata into it, so that it looks identical to the one 1200 # originally set. 1201 members = self.__dict__.get('_members') 1202 if members is not None and name in members: 1203 _copy_metadata_deep(value, members[name]) 1204 1205 # Verify that the new object is good 1206 _assert_valid_deep(value) 1207 1208 return value 1209 1210 # Attribute access must be intercepted to ensure that objects coming from 1211 # read attribute access match those that are set with write attribute access. 1212 # Specifically the metadata, such as the associated apr_pool object, should 1213 # match the originally assigned object. 1214 # 1215 # For classic classes it is enough to use __getattr__ to intercept swig 1216 # derived attributes. However, with new style classes SWIG makes use of 1217 # descriptors which mean that __getattr__ is never called. Therefore, 1218 # __getattribute__ must be used for the interception. 1219 1220 if _newclass: 1221 def __getattribute__(self, name): 1222 """Manage access to all attributes of this object.""" 1223 1224 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1225 # items directly present in __dict__ 1226 mydict = object.__getattribute__(self, '__dict__') 1227 1228 if name == "__dict__": 1229 return mydict 1230 1231 if name in mydict: 1232 return mydict[name] 1233 1234 object.__getattribute__(self, 'assert_valid')() 1235 1236 value = _get_instance_attr(self, name) 1237 fn = object.__getattribute__(self, '_retrieve_swig_value') 1238 return fn(name, value) 1239 else: 1240 def __getattr__(self, name): 1241 """Get an attribute from this object""" 1242 self.assert_valid() 1243 1244 value = _swig_getattr(self, self.__class__, name) 1245 1246 return self._retrieve_swig_value(name, value) 1247 1248 def __setattr__(self, name, value): 1249 """Set an attribute on this object""" 1250 self.assert_valid() 1251 1252 # Save a copy of the object, so that the garbage 1253 # collector won't kill the object while it's in 1254 # SWIG-land 1255 self.__dict__.setdefault("_members",{})[name] = value 1256 1257 return _set_instance_attr(self, name, value) 1258 1259svn_ra_session_t_swigregister = _ra.svn_ra_session_t_swigregister 1260svn_ra_session_t_swigregister(svn_ra_session_t) 1261 1262 1263def svn_ra_reporter3_invoke_set_path(*args) -> "svn_error_t *": 1264 """svn_ra_reporter3_invoke_set_path(svn_ra_reporter3_t _obj, void * report_baton, char const * path, svn_revnum_t revision, svn_depth_t depth, svn_boolean_t start_empty, char const * lock_token, apr_pool_t pool) -> svn_error_t""" 1265 return _ra.svn_ra_reporter3_invoke_set_path(*args) 1266 1267def svn_ra_reporter3_invoke_delete_path(*args) -> "svn_error_t *": 1268 """svn_ra_reporter3_invoke_delete_path(svn_ra_reporter3_t _obj, void * report_baton, char const * path, apr_pool_t pool) -> svn_error_t""" 1269 return _ra.svn_ra_reporter3_invoke_delete_path(*args) 1270 1271def svn_ra_reporter3_invoke_link_path(*args) -> "svn_error_t *": 1272 """svn_ra_reporter3_invoke_link_path(svn_ra_reporter3_t _obj, void * report_baton, char const * path, char const * url, svn_revnum_t revision, svn_depth_t depth, svn_boolean_t start_empty, char const * lock_token, apr_pool_t pool) -> svn_error_t""" 1273 return _ra.svn_ra_reporter3_invoke_link_path(*args) 1274 1275def svn_ra_reporter3_invoke_finish_report(*args) -> "svn_error_t *": 1276 """svn_ra_reporter3_invoke_finish_report(svn_ra_reporter3_t _obj, void * report_baton, apr_pool_t pool) -> svn_error_t""" 1277 return _ra.svn_ra_reporter3_invoke_finish_report(*args) 1278 1279def svn_ra_reporter3_invoke_abort_report(*args) -> "svn_error_t *": 1280 """svn_ra_reporter3_invoke_abort_report(svn_ra_reporter3_t _obj, void * report_baton, apr_pool_t pool) -> svn_error_t""" 1281 return _ra.svn_ra_reporter3_invoke_abort_report(*args) 1282 1283def svn_ra_reporter2_invoke_set_path(*args) -> "svn_error_t *": 1284 """svn_ra_reporter2_invoke_set_path(svn_ra_reporter2_t _obj, void * report_baton, char const * path, svn_revnum_t revision, svn_boolean_t start_empty, char const * lock_token, apr_pool_t pool) -> svn_error_t""" 1285 return _ra.svn_ra_reporter2_invoke_set_path(*args) 1286 1287def svn_ra_reporter2_invoke_delete_path(*args) -> "svn_error_t *": 1288 """svn_ra_reporter2_invoke_delete_path(svn_ra_reporter2_t _obj, void * report_baton, char const * path, apr_pool_t pool) -> svn_error_t""" 1289 return _ra.svn_ra_reporter2_invoke_delete_path(*args) 1290 1291def svn_ra_reporter2_invoke_link_path(*args) -> "svn_error_t *": 1292 """svn_ra_reporter2_invoke_link_path(svn_ra_reporter2_t _obj, void * report_baton, char const * path, char const * url, svn_revnum_t revision, svn_boolean_t start_empty, char const * lock_token, apr_pool_t pool) -> svn_error_t""" 1293 return _ra.svn_ra_reporter2_invoke_link_path(*args) 1294 1295def svn_ra_reporter2_invoke_finish_report(*args) -> "svn_error_t *": 1296 """svn_ra_reporter2_invoke_finish_report(svn_ra_reporter2_t _obj, void * report_baton, apr_pool_t pool) -> svn_error_t""" 1297 return _ra.svn_ra_reporter2_invoke_finish_report(*args) 1298 1299def svn_ra_reporter2_invoke_abort_report(*args) -> "svn_error_t *": 1300 """svn_ra_reporter2_invoke_abort_report(svn_ra_reporter2_t _obj, void * report_baton, apr_pool_t pool) -> svn_error_t""" 1301 return _ra.svn_ra_reporter2_invoke_abort_report(*args) 1302 1303def svn_ra_reporter_invoke_set_path(*args) -> "svn_error_t *": 1304 """svn_ra_reporter_invoke_set_path(svn_ra_reporter_t _obj, void * report_baton, char const * path, svn_revnum_t revision, svn_boolean_t start_empty, apr_pool_t pool) -> svn_error_t""" 1305 return _ra.svn_ra_reporter_invoke_set_path(*args) 1306 1307def svn_ra_reporter_invoke_delete_path(*args) -> "svn_error_t *": 1308 """svn_ra_reporter_invoke_delete_path(svn_ra_reporter_t _obj, void * report_baton, char const * path, apr_pool_t pool) -> svn_error_t""" 1309 return _ra.svn_ra_reporter_invoke_delete_path(*args) 1310 1311def svn_ra_reporter_invoke_link_path(*args) -> "svn_error_t *": 1312 """svn_ra_reporter_invoke_link_path(svn_ra_reporter_t _obj, void * report_baton, char const * path, char const * url, svn_revnum_t revision, svn_boolean_t start_empty, apr_pool_t pool) -> svn_error_t""" 1313 return _ra.svn_ra_reporter_invoke_link_path(*args) 1314 1315def svn_ra_reporter_invoke_finish_report(*args) -> "svn_error_t *": 1316 """svn_ra_reporter_invoke_finish_report(svn_ra_reporter_t _obj, void * report_baton, apr_pool_t pool) -> svn_error_t""" 1317 return _ra.svn_ra_reporter_invoke_finish_report(*args) 1318 1319def svn_ra_reporter_invoke_abort_report(*args) -> "svn_error_t *": 1320 """svn_ra_reporter_invoke_abort_report(svn_ra_reporter_t _obj, void * report_baton, apr_pool_t pool) -> svn_error_t""" 1321 return _ra.svn_ra_reporter_invoke_abort_report(*args) 1322 1323def svn_ra_callbacks2_invoke_open_tmp_file(*args) -> "apr_file_t **": 1324 """svn_ra_callbacks2_invoke_open_tmp_file(svn_ra_callbacks2_t _obj, void * callback_baton, apr_pool_t pool) -> svn_error_t""" 1325 return _ra.svn_ra_callbacks2_invoke_open_tmp_file(*args) 1326 1327def svn_ra_callbacks_invoke_open_tmp_file(*args) -> "apr_file_t **": 1328 """svn_ra_callbacks_invoke_open_tmp_file(svn_ra_callbacks_t _obj, void * callback_baton, apr_pool_t pool) -> svn_error_t""" 1329 return _ra.svn_ra_callbacks_invoke_open_tmp_file(*args) 1330 1331def svn_ra_plugin_invoke_open(*args) -> "void **": 1332 """svn_ra_plugin_invoke_open(svn_ra_plugin_t _obj, char const * repos_URL, svn_ra_callbacks_t callbacks, void * callback_baton, apr_hash_t config, apr_pool_t pool) -> svn_error_t""" 1333 return _ra.svn_ra_plugin_invoke_open(*args) 1334 1335def svn_ra_plugin_invoke_get_latest_revnum(*args) -> "svn_revnum_t *": 1336 """svn_ra_plugin_invoke_get_latest_revnum(svn_ra_plugin_t _obj, void * session_baton, apr_pool_t pool) -> svn_error_t""" 1337 return _ra.svn_ra_plugin_invoke_get_latest_revnum(*args) 1338 1339def svn_ra_plugin_invoke_get_dated_revision(*args) -> "svn_revnum_t *": 1340 """svn_ra_plugin_invoke_get_dated_revision(svn_ra_plugin_t _obj, void * session_baton, apr_time_t tm, apr_pool_t pool) -> svn_error_t""" 1341 return _ra.svn_ra_plugin_invoke_get_dated_revision(*args) 1342 1343def svn_ra_plugin_invoke_change_rev_prop(*args) -> "svn_error_t *": 1344 """svn_ra_plugin_invoke_change_rev_prop(svn_ra_plugin_t _obj, void * session_baton, svn_revnum_t rev, char const * name, svn_string_t const * value, apr_pool_t pool) -> svn_error_t""" 1345 return _ra.svn_ra_plugin_invoke_change_rev_prop(*args) 1346 1347def svn_ra_plugin_invoke_rev_proplist(*args) -> "apr_hash_t **": 1348 """svn_ra_plugin_invoke_rev_proplist(svn_ra_plugin_t _obj, void * session_baton, svn_revnum_t rev, apr_pool_t pool) -> svn_error_t""" 1349 return _ra.svn_ra_plugin_invoke_rev_proplist(*args) 1350 1351def svn_ra_plugin_invoke_rev_prop(*args) -> "svn_string_t **": 1352 """svn_ra_plugin_invoke_rev_prop(svn_ra_plugin_t _obj, void * session_baton, svn_revnum_t rev, char const * name, apr_pool_t pool) -> svn_error_t""" 1353 return _ra.svn_ra_plugin_invoke_rev_prop(*args) 1354 1355def svn_ra_plugin_invoke_get_commit_editor(*args) -> "svn_delta_editor_t const **, void **": 1356 """svn_ra_plugin_invoke_get_commit_editor(svn_ra_plugin_t _obj, void * session_baton, char const * log_msg, svn_commit_callback_t callback, apr_pool_t pool) -> svn_error_t""" 1357 return _ra.svn_ra_plugin_invoke_get_commit_editor(*args) 1358 1359def svn_ra_plugin_invoke_get_file(*args) -> "svn_revnum_t *, apr_hash_t **": 1360 """svn_ra_plugin_invoke_get_file(svn_ra_plugin_t _obj, void * session_baton, char const * path, svn_revnum_t revision, svn_stream_t * stream, apr_pool_t pool) -> svn_error_t""" 1361 return _ra.svn_ra_plugin_invoke_get_file(*args) 1362 1363def svn_ra_plugin_invoke_get_dir(*args) -> "apr_hash_t **, svn_revnum_t *, apr_hash_t **": 1364 """svn_ra_plugin_invoke_get_dir(svn_ra_plugin_t _obj, void * session_baton, char const * path, svn_revnum_t revision, apr_pool_t pool) -> svn_error_t""" 1365 return _ra.svn_ra_plugin_invoke_get_dir(*args) 1366 1367def svn_ra_plugin_invoke_do_update(*args) -> "svn_ra_reporter_t const **, void **": 1368 """svn_ra_plugin_invoke_do_update(svn_ra_plugin_t _obj, void * session_baton, svn_revnum_t revision_to_update_to, char const * update_target, svn_boolean_t recurse, svn_delta_editor_t update_editor, void * update_baton, apr_pool_t pool) -> svn_error_t""" 1369 return _ra.svn_ra_plugin_invoke_do_update(*args) 1370 1371def svn_ra_plugin_invoke_do_switch(*args) -> "svn_ra_reporter_t const **, void **": 1372 """svn_ra_plugin_invoke_do_switch(svn_ra_plugin_t _obj, void * session_baton, svn_revnum_t revision_to_switch_to, char const * switch_target, svn_boolean_t recurse, char const * switch_url, svn_delta_editor_t switch_editor, void * switch_baton, apr_pool_t pool) -> svn_error_t""" 1373 return _ra.svn_ra_plugin_invoke_do_switch(*args) 1374 1375def svn_ra_plugin_invoke_do_status(*args) -> "svn_ra_reporter_t const **, void **": 1376 """svn_ra_plugin_invoke_do_status(svn_ra_plugin_t _obj, void * session_baton, char const * status_target, svn_revnum_t revision, svn_boolean_t recurse, svn_delta_editor_t status_editor, void * status_baton, apr_pool_t pool) -> svn_error_t""" 1377 return _ra.svn_ra_plugin_invoke_do_status(*args) 1378 1379def svn_ra_plugin_invoke_do_diff(*args) -> "svn_ra_reporter_t const **, void **": 1380 """svn_ra_plugin_invoke_do_diff(svn_ra_plugin_t _obj, void * session_baton, svn_revnum_t revision, char const * diff_target, svn_boolean_t recurse, svn_boolean_t ignore_ancestry, char const * versus_url, svn_delta_editor_t diff_editor, void * diff_baton, apr_pool_t pool) -> svn_error_t""" 1381 return _ra.svn_ra_plugin_invoke_do_diff(*args) 1382 1383def svn_ra_plugin_invoke_get_log(*args) -> "svn_error_t *": 1384 """svn_ra_plugin_invoke_get_log(svn_ra_plugin_t _obj, void * session_baton, apr_array_header_t paths, svn_revnum_t start, svn_revnum_t end, svn_boolean_t discover_changed_paths, svn_boolean_t strict_node_history, svn_log_message_receiver_t receiver, apr_pool_t pool) -> svn_error_t""" 1385 return _ra.svn_ra_plugin_invoke_get_log(*args) 1386 1387def svn_ra_plugin_invoke_check_path(*args) -> "svn_node_kind_t *": 1388 """svn_ra_plugin_invoke_check_path(svn_ra_plugin_t _obj, void * session_baton, char const * path, svn_revnum_t revision, apr_pool_t pool) -> svn_error_t""" 1389 return _ra.svn_ra_plugin_invoke_check_path(*args) 1390 1391def svn_ra_plugin_invoke_get_uuid(*args) -> "char const **": 1392 """svn_ra_plugin_invoke_get_uuid(svn_ra_plugin_t _obj, void * session_baton, apr_pool_t pool) -> svn_error_t""" 1393 return _ra.svn_ra_plugin_invoke_get_uuid(*args) 1394 1395def svn_ra_plugin_invoke_get_repos_root(*args) -> "char const **": 1396 """svn_ra_plugin_invoke_get_repos_root(svn_ra_plugin_t _obj, void * session_baton, apr_pool_t pool) -> svn_error_t""" 1397 return _ra.svn_ra_plugin_invoke_get_repos_root(*args) 1398 1399def svn_ra_plugin_invoke_get_locations(*args) -> "apr_hash_t **": 1400 """svn_ra_plugin_invoke_get_locations(svn_ra_plugin_t _obj, void * session_baton, char const * path, svn_revnum_t peg_revision, apr_array_header_t location_revisions, apr_pool_t pool) -> svn_error_t""" 1401 return _ra.svn_ra_plugin_invoke_get_locations(*args) 1402 1403def svn_ra_plugin_invoke_get_file_revs(*args) -> "svn_error_t *": 1404 """svn_ra_plugin_invoke_get_file_revs(svn_ra_plugin_t _obj, void * session_baton, char const * path, svn_revnum_t start, svn_revnum_t end, svn_ra_file_rev_handler_t handler, apr_pool_t pool) -> svn_error_t""" 1405 return _ra.svn_ra_plugin_invoke_get_file_revs(*args) 1406 1407def svn_ra_plugin_invoke_get_version(_obj: 'svn_ra_plugin_t') -> "svn_version_t const *": 1408 """svn_ra_plugin_invoke_get_version(svn_ra_plugin_t _obj) -> svn_version_t const *""" 1409 return _ra.svn_ra_plugin_invoke_get_version(_obj) 1410 1411def svn_ra_invoke_get_wc_prop_func(*args) -> "svn_string_t **": 1412 """svn_ra_invoke_get_wc_prop_func(svn_ra_get_wc_prop_func_t _obj, void * baton, char const * path, char const * name, apr_pool_t pool) -> svn_error_t""" 1413 return _ra.svn_ra_invoke_get_wc_prop_func(*args) 1414 1415def svn_ra_invoke_set_wc_prop_func(*args) -> "svn_error_t *": 1416 """svn_ra_invoke_set_wc_prop_func(svn_ra_set_wc_prop_func_t _obj, void * baton, char const * path, char const * name, svn_string_t const * value, apr_pool_t pool) -> svn_error_t""" 1417 return _ra.svn_ra_invoke_set_wc_prop_func(*args) 1418 1419def svn_ra_invoke_push_wc_prop_func(*args) -> "svn_error_t *": 1420 """svn_ra_invoke_push_wc_prop_func(svn_ra_push_wc_prop_func_t _obj, void * baton, char const * path, char const * name, svn_string_t const * value, apr_pool_t pool) -> svn_error_t""" 1421 return _ra.svn_ra_invoke_push_wc_prop_func(*args) 1422 1423def svn_ra_invoke_invalidate_wc_props_func(*args) -> "svn_error_t *": 1424 """svn_ra_invoke_invalidate_wc_props_func(svn_ra_invalidate_wc_props_func_t _obj, void * baton, char const * path, char const * name, apr_pool_t pool) -> svn_error_t""" 1425 return _ra.svn_ra_invoke_invalidate_wc_props_func(*args) 1426 1427def svn_ra_invoke_get_wc_contents_func(*args) -> "svn_stream_t **": 1428 """svn_ra_invoke_get_wc_contents_func(svn_ra_get_wc_contents_func_t _obj, void * baton, svn_checksum_t checksum, apr_pool_t pool) -> svn_error_t""" 1429 return _ra.svn_ra_invoke_get_wc_contents_func(*args) 1430 1431def svn_ra_invoke_get_latest_revnum_func(_obj: 'svn_ra_get_latest_revnum_func_t', session_baton: 'void *') -> "svn_revnum_t *": 1432 """svn_ra_invoke_get_latest_revnum_func(svn_ra_get_latest_revnum_func_t _obj, void * session_baton) -> svn_error_t""" 1433 return _ra.svn_ra_invoke_get_latest_revnum_func(_obj, session_baton) 1434 1435def svn_ra_invoke_get_client_string_func(*args) -> "char const **": 1436 """svn_ra_invoke_get_client_string_func(svn_ra_get_client_string_func_t _obj, void * baton, apr_pool_t pool) -> svn_error_t""" 1437 return _ra.svn_ra_invoke_get_client_string_func(*args) 1438 1439def svn_ra_invoke_file_rev_handler(*args) -> "svn_txdelta_window_handler_t *, void **": 1440 """svn_ra_invoke_file_rev_handler(svn_ra_file_rev_handler_t _obj, void * baton, char const * path, svn_revnum_t rev, apr_hash_t rev_props, apr_array_header_t prop_diffs, apr_pool_t pool) -> svn_error_t""" 1441 return _ra.svn_ra_invoke_file_rev_handler(*args) 1442 1443def svn_ra_invoke_lock_callback(*args) -> "svn_error_t *": 1444 """svn_ra_invoke_lock_callback(svn_ra_lock_callback_t _obj, void * baton, char const * path, svn_boolean_t do_lock, svn_lock_t lock, svn_error_t ra_err, apr_pool_t pool) -> svn_error_t""" 1445 return _ra.svn_ra_invoke_lock_callback(*args) 1446 1447def svn_ra_invoke_progress_notify_func(*args) -> "void": 1448 """svn_ra_invoke_progress_notify_func(svn_ra_progress_notify_func_t _obj, apr_off_t progress, apr_off_t total, void * baton, apr_pool_t pool)""" 1449 return _ra.svn_ra_invoke_progress_notify_func(*args) 1450 1451def svn_ra_invoke_replay_revstart_callback(*args) -> "svn_delta_editor_t const **, void **": 1452 """svn_ra_invoke_replay_revstart_callback(svn_ra_replay_revstart_callback_t _obj, svn_revnum_t revision, void * replay_baton, apr_hash_t rev_props, apr_pool_t pool) -> svn_error_t""" 1453 return _ra.svn_ra_invoke_replay_revstart_callback(*args) 1454 1455def svn_ra_invoke_replay_revfinish_callback(*args) -> "svn_error_t *": 1456 """svn_ra_invoke_replay_revfinish_callback(svn_ra_replay_revfinish_callback_t _obj, svn_revnum_t revision, void * replay_baton, svn_delta_editor_t editor, void * edit_baton, apr_hash_t rev_props, apr_pool_t pool) -> svn_error_t""" 1457 return _ra.svn_ra_invoke_replay_revfinish_callback(*args) 1458 1459def svn_ra_invoke_check_tunnel_func(_obj: 'svn_ra_check_tunnel_func_t', tunnel_baton: 'void *', tunnel_name: 'char const *') -> "svn_boolean_t": 1460 """svn_ra_invoke_check_tunnel_func(svn_ra_check_tunnel_func_t _obj, void * tunnel_baton, char const * tunnel_name) -> svn_boolean_t""" 1461 return _ra.svn_ra_invoke_check_tunnel_func(_obj, tunnel_baton, tunnel_name) 1462 1463def svn_ra_invoke_close_tunnel_func(_obj: 'svn_ra_close_tunnel_func_t', close_baton: 'void *', tunnel_baton: 'void *') -> "void": 1464 """svn_ra_invoke_close_tunnel_func(svn_ra_close_tunnel_func_t _obj, void * close_baton, void * tunnel_baton)""" 1465 return _ra.svn_ra_invoke_close_tunnel_func(_obj, close_baton, tunnel_baton) 1466 1467def svn_ra_invoke_open_tunnel_func(*args) -> "svn_stream_t **, svn_stream_t **, svn_ra_close_tunnel_func_t *, SWIGTYPE **": 1468 """svn_ra_invoke_open_tunnel_func(svn_ra_open_tunnel_func_t _obj, void * tunnel_baton, char const * tunnel_name, char const * user, char const * hostname, int port, svn_cancel_func_t cancel_func, apr_pool_t pool) -> svn_error_t""" 1469 return _ra.svn_ra_invoke_open_tunnel_func(*args) 1470 1471def svn_ra_invoke_init_func(*args) -> "svn_error_t *": 1472 """svn_ra_invoke_init_func(svn_ra_init_func_t _obj, int abi_version, apr_pool_t pool, apr_hash_t hash) -> svn_error_t""" 1473 return _ra.svn_ra_invoke_init_func(*args) 1474class svn_ra_get_wc_prop_func_t(object): 1475 """Proxy of C svn_ra_get_wc_prop_func_t struct.""" 1476 1477 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1478 1479 def __init__(self, *args, **kwargs): 1480 raise AttributeError("No constructor defined") 1481 __repr__ = _swig_repr 1482 def set_parent_pool(self, parent_pool=None): 1483 """Create a new proxy object for TYPE""" 1484 import libsvn.core, weakref 1485 self.__dict__["_parent_pool"] = \ 1486 parent_pool or libsvn.core.application_pool; 1487 if self.__dict__["_parent_pool"]: 1488 self.__dict__["_is_valid"] = weakref.ref( 1489 self.__dict__["_parent_pool"]._is_valid) 1490 1491 def assert_valid(self): 1492 """Assert that this object is using valid pool memory""" 1493 if "_is_valid" in self.__dict__: 1494 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1495 1496 def _retrieve_swig_value(self, name, value): 1497 # If we got back a different object than we have cached, we need to copy 1498 # all our metadata into it, so that it looks identical to the one 1499 # originally set. 1500 members = self.__dict__.get('_members') 1501 if members is not None and name in members: 1502 _copy_metadata_deep(value, members[name]) 1503 1504 # Verify that the new object is good 1505 _assert_valid_deep(value) 1506 1507 return value 1508 1509 # Attribute access must be intercepted to ensure that objects coming from 1510 # read attribute access match those that are set with write attribute access. 1511 # Specifically the metadata, such as the associated apr_pool object, should 1512 # match the originally assigned object. 1513 # 1514 # For classic classes it is enough to use __getattr__ to intercept swig 1515 # derived attributes. However, with new style classes SWIG makes use of 1516 # descriptors which mean that __getattr__ is never called. Therefore, 1517 # __getattribute__ must be used for the interception. 1518 1519 if _newclass: 1520 def __getattribute__(self, name): 1521 """Manage access to all attributes of this object.""" 1522 1523 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1524 # items directly present in __dict__ 1525 mydict = object.__getattribute__(self, '__dict__') 1526 1527 if name == "__dict__": 1528 return mydict 1529 1530 if name in mydict: 1531 return mydict[name] 1532 1533 object.__getattribute__(self, 'assert_valid')() 1534 1535 value = _get_instance_attr(self, name) 1536 fn = object.__getattribute__(self, '_retrieve_swig_value') 1537 return fn(name, value) 1538 else: 1539 def __getattr__(self, name): 1540 """Get an attribute from this object""" 1541 self.assert_valid() 1542 1543 value = _swig_getattr(self, self.__class__, name) 1544 1545 return self._retrieve_swig_value(name, value) 1546 1547 def __setattr__(self, name, value): 1548 """Set an attribute on this object""" 1549 self.assert_valid() 1550 1551 # Save a copy of the object, so that the garbage 1552 # collector won't kill the object while it's in 1553 # SWIG-land 1554 self.__dict__.setdefault("_members",{})[name] = value 1555 1556 return _set_instance_attr(self, name, value) 1557 1558 1559 def __call__(self, *args): 1560 return svn_ra_invoke_get_wc_prop_func(self, *args) 1561 1562svn_ra_get_wc_prop_func_t_swigregister = _ra.svn_ra_get_wc_prop_func_t_swigregister 1563svn_ra_get_wc_prop_func_t_swigregister(svn_ra_get_wc_prop_func_t) 1564 1565class svn_ra_set_wc_prop_func_t(object): 1566 """Proxy of C svn_ra_set_wc_prop_func_t struct.""" 1567 1568 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1569 1570 def __init__(self, *args, **kwargs): 1571 raise AttributeError("No constructor defined") 1572 __repr__ = _swig_repr 1573 def set_parent_pool(self, parent_pool=None): 1574 """Create a new proxy object for TYPE""" 1575 import libsvn.core, weakref 1576 self.__dict__["_parent_pool"] = \ 1577 parent_pool or libsvn.core.application_pool; 1578 if self.__dict__["_parent_pool"]: 1579 self.__dict__["_is_valid"] = weakref.ref( 1580 self.__dict__["_parent_pool"]._is_valid) 1581 1582 def assert_valid(self): 1583 """Assert that this object is using valid pool memory""" 1584 if "_is_valid" in self.__dict__: 1585 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1586 1587 def _retrieve_swig_value(self, name, value): 1588 # If we got back a different object than we have cached, we need to copy 1589 # all our metadata into it, so that it looks identical to the one 1590 # originally set. 1591 members = self.__dict__.get('_members') 1592 if members is not None and name in members: 1593 _copy_metadata_deep(value, members[name]) 1594 1595 # Verify that the new object is good 1596 _assert_valid_deep(value) 1597 1598 return value 1599 1600 # Attribute access must be intercepted to ensure that objects coming from 1601 # read attribute access match those that are set with write attribute access. 1602 # Specifically the metadata, such as the associated apr_pool object, should 1603 # match the originally assigned object. 1604 # 1605 # For classic classes it is enough to use __getattr__ to intercept swig 1606 # derived attributes. However, with new style classes SWIG makes use of 1607 # descriptors which mean that __getattr__ is never called. Therefore, 1608 # __getattribute__ must be used for the interception. 1609 1610 if _newclass: 1611 def __getattribute__(self, name): 1612 """Manage access to all attributes of this object.""" 1613 1614 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1615 # items directly present in __dict__ 1616 mydict = object.__getattribute__(self, '__dict__') 1617 1618 if name == "__dict__": 1619 return mydict 1620 1621 if name in mydict: 1622 return mydict[name] 1623 1624 object.__getattribute__(self, 'assert_valid')() 1625 1626 value = _get_instance_attr(self, name) 1627 fn = object.__getattribute__(self, '_retrieve_swig_value') 1628 return fn(name, value) 1629 else: 1630 def __getattr__(self, name): 1631 """Get an attribute from this object""" 1632 self.assert_valid() 1633 1634 value = _swig_getattr(self, self.__class__, name) 1635 1636 return self._retrieve_swig_value(name, value) 1637 1638 def __setattr__(self, name, value): 1639 """Set an attribute on this object""" 1640 self.assert_valid() 1641 1642 # Save a copy of the object, so that the garbage 1643 # collector won't kill the object while it's in 1644 # SWIG-land 1645 self.__dict__.setdefault("_members",{})[name] = value 1646 1647 return _set_instance_attr(self, name, value) 1648 1649 1650 def __call__(self, *args): 1651 return svn_ra_invoke_set_wc_prop_func(self, *args) 1652 1653svn_ra_set_wc_prop_func_t_swigregister = _ra.svn_ra_set_wc_prop_func_t_swigregister 1654svn_ra_set_wc_prop_func_t_swigregister(svn_ra_set_wc_prop_func_t) 1655 1656class svn_ra_push_wc_prop_func_t(object): 1657 """Proxy of C svn_ra_push_wc_prop_func_t struct.""" 1658 1659 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1660 1661 def __init__(self, *args, **kwargs): 1662 raise AttributeError("No constructor defined") 1663 __repr__ = _swig_repr 1664 def set_parent_pool(self, parent_pool=None): 1665 """Create a new proxy object for TYPE""" 1666 import libsvn.core, weakref 1667 self.__dict__["_parent_pool"] = \ 1668 parent_pool or libsvn.core.application_pool; 1669 if self.__dict__["_parent_pool"]: 1670 self.__dict__["_is_valid"] = weakref.ref( 1671 self.__dict__["_parent_pool"]._is_valid) 1672 1673 def assert_valid(self): 1674 """Assert that this object is using valid pool memory""" 1675 if "_is_valid" in self.__dict__: 1676 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1677 1678 def _retrieve_swig_value(self, name, value): 1679 # If we got back a different object than we have cached, we need to copy 1680 # all our metadata into it, so that it looks identical to the one 1681 # originally set. 1682 members = self.__dict__.get('_members') 1683 if members is not None and name in members: 1684 _copy_metadata_deep(value, members[name]) 1685 1686 # Verify that the new object is good 1687 _assert_valid_deep(value) 1688 1689 return value 1690 1691 # Attribute access must be intercepted to ensure that objects coming from 1692 # read attribute access match those that are set with write attribute access. 1693 # Specifically the metadata, such as the associated apr_pool object, should 1694 # match the originally assigned object. 1695 # 1696 # For classic classes it is enough to use __getattr__ to intercept swig 1697 # derived attributes. However, with new style classes SWIG makes use of 1698 # descriptors which mean that __getattr__ is never called. Therefore, 1699 # __getattribute__ must be used for the interception. 1700 1701 if _newclass: 1702 def __getattribute__(self, name): 1703 """Manage access to all attributes of this object.""" 1704 1705 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1706 # items directly present in __dict__ 1707 mydict = object.__getattribute__(self, '__dict__') 1708 1709 if name == "__dict__": 1710 return mydict 1711 1712 if name in mydict: 1713 return mydict[name] 1714 1715 object.__getattribute__(self, 'assert_valid')() 1716 1717 value = _get_instance_attr(self, name) 1718 fn = object.__getattribute__(self, '_retrieve_swig_value') 1719 return fn(name, value) 1720 else: 1721 def __getattr__(self, name): 1722 """Get an attribute from this object""" 1723 self.assert_valid() 1724 1725 value = _swig_getattr(self, self.__class__, name) 1726 1727 return self._retrieve_swig_value(name, value) 1728 1729 def __setattr__(self, name, value): 1730 """Set an attribute on this object""" 1731 self.assert_valid() 1732 1733 # Save a copy of the object, so that the garbage 1734 # collector won't kill the object while it's in 1735 # SWIG-land 1736 self.__dict__.setdefault("_members",{})[name] = value 1737 1738 return _set_instance_attr(self, name, value) 1739 1740 1741 def __call__(self, *args): 1742 return svn_ra_invoke_push_wc_prop_func(self, *args) 1743 1744svn_ra_push_wc_prop_func_t_swigregister = _ra.svn_ra_push_wc_prop_func_t_swigregister 1745svn_ra_push_wc_prop_func_t_swigregister(svn_ra_push_wc_prop_func_t) 1746 1747class svn_ra_invalidate_wc_props_func_t(object): 1748 """Proxy of C svn_ra_invalidate_wc_props_func_t struct.""" 1749 1750 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1751 1752 def __init__(self, *args, **kwargs): 1753 raise AttributeError("No constructor defined") 1754 __repr__ = _swig_repr 1755 def set_parent_pool(self, parent_pool=None): 1756 """Create a new proxy object for TYPE""" 1757 import libsvn.core, weakref 1758 self.__dict__["_parent_pool"] = \ 1759 parent_pool or libsvn.core.application_pool; 1760 if self.__dict__["_parent_pool"]: 1761 self.__dict__["_is_valid"] = weakref.ref( 1762 self.__dict__["_parent_pool"]._is_valid) 1763 1764 def assert_valid(self): 1765 """Assert that this object is using valid pool memory""" 1766 if "_is_valid" in self.__dict__: 1767 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1768 1769 def _retrieve_swig_value(self, name, value): 1770 # If we got back a different object than we have cached, we need to copy 1771 # all our metadata into it, so that it looks identical to the one 1772 # originally set. 1773 members = self.__dict__.get('_members') 1774 if members is not None and name in members: 1775 _copy_metadata_deep(value, members[name]) 1776 1777 # Verify that the new object is good 1778 _assert_valid_deep(value) 1779 1780 return value 1781 1782 # Attribute access must be intercepted to ensure that objects coming from 1783 # read attribute access match those that are set with write attribute access. 1784 # Specifically the metadata, such as the associated apr_pool object, should 1785 # match the originally assigned object. 1786 # 1787 # For classic classes it is enough to use __getattr__ to intercept swig 1788 # derived attributes. However, with new style classes SWIG makes use of 1789 # descriptors which mean that __getattr__ is never called. Therefore, 1790 # __getattribute__ must be used for the interception. 1791 1792 if _newclass: 1793 def __getattribute__(self, name): 1794 """Manage access to all attributes of this object.""" 1795 1796 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1797 # items directly present in __dict__ 1798 mydict = object.__getattribute__(self, '__dict__') 1799 1800 if name == "__dict__": 1801 return mydict 1802 1803 if name in mydict: 1804 return mydict[name] 1805 1806 object.__getattribute__(self, 'assert_valid')() 1807 1808 value = _get_instance_attr(self, name) 1809 fn = object.__getattribute__(self, '_retrieve_swig_value') 1810 return fn(name, value) 1811 else: 1812 def __getattr__(self, name): 1813 """Get an attribute from this object""" 1814 self.assert_valid() 1815 1816 value = _swig_getattr(self, self.__class__, name) 1817 1818 return self._retrieve_swig_value(name, value) 1819 1820 def __setattr__(self, name, value): 1821 """Set an attribute on this object""" 1822 self.assert_valid() 1823 1824 # Save a copy of the object, so that the garbage 1825 # collector won't kill the object while it's in 1826 # SWIG-land 1827 self.__dict__.setdefault("_members",{})[name] = value 1828 1829 return _set_instance_attr(self, name, value) 1830 1831 1832 def __call__(self, *args): 1833 return svn_ra_invoke_invalidate_wc_props_func(self, *args) 1834 1835svn_ra_invalidate_wc_props_func_t_swigregister = _ra.svn_ra_invalidate_wc_props_func_t_swigregister 1836svn_ra_invalidate_wc_props_func_t_swigregister(svn_ra_invalidate_wc_props_func_t) 1837 1838class svn_ra_get_wc_contents_func_t(object): 1839 """Proxy of C svn_ra_get_wc_contents_func_t struct.""" 1840 1841 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1842 1843 def __init__(self, *args, **kwargs): 1844 raise AttributeError("No constructor defined") 1845 __repr__ = _swig_repr 1846 def set_parent_pool(self, parent_pool=None): 1847 """Create a new proxy object for TYPE""" 1848 import libsvn.core, weakref 1849 self.__dict__["_parent_pool"] = \ 1850 parent_pool or libsvn.core.application_pool; 1851 if self.__dict__["_parent_pool"]: 1852 self.__dict__["_is_valid"] = weakref.ref( 1853 self.__dict__["_parent_pool"]._is_valid) 1854 1855 def assert_valid(self): 1856 """Assert that this object is using valid pool memory""" 1857 if "_is_valid" in self.__dict__: 1858 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1859 1860 def _retrieve_swig_value(self, name, value): 1861 # If we got back a different object than we have cached, we need to copy 1862 # all our metadata into it, so that it looks identical to the one 1863 # originally set. 1864 members = self.__dict__.get('_members') 1865 if members is not None and name in members: 1866 _copy_metadata_deep(value, members[name]) 1867 1868 # Verify that the new object is good 1869 _assert_valid_deep(value) 1870 1871 return value 1872 1873 # Attribute access must be intercepted to ensure that objects coming from 1874 # read attribute access match those that are set with write attribute access. 1875 # Specifically the metadata, such as the associated apr_pool object, should 1876 # match the originally assigned object. 1877 # 1878 # For classic classes it is enough to use __getattr__ to intercept swig 1879 # derived attributes. However, with new style classes SWIG makes use of 1880 # descriptors which mean that __getattr__ is never called. Therefore, 1881 # __getattribute__ must be used for the interception. 1882 1883 if _newclass: 1884 def __getattribute__(self, name): 1885 """Manage access to all attributes of this object.""" 1886 1887 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1888 # items directly present in __dict__ 1889 mydict = object.__getattribute__(self, '__dict__') 1890 1891 if name == "__dict__": 1892 return mydict 1893 1894 if name in mydict: 1895 return mydict[name] 1896 1897 object.__getattribute__(self, 'assert_valid')() 1898 1899 value = _get_instance_attr(self, name) 1900 fn = object.__getattribute__(self, '_retrieve_swig_value') 1901 return fn(name, value) 1902 else: 1903 def __getattr__(self, name): 1904 """Get an attribute from this object""" 1905 self.assert_valid() 1906 1907 value = _swig_getattr(self, self.__class__, name) 1908 1909 return self._retrieve_swig_value(name, value) 1910 1911 def __setattr__(self, name, value): 1912 """Set an attribute on this object""" 1913 self.assert_valid() 1914 1915 # Save a copy of the object, so that the garbage 1916 # collector won't kill the object while it's in 1917 # SWIG-land 1918 self.__dict__.setdefault("_members",{})[name] = value 1919 1920 return _set_instance_attr(self, name, value) 1921 1922 1923 def __call__(self, *args): 1924 return svn_ra_invoke_get_wc_contents_func(self, *args) 1925 1926svn_ra_get_wc_contents_func_t_swigregister = _ra.svn_ra_get_wc_contents_func_t_swigregister 1927svn_ra_get_wc_contents_func_t_swigregister(svn_ra_get_wc_contents_func_t) 1928 1929class svn_ra_get_latest_revnum_func_t(object): 1930 """Proxy of C svn_ra_get_latest_revnum_func_t struct.""" 1931 1932 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 1933 1934 def __init__(self, *args, **kwargs): 1935 raise AttributeError("No constructor defined") 1936 __repr__ = _swig_repr 1937 def set_parent_pool(self, parent_pool=None): 1938 """Create a new proxy object for TYPE""" 1939 import libsvn.core, weakref 1940 self.__dict__["_parent_pool"] = \ 1941 parent_pool or libsvn.core.application_pool; 1942 if self.__dict__["_parent_pool"]: 1943 self.__dict__["_is_valid"] = weakref.ref( 1944 self.__dict__["_parent_pool"]._is_valid) 1945 1946 def assert_valid(self): 1947 """Assert that this object is using valid pool memory""" 1948 if "_is_valid" in self.__dict__: 1949 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 1950 1951 def _retrieve_swig_value(self, name, value): 1952 # If we got back a different object than we have cached, we need to copy 1953 # all our metadata into it, so that it looks identical to the one 1954 # originally set. 1955 members = self.__dict__.get('_members') 1956 if members is not None and name in members: 1957 _copy_metadata_deep(value, members[name]) 1958 1959 # Verify that the new object is good 1960 _assert_valid_deep(value) 1961 1962 return value 1963 1964 # Attribute access must be intercepted to ensure that objects coming from 1965 # read attribute access match those that are set with write attribute access. 1966 # Specifically the metadata, such as the associated apr_pool object, should 1967 # match the originally assigned object. 1968 # 1969 # For classic classes it is enough to use __getattr__ to intercept swig 1970 # derived attributes. However, with new style classes SWIG makes use of 1971 # descriptors which mean that __getattr__ is never called. Therefore, 1972 # __getattribute__ must be used for the interception. 1973 1974 if _newclass: 1975 def __getattribute__(self, name): 1976 """Manage access to all attributes of this object.""" 1977 1978 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 1979 # items directly present in __dict__ 1980 mydict = object.__getattribute__(self, '__dict__') 1981 1982 if name == "__dict__": 1983 return mydict 1984 1985 if name in mydict: 1986 return mydict[name] 1987 1988 object.__getattribute__(self, 'assert_valid')() 1989 1990 value = _get_instance_attr(self, name) 1991 fn = object.__getattribute__(self, '_retrieve_swig_value') 1992 return fn(name, value) 1993 else: 1994 def __getattr__(self, name): 1995 """Get an attribute from this object""" 1996 self.assert_valid() 1997 1998 value = _swig_getattr(self, self.__class__, name) 1999 2000 return self._retrieve_swig_value(name, value) 2001 2002 def __setattr__(self, name, value): 2003 """Set an attribute on this object""" 2004 self.assert_valid() 2005 2006 # Save a copy of the object, so that the garbage 2007 # collector won't kill the object while it's in 2008 # SWIG-land 2009 self.__dict__.setdefault("_members",{})[name] = value 2010 2011 return _set_instance_attr(self, name, value) 2012 2013 2014 def __call__(self, *args): 2015 return svn_ra_invoke_get_latest_revnum_func(self, *args) 2016 2017svn_ra_get_latest_revnum_func_t_swigregister = _ra.svn_ra_get_latest_revnum_func_t_swigregister 2018svn_ra_get_latest_revnum_func_t_swigregister(svn_ra_get_latest_revnum_func_t) 2019 2020class svn_ra_get_client_string_func_t(object): 2021 """Proxy of C svn_ra_get_client_string_func_t struct.""" 2022 2023 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2024 2025 def __init__(self, *args, **kwargs): 2026 raise AttributeError("No constructor defined") 2027 __repr__ = _swig_repr 2028 def set_parent_pool(self, parent_pool=None): 2029 """Create a new proxy object for TYPE""" 2030 import libsvn.core, weakref 2031 self.__dict__["_parent_pool"] = \ 2032 parent_pool or libsvn.core.application_pool; 2033 if self.__dict__["_parent_pool"]: 2034 self.__dict__["_is_valid"] = weakref.ref( 2035 self.__dict__["_parent_pool"]._is_valid) 2036 2037 def assert_valid(self): 2038 """Assert that this object is using valid pool memory""" 2039 if "_is_valid" in self.__dict__: 2040 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2041 2042 def _retrieve_swig_value(self, name, value): 2043 # If we got back a different object than we have cached, we need to copy 2044 # all our metadata into it, so that it looks identical to the one 2045 # originally set. 2046 members = self.__dict__.get('_members') 2047 if members is not None and name in members: 2048 _copy_metadata_deep(value, members[name]) 2049 2050 # Verify that the new object is good 2051 _assert_valid_deep(value) 2052 2053 return value 2054 2055 # Attribute access must be intercepted to ensure that objects coming from 2056 # read attribute access match those that are set with write attribute access. 2057 # Specifically the metadata, such as the associated apr_pool object, should 2058 # match the originally assigned object. 2059 # 2060 # For classic classes it is enough to use __getattr__ to intercept swig 2061 # derived attributes. However, with new style classes SWIG makes use of 2062 # descriptors which mean that __getattr__ is never called. Therefore, 2063 # __getattribute__ must be used for the interception. 2064 2065 if _newclass: 2066 def __getattribute__(self, name): 2067 """Manage access to all attributes of this object.""" 2068 2069 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2070 # items directly present in __dict__ 2071 mydict = object.__getattribute__(self, '__dict__') 2072 2073 if name == "__dict__": 2074 return mydict 2075 2076 if name in mydict: 2077 return mydict[name] 2078 2079 object.__getattribute__(self, 'assert_valid')() 2080 2081 value = _get_instance_attr(self, name) 2082 fn = object.__getattribute__(self, '_retrieve_swig_value') 2083 return fn(name, value) 2084 else: 2085 def __getattr__(self, name): 2086 """Get an attribute from this object""" 2087 self.assert_valid() 2088 2089 value = _swig_getattr(self, self.__class__, name) 2090 2091 return self._retrieve_swig_value(name, value) 2092 2093 def __setattr__(self, name, value): 2094 """Set an attribute on this object""" 2095 self.assert_valid() 2096 2097 # Save a copy of the object, so that the garbage 2098 # collector won't kill the object while it's in 2099 # SWIG-land 2100 self.__dict__.setdefault("_members",{})[name] = value 2101 2102 return _set_instance_attr(self, name, value) 2103 2104 2105 def __call__(self, *args): 2106 return svn_ra_invoke_get_client_string_func(self, *args) 2107 2108svn_ra_get_client_string_func_t_swigregister = _ra.svn_ra_get_client_string_func_t_swigregister 2109svn_ra_get_client_string_func_t_swigregister(svn_ra_get_client_string_func_t) 2110 2111class svn_ra_file_rev_handler_t(object): 2112 """Proxy of C svn_ra_file_rev_handler_t struct.""" 2113 2114 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2115 2116 def __init__(self, *args, **kwargs): 2117 raise AttributeError("No constructor defined") 2118 __repr__ = _swig_repr 2119 def set_parent_pool(self, parent_pool=None): 2120 """Create a new proxy object for TYPE""" 2121 import libsvn.core, weakref 2122 self.__dict__["_parent_pool"] = \ 2123 parent_pool or libsvn.core.application_pool; 2124 if self.__dict__["_parent_pool"]: 2125 self.__dict__["_is_valid"] = weakref.ref( 2126 self.__dict__["_parent_pool"]._is_valid) 2127 2128 def assert_valid(self): 2129 """Assert that this object is using valid pool memory""" 2130 if "_is_valid" in self.__dict__: 2131 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2132 2133 def _retrieve_swig_value(self, name, value): 2134 # If we got back a different object than we have cached, we need to copy 2135 # all our metadata into it, so that it looks identical to the one 2136 # originally set. 2137 members = self.__dict__.get('_members') 2138 if members is not None and name in members: 2139 _copy_metadata_deep(value, members[name]) 2140 2141 # Verify that the new object is good 2142 _assert_valid_deep(value) 2143 2144 return value 2145 2146 # Attribute access must be intercepted to ensure that objects coming from 2147 # read attribute access match those that are set with write attribute access. 2148 # Specifically the metadata, such as the associated apr_pool object, should 2149 # match the originally assigned object. 2150 # 2151 # For classic classes it is enough to use __getattr__ to intercept swig 2152 # derived attributes. However, with new style classes SWIG makes use of 2153 # descriptors which mean that __getattr__ is never called. Therefore, 2154 # __getattribute__ must be used for the interception. 2155 2156 if _newclass: 2157 def __getattribute__(self, name): 2158 """Manage access to all attributes of this object.""" 2159 2160 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2161 # items directly present in __dict__ 2162 mydict = object.__getattribute__(self, '__dict__') 2163 2164 if name == "__dict__": 2165 return mydict 2166 2167 if name in mydict: 2168 return mydict[name] 2169 2170 object.__getattribute__(self, 'assert_valid')() 2171 2172 value = _get_instance_attr(self, name) 2173 fn = object.__getattribute__(self, '_retrieve_swig_value') 2174 return fn(name, value) 2175 else: 2176 def __getattr__(self, name): 2177 """Get an attribute from this object""" 2178 self.assert_valid() 2179 2180 value = _swig_getattr(self, self.__class__, name) 2181 2182 return self._retrieve_swig_value(name, value) 2183 2184 def __setattr__(self, name, value): 2185 """Set an attribute on this object""" 2186 self.assert_valid() 2187 2188 # Save a copy of the object, so that the garbage 2189 # collector won't kill the object while it's in 2190 # SWIG-land 2191 self.__dict__.setdefault("_members",{})[name] = value 2192 2193 return _set_instance_attr(self, name, value) 2194 2195 2196 def __call__(self, *args): 2197 return svn_ra_invoke_file_rev_handler(self, *args) 2198 2199svn_ra_file_rev_handler_t_swigregister = _ra.svn_ra_file_rev_handler_t_swigregister 2200svn_ra_file_rev_handler_t_swigregister(svn_ra_file_rev_handler_t) 2201 2202class svn_ra_lock_callback_t(object): 2203 """Proxy of C svn_ra_lock_callback_t struct.""" 2204 2205 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2206 2207 def __init__(self, *args, **kwargs): 2208 raise AttributeError("No constructor defined") 2209 __repr__ = _swig_repr 2210 def set_parent_pool(self, parent_pool=None): 2211 """Create a new proxy object for TYPE""" 2212 import libsvn.core, weakref 2213 self.__dict__["_parent_pool"] = \ 2214 parent_pool or libsvn.core.application_pool; 2215 if self.__dict__["_parent_pool"]: 2216 self.__dict__["_is_valid"] = weakref.ref( 2217 self.__dict__["_parent_pool"]._is_valid) 2218 2219 def assert_valid(self): 2220 """Assert that this object is using valid pool memory""" 2221 if "_is_valid" in self.__dict__: 2222 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2223 2224 def _retrieve_swig_value(self, name, value): 2225 # If we got back a different object than we have cached, we need to copy 2226 # all our metadata into it, so that it looks identical to the one 2227 # originally set. 2228 members = self.__dict__.get('_members') 2229 if members is not None and name in members: 2230 _copy_metadata_deep(value, members[name]) 2231 2232 # Verify that the new object is good 2233 _assert_valid_deep(value) 2234 2235 return value 2236 2237 # Attribute access must be intercepted to ensure that objects coming from 2238 # read attribute access match those that are set with write attribute access. 2239 # Specifically the metadata, such as the associated apr_pool object, should 2240 # match the originally assigned object. 2241 # 2242 # For classic classes it is enough to use __getattr__ to intercept swig 2243 # derived attributes. However, with new style classes SWIG makes use of 2244 # descriptors which mean that __getattr__ is never called. Therefore, 2245 # __getattribute__ must be used for the interception. 2246 2247 if _newclass: 2248 def __getattribute__(self, name): 2249 """Manage access to all attributes of this object.""" 2250 2251 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2252 # items directly present in __dict__ 2253 mydict = object.__getattribute__(self, '__dict__') 2254 2255 if name == "__dict__": 2256 return mydict 2257 2258 if name in mydict: 2259 return mydict[name] 2260 2261 object.__getattribute__(self, 'assert_valid')() 2262 2263 value = _get_instance_attr(self, name) 2264 fn = object.__getattribute__(self, '_retrieve_swig_value') 2265 return fn(name, value) 2266 else: 2267 def __getattr__(self, name): 2268 """Get an attribute from this object""" 2269 self.assert_valid() 2270 2271 value = _swig_getattr(self, self.__class__, name) 2272 2273 return self._retrieve_swig_value(name, value) 2274 2275 def __setattr__(self, name, value): 2276 """Set an attribute on this object""" 2277 self.assert_valid() 2278 2279 # Save a copy of the object, so that the garbage 2280 # collector won't kill the object while it's in 2281 # SWIG-land 2282 self.__dict__.setdefault("_members",{})[name] = value 2283 2284 return _set_instance_attr(self, name, value) 2285 2286 2287 def __call__(self, *args): 2288 return svn_ra_invoke_lock_callback(self, *args) 2289 2290svn_ra_lock_callback_t_swigregister = _ra.svn_ra_lock_callback_t_swigregister 2291svn_ra_lock_callback_t_swigregister(svn_ra_lock_callback_t) 2292 2293class svn_ra_progress_notify_func_t(object): 2294 """Proxy of C svn_ra_progress_notify_func_t struct.""" 2295 2296 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2297 2298 def __init__(self, *args, **kwargs): 2299 raise AttributeError("No constructor defined") 2300 __repr__ = _swig_repr 2301 def set_parent_pool(self, parent_pool=None): 2302 """Create a new proxy object for TYPE""" 2303 import libsvn.core, weakref 2304 self.__dict__["_parent_pool"] = \ 2305 parent_pool or libsvn.core.application_pool; 2306 if self.__dict__["_parent_pool"]: 2307 self.__dict__["_is_valid"] = weakref.ref( 2308 self.__dict__["_parent_pool"]._is_valid) 2309 2310 def assert_valid(self): 2311 """Assert that this object is using valid pool memory""" 2312 if "_is_valid" in self.__dict__: 2313 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2314 2315 def _retrieve_swig_value(self, name, value): 2316 # If we got back a different object than we have cached, we need to copy 2317 # all our metadata into it, so that it looks identical to the one 2318 # originally set. 2319 members = self.__dict__.get('_members') 2320 if members is not None and name in members: 2321 _copy_metadata_deep(value, members[name]) 2322 2323 # Verify that the new object is good 2324 _assert_valid_deep(value) 2325 2326 return value 2327 2328 # Attribute access must be intercepted to ensure that objects coming from 2329 # read attribute access match those that are set with write attribute access. 2330 # Specifically the metadata, such as the associated apr_pool object, should 2331 # match the originally assigned object. 2332 # 2333 # For classic classes it is enough to use __getattr__ to intercept swig 2334 # derived attributes. However, with new style classes SWIG makes use of 2335 # descriptors which mean that __getattr__ is never called. Therefore, 2336 # __getattribute__ must be used for the interception. 2337 2338 if _newclass: 2339 def __getattribute__(self, name): 2340 """Manage access to all attributes of this object.""" 2341 2342 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2343 # items directly present in __dict__ 2344 mydict = object.__getattribute__(self, '__dict__') 2345 2346 if name == "__dict__": 2347 return mydict 2348 2349 if name in mydict: 2350 return mydict[name] 2351 2352 object.__getattribute__(self, 'assert_valid')() 2353 2354 value = _get_instance_attr(self, name) 2355 fn = object.__getattribute__(self, '_retrieve_swig_value') 2356 return fn(name, value) 2357 else: 2358 def __getattr__(self, name): 2359 """Get an attribute from this object""" 2360 self.assert_valid() 2361 2362 value = _swig_getattr(self, self.__class__, name) 2363 2364 return self._retrieve_swig_value(name, value) 2365 2366 def __setattr__(self, name, value): 2367 """Set an attribute on this object""" 2368 self.assert_valid() 2369 2370 # Save a copy of the object, so that the garbage 2371 # collector won't kill the object while it's in 2372 # SWIG-land 2373 self.__dict__.setdefault("_members",{})[name] = value 2374 2375 return _set_instance_attr(self, name, value) 2376 2377 2378 def __call__(self, *args): 2379 return svn_ra_invoke_progress_notify_func(self, *args) 2380 2381svn_ra_progress_notify_func_t_swigregister = _ra.svn_ra_progress_notify_func_t_swigregister 2382svn_ra_progress_notify_func_t_swigregister(svn_ra_progress_notify_func_t) 2383 2384class svn_ra_replay_revstart_callback_t(object): 2385 """Proxy of C svn_ra_replay_revstart_callback_t struct.""" 2386 2387 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2388 2389 def __init__(self, *args, **kwargs): 2390 raise AttributeError("No constructor defined") 2391 __repr__ = _swig_repr 2392 def set_parent_pool(self, parent_pool=None): 2393 """Create a new proxy object for TYPE""" 2394 import libsvn.core, weakref 2395 self.__dict__["_parent_pool"] = \ 2396 parent_pool or libsvn.core.application_pool; 2397 if self.__dict__["_parent_pool"]: 2398 self.__dict__["_is_valid"] = weakref.ref( 2399 self.__dict__["_parent_pool"]._is_valid) 2400 2401 def assert_valid(self): 2402 """Assert that this object is using valid pool memory""" 2403 if "_is_valid" in self.__dict__: 2404 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2405 2406 def _retrieve_swig_value(self, name, value): 2407 # If we got back a different object than we have cached, we need to copy 2408 # all our metadata into it, so that it looks identical to the one 2409 # originally set. 2410 members = self.__dict__.get('_members') 2411 if members is not None and name in members: 2412 _copy_metadata_deep(value, members[name]) 2413 2414 # Verify that the new object is good 2415 _assert_valid_deep(value) 2416 2417 return value 2418 2419 # Attribute access must be intercepted to ensure that objects coming from 2420 # read attribute access match those that are set with write attribute access. 2421 # Specifically the metadata, such as the associated apr_pool object, should 2422 # match the originally assigned object. 2423 # 2424 # For classic classes it is enough to use __getattr__ to intercept swig 2425 # derived attributes. However, with new style classes SWIG makes use of 2426 # descriptors which mean that __getattr__ is never called. Therefore, 2427 # __getattribute__ must be used for the interception. 2428 2429 if _newclass: 2430 def __getattribute__(self, name): 2431 """Manage access to all attributes of this object.""" 2432 2433 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2434 # items directly present in __dict__ 2435 mydict = object.__getattribute__(self, '__dict__') 2436 2437 if name == "__dict__": 2438 return mydict 2439 2440 if name in mydict: 2441 return mydict[name] 2442 2443 object.__getattribute__(self, 'assert_valid')() 2444 2445 value = _get_instance_attr(self, name) 2446 fn = object.__getattribute__(self, '_retrieve_swig_value') 2447 return fn(name, value) 2448 else: 2449 def __getattr__(self, name): 2450 """Get an attribute from this object""" 2451 self.assert_valid() 2452 2453 value = _swig_getattr(self, self.__class__, name) 2454 2455 return self._retrieve_swig_value(name, value) 2456 2457 def __setattr__(self, name, value): 2458 """Set an attribute on this object""" 2459 self.assert_valid() 2460 2461 # Save a copy of the object, so that the garbage 2462 # collector won't kill the object while it's in 2463 # SWIG-land 2464 self.__dict__.setdefault("_members",{})[name] = value 2465 2466 return _set_instance_attr(self, name, value) 2467 2468 2469 def __call__(self, *args): 2470 return svn_ra_invoke_replay_revstart_callback(self, *args) 2471 2472svn_ra_replay_revstart_callback_t_swigregister = _ra.svn_ra_replay_revstart_callback_t_swigregister 2473svn_ra_replay_revstart_callback_t_swigregister(svn_ra_replay_revstart_callback_t) 2474 2475class svn_ra_replay_revfinish_callback_t(object): 2476 """Proxy of C svn_ra_replay_revfinish_callback_t struct.""" 2477 2478 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2479 2480 def __init__(self, *args, **kwargs): 2481 raise AttributeError("No constructor defined") 2482 __repr__ = _swig_repr 2483 def set_parent_pool(self, parent_pool=None): 2484 """Create a new proxy object for TYPE""" 2485 import libsvn.core, weakref 2486 self.__dict__["_parent_pool"] = \ 2487 parent_pool or libsvn.core.application_pool; 2488 if self.__dict__["_parent_pool"]: 2489 self.__dict__["_is_valid"] = weakref.ref( 2490 self.__dict__["_parent_pool"]._is_valid) 2491 2492 def assert_valid(self): 2493 """Assert that this object is using valid pool memory""" 2494 if "_is_valid" in self.__dict__: 2495 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2496 2497 def _retrieve_swig_value(self, name, value): 2498 # If we got back a different object than we have cached, we need to copy 2499 # all our metadata into it, so that it looks identical to the one 2500 # originally set. 2501 members = self.__dict__.get('_members') 2502 if members is not None and name in members: 2503 _copy_metadata_deep(value, members[name]) 2504 2505 # Verify that the new object is good 2506 _assert_valid_deep(value) 2507 2508 return value 2509 2510 # Attribute access must be intercepted to ensure that objects coming from 2511 # read attribute access match those that are set with write attribute access. 2512 # Specifically the metadata, such as the associated apr_pool object, should 2513 # match the originally assigned object. 2514 # 2515 # For classic classes it is enough to use __getattr__ to intercept swig 2516 # derived attributes. However, with new style classes SWIG makes use of 2517 # descriptors which mean that __getattr__ is never called. Therefore, 2518 # __getattribute__ must be used for the interception. 2519 2520 if _newclass: 2521 def __getattribute__(self, name): 2522 """Manage access to all attributes of this object.""" 2523 2524 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2525 # items directly present in __dict__ 2526 mydict = object.__getattribute__(self, '__dict__') 2527 2528 if name == "__dict__": 2529 return mydict 2530 2531 if name in mydict: 2532 return mydict[name] 2533 2534 object.__getattribute__(self, 'assert_valid')() 2535 2536 value = _get_instance_attr(self, name) 2537 fn = object.__getattribute__(self, '_retrieve_swig_value') 2538 return fn(name, value) 2539 else: 2540 def __getattr__(self, name): 2541 """Get an attribute from this object""" 2542 self.assert_valid() 2543 2544 value = _swig_getattr(self, self.__class__, name) 2545 2546 return self._retrieve_swig_value(name, value) 2547 2548 def __setattr__(self, name, value): 2549 """Set an attribute on this object""" 2550 self.assert_valid() 2551 2552 # Save a copy of the object, so that the garbage 2553 # collector won't kill the object while it's in 2554 # SWIG-land 2555 self.__dict__.setdefault("_members",{})[name] = value 2556 2557 return _set_instance_attr(self, name, value) 2558 2559 2560 def __call__(self, *args): 2561 return svn_ra_invoke_replay_revfinish_callback(self, *args) 2562 2563svn_ra_replay_revfinish_callback_t_swigregister = _ra.svn_ra_replay_revfinish_callback_t_swigregister 2564svn_ra_replay_revfinish_callback_t_swigregister(svn_ra_replay_revfinish_callback_t) 2565 2566class svn_ra_check_tunnel_func_t(object): 2567 """Proxy of C svn_ra_check_tunnel_func_t struct.""" 2568 2569 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2570 2571 def __init__(self, *args, **kwargs): 2572 raise AttributeError("No constructor defined") 2573 __repr__ = _swig_repr 2574 def set_parent_pool(self, parent_pool=None): 2575 """Create a new proxy object for TYPE""" 2576 import libsvn.core, weakref 2577 self.__dict__["_parent_pool"] = \ 2578 parent_pool or libsvn.core.application_pool; 2579 if self.__dict__["_parent_pool"]: 2580 self.__dict__["_is_valid"] = weakref.ref( 2581 self.__dict__["_parent_pool"]._is_valid) 2582 2583 def assert_valid(self): 2584 """Assert that this object is using valid pool memory""" 2585 if "_is_valid" in self.__dict__: 2586 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2587 2588 def _retrieve_swig_value(self, name, value): 2589 # If we got back a different object than we have cached, we need to copy 2590 # all our metadata into it, so that it looks identical to the one 2591 # originally set. 2592 members = self.__dict__.get('_members') 2593 if members is not None and name in members: 2594 _copy_metadata_deep(value, members[name]) 2595 2596 # Verify that the new object is good 2597 _assert_valid_deep(value) 2598 2599 return value 2600 2601 # Attribute access must be intercepted to ensure that objects coming from 2602 # read attribute access match those that are set with write attribute access. 2603 # Specifically the metadata, such as the associated apr_pool object, should 2604 # match the originally assigned object. 2605 # 2606 # For classic classes it is enough to use __getattr__ to intercept swig 2607 # derived attributes. However, with new style classes SWIG makes use of 2608 # descriptors which mean that __getattr__ is never called. Therefore, 2609 # __getattribute__ must be used for the interception. 2610 2611 if _newclass: 2612 def __getattribute__(self, name): 2613 """Manage access to all attributes of this object.""" 2614 2615 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2616 # items directly present in __dict__ 2617 mydict = object.__getattribute__(self, '__dict__') 2618 2619 if name == "__dict__": 2620 return mydict 2621 2622 if name in mydict: 2623 return mydict[name] 2624 2625 object.__getattribute__(self, 'assert_valid')() 2626 2627 value = _get_instance_attr(self, name) 2628 fn = object.__getattribute__(self, '_retrieve_swig_value') 2629 return fn(name, value) 2630 else: 2631 def __getattr__(self, name): 2632 """Get an attribute from this object""" 2633 self.assert_valid() 2634 2635 value = _swig_getattr(self, self.__class__, name) 2636 2637 return self._retrieve_swig_value(name, value) 2638 2639 def __setattr__(self, name, value): 2640 """Set an attribute on this object""" 2641 self.assert_valid() 2642 2643 # Save a copy of the object, so that the garbage 2644 # collector won't kill the object while it's in 2645 # SWIG-land 2646 self.__dict__.setdefault("_members",{})[name] = value 2647 2648 return _set_instance_attr(self, name, value) 2649 2650 2651 def __call__(self, *args): 2652 return svn_ra_invoke_check_tunnel_func(self, *args) 2653 2654svn_ra_check_tunnel_func_t_swigregister = _ra.svn_ra_check_tunnel_func_t_swigregister 2655svn_ra_check_tunnel_func_t_swigregister(svn_ra_check_tunnel_func_t) 2656 2657class svn_ra_close_tunnel_func_t(object): 2658 """Proxy of C svn_ra_close_tunnel_func_t struct.""" 2659 2660 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2661 2662 def __init__(self, *args, **kwargs): 2663 raise AttributeError("No constructor defined") 2664 __repr__ = _swig_repr 2665 def set_parent_pool(self, parent_pool=None): 2666 """Create a new proxy object for TYPE""" 2667 import libsvn.core, weakref 2668 self.__dict__["_parent_pool"] = \ 2669 parent_pool or libsvn.core.application_pool; 2670 if self.__dict__["_parent_pool"]: 2671 self.__dict__["_is_valid"] = weakref.ref( 2672 self.__dict__["_parent_pool"]._is_valid) 2673 2674 def assert_valid(self): 2675 """Assert that this object is using valid pool memory""" 2676 if "_is_valid" in self.__dict__: 2677 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2678 2679 def _retrieve_swig_value(self, name, value): 2680 # If we got back a different object than we have cached, we need to copy 2681 # all our metadata into it, so that it looks identical to the one 2682 # originally set. 2683 members = self.__dict__.get('_members') 2684 if members is not None and name in members: 2685 _copy_metadata_deep(value, members[name]) 2686 2687 # Verify that the new object is good 2688 _assert_valid_deep(value) 2689 2690 return value 2691 2692 # Attribute access must be intercepted to ensure that objects coming from 2693 # read attribute access match those that are set with write attribute access. 2694 # Specifically the metadata, such as the associated apr_pool object, should 2695 # match the originally assigned object. 2696 # 2697 # For classic classes it is enough to use __getattr__ to intercept swig 2698 # derived attributes. However, with new style classes SWIG makes use of 2699 # descriptors which mean that __getattr__ is never called. Therefore, 2700 # __getattribute__ must be used for the interception. 2701 2702 if _newclass: 2703 def __getattribute__(self, name): 2704 """Manage access to all attributes of this object.""" 2705 2706 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2707 # items directly present in __dict__ 2708 mydict = object.__getattribute__(self, '__dict__') 2709 2710 if name == "__dict__": 2711 return mydict 2712 2713 if name in mydict: 2714 return mydict[name] 2715 2716 object.__getattribute__(self, 'assert_valid')() 2717 2718 value = _get_instance_attr(self, name) 2719 fn = object.__getattribute__(self, '_retrieve_swig_value') 2720 return fn(name, value) 2721 else: 2722 def __getattr__(self, name): 2723 """Get an attribute from this object""" 2724 self.assert_valid() 2725 2726 value = _swig_getattr(self, self.__class__, name) 2727 2728 return self._retrieve_swig_value(name, value) 2729 2730 def __setattr__(self, name, value): 2731 """Set an attribute on this object""" 2732 self.assert_valid() 2733 2734 # Save a copy of the object, so that the garbage 2735 # collector won't kill the object while it's in 2736 # SWIG-land 2737 self.__dict__.setdefault("_members",{})[name] = value 2738 2739 return _set_instance_attr(self, name, value) 2740 2741 2742 def __call__(self, *args): 2743 return svn_ra_invoke_close_tunnel_func(self, *args) 2744 2745svn_ra_close_tunnel_func_t_swigregister = _ra.svn_ra_close_tunnel_func_t_swigregister 2746svn_ra_close_tunnel_func_t_swigregister(svn_ra_close_tunnel_func_t) 2747 2748class svn_ra_open_tunnel_func_t(object): 2749 """Proxy of C svn_ra_open_tunnel_func_t struct.""" 2750 2751 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2752 2753 def __init__(self, *args, **kwargs): 2754 raise AttributeError("No constructor defined") 2755 __repr__ = _swig_repr 2756 def set_parent_pool(self, parent_pool=None): 2757 """Create a new proxy object for TYPE""" 2758 import libsvn.core, weakref 2759 self.__dict__["_parent_pool"] = \ 2760 parent_pool or libsvn.core.application_pool; 2761 if self.__dict__["_parent_pool"]: 2762 self.__dict__["_is_valid"] = weakref.ref( 2763 self.__dict__["_parent_pool"]._is_valid) 2764 2765 def assert_valid(self): 2766 """Assert that this object is using valid pool memory""" 2767 if "_is_valid" in self.__dict__: 2768 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2769 2770 def _retrieve_swig_value(self, name, value): 2771 # If we got back a different object than we have cached, we need to copy 2772 # all our metadata into it, so that it looks identical to the one 2773 # originally set. 2774 members = self.__dict__.get('_members') 2775 if members is not None and name in members: 2776 _copy_metadata_deep(value, members[name]) 2777 2778 # Verify that the new object is good 2779 _assert_valid_deep(value) 2780 2781 return value 2782 2783 # Attribute access must be intercepted to ensure that objects coming from 2784 # read attribute access match those that are set with write attribute access. 2785 # Specifically the metadata, such as the associated apr_pool object, should 2786 # match the originally assigned object. 2787 # 2788 # For classic classes it is enough to use __getattr__ to intercept swig 2789 # derived attributes. However, with new style classes SWIG makes use of 2790 # descriptors which mean that __getattr__ is never called. Therefore, 2791 # __getattribute__ must be used for the interception. 2792 2793 if _newclass: 2794 def __getattribute__(self, name): 2795 """Manage access to all attributes of this object.""" 2796 2797 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2798 # items directly present in __dict__ 2799 mydict = object.__getattribute__(self, '__dict__') 2800 2801 if name == "__dict__": 2802 return mydict 2803 2804 if name in mydict: 2805 return mydict[name] 2806 2807 object.__getattribute__(self, 'assert_valid')() 2808 2809 value = _get_instance_attr(self, name) 2810 fn = object.__getattribute__(self, '_retrieve_swig_value') 2811 return fn(name, value) 2812 else: 2813 def __getattr__(self, name): 2814 """Get an attribute from this object""" 2815 self.assert_valid() 2816 2817 value = _swig_getattr(self, self.__class__, name) 2818 2819 return self._retrieve_swig_value(name, value) 2820 2821 def __setattr__(self, name, value): 2822 """Set an attribute on this object""" 2823 self.assert_valid() 2824 2825 # Save a copy of the object, so that the garbage 2826 # collector won't kill the object while it's in 2827 # SWIG-land 2828 self.__dict__.setdefault("_members",{})[name] = value 2829 2830 return _set_instance_attr(self, name, value) 2831 2832 2833 def __call__(self, *args): 2834 return svn_ra_invoke_open_tunnel_func(self, *args) 2835 2836svn_ra_open_tunnel_func_t_swigregister = _ra.svn_ra_open_tunnel_func_t_swigregister 2837svn_ra_open_tunnel_func_t_swigregister(svn_ra_open_tunnel_func_t) 2838 2839class svn_ra_init_func_t(object): 2840 """Proxy of C svn_ra_init_func_t struct.""" 2841 2842 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') 2843 2844 def __init__(self, *args, **kwargs): 2845 raise AttributeError("No constructor defined") 2846 __repr__ = _swig_repr 2847 def set_parent_pool(self, parent_pool=None): 2848 """Create a new proxy object for TYPE""" 2849 import libsvn.core, weakref 2850 self.__dict__["_parent_pool"] = \ 2851 parent_pool or libsvn.core.application_pool; 2852 if self.__dict__["_parent_pool"]: 2853 self.__dict__["_is_valid"] = weakref.ref( 2854 self.__dict__["_parent_pool"]._is_valid) 2855 2856 def assert_valid(self): 2857 """Assert that this object is using valid pool memory""" 2858 if "_is_valid" in self.__dict__: 2859 assert self.__dict__["_is_valid"](), "Variable has already been deleted" 2860 2861 def _retrieve_swig_value(self, name, value): 2862 # If we got back a different object than we have cached, we need to copy 2863 # all our metadata into it, so that it looks identical to the one 2864 # originally set. 2865 members = self.__dict__.get('_members') 2866 if members is not None and name in members: 2867 _copy_metadata_deep(value, members[name]) 2868 2869 # Verify that the new object is good 2870 _assert_valid_deep(value) 2871 2872 return value 2873 2874 # Attribute access must be intercepted to ensure that objects coming from 2875 # read attribute access match those that are set with write attribute access. 2876 # Specifically the metadata, such as the associated apr_pool object, should 2877 # match the originally assigned object. 2878 # 2879 # For classic classes it is enough to use __getattr__ to intercept swig 2880 # derived attributes. However, with new style classes SWIG makes use of 2881 # descriptors which mean that __getattr__ is never called. Therefore, 2882 # __getattribute__ must be used for the interception. 2883 2884 if _newclass: 2885 def __getattribute__(self, name): 2886 """Manage access to all attributes of this object.""" 2887 2888 # Start by mimicing __getattr__ behavior: immediately return __dict__ or 2889 # items directly present in __dict__ 2890 mydict = object.__getattribute__(self, '__dict__') 2891 2892 if name == "__dict__": 2893 return mydict 2894 2895 if name in mydict: 2896 return mydict[name] 2897 2898 object.__getattribute__(self, 'assert_valid')() 2899 2900 value = _get_instance_attr(self, name) 2901 fn = object.__getattribute__(self, '_retrieve_swig_value') 2902 return fn(name, value) 2903 else: 2904 def __getattr__(self, name): 2905 """Get an attribute from this object""" 2906 self.assert_valid() 2907 2908 value = _swig_getattr(self, self.__class__, name) 2909 2910 return self._retrieve_swig_value(name, value) 2911 2912 def __setattr__(self, name, value): 2913 """Set an attribute on this object""" 2914 self.assert_valid() 2915 2916 # Save a copy of the object, so that the garbage 2917 # collector won't kill the object while it's in 2918 # SWIG-land 2919 self.__dict__.setdefault("_members",{})[name] = value 2920 2921 return _set_instance_attr(self, name, value) 2922 2923 2924 def __call__(self, *args): 2925 return svn_ra_invoke_init_func(self, *args) 2926 2927svn_ra_init_func_t_swigregister = _ra.svn_ra_init_func_t_swigregister 2928svn_ra_init_func_t_swigregister(svn_ra_init_func_t) 2929 2930 2931 2932