This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
/
client.py
2529 lines (2069 loc) · 97.4 KB
/
client.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _client
import new
new_instancemethod = new.instancemethod
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'PySwigObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static) or hasattr(self,name):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError,name
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
import core
import delta
import wc
import ra
def svn_client_version(*args):
"""svn_client_version() -> svn_version_t"""
return apply(_client.svn_client_version, args)
def svn_client_get_simple_prompt_provider(*args):
"""
svn_client_get_simple_prompt_provider(svn_auth_provider_object_t provider, svn_auth_simple_prompt_func_t prompt_func,
int retry_limit,
apr_pool_t pool)
"""
return apply(_client.svn_client_get_simple_prompt_provider, args)
def svn_client_get_username_prompt_provider(*args):
"""
svn_client_get_username_prompt_provider(svn_auth_provider_object_t provider, svn_auth_username_prompt_func_t prompt_func,
int retry_limit,
apr_pool_t pool)
"""
return apply(_client.svn_client_get_username_prompt_provider, args)
def svn_client_get_simple_provider(*args):
"""svn_client_get_simple_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""
return apply(_client.svn_client_get_simple_provider, args)
def svn_client_get_username_provider(*args):
"""svn_client_get_username_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""
return apply(_client.svn_client_get_username_provider, args)
def svn_client_get_ssl_server_trust_file_provider(*args):
"""svn_client_get_ssl_server_trust_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""
return apply(_client.svn_client_get_ssl_server_trust_file_provider, args)
def svn_client_get_ssl_client_cert_file_provider(*args):
"""svn_client_get_ssl_client_cert_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""
return apply(_client.svn_client_get_ssl_client_cert_file_provider, args)
def svn_client_get_ssl_client_cert_pw_file_provider(*args):
"""svn_client_get_ssl_client_cert_pw_file_provider(svn_auth_provider_object_t provider, apr_pool_t pool)"""
return apply(_client.svn_client_get_ssl_client_cert_pw_file_provider, args)
def svn_client_get_ssl_server_trust_prompt_provider(*args):
"""
svn_client_get_ssl_server_trust_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_server_trust_prompt_func_t prompt_func,
apr_pool_t pool)
"""
return apply(_client.svn_client_get_ssl_server_trust_prompt_provider, args)
def svn_client_get_ssl_client_cert_prompt_provider(*args):
"""
svn_client_get_ssl_client_cert_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_client_cert_prompt_func_t prompt_func,
int retry_limit,
apr_pool_t pool)
"""
return apply(_client.svn_client_get_ssl_client_cert_prompt_provider, args)
def svn_client_get_ssl_client_cert_pw_prompt_provider(*args):
"""
svn_client_get_ssl_client_cert_pw_prompt_provider(svn_auth_provider_object_t provider, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func,
int retry_limit,
apr_pool_t pool)
"""
return apply(_client.svn_client_get_ssl_client_cert_pw_prompt_provider, args)
def svn_client_proplist_item_dup(*args):
"""svn_client_proplist_item_dup( item, apr_pool_t pool)"""
return apply(_client.svn_client_proplist_item_dup, args)
class svn_client_commit_info_t:
"""Proxy of C svn_client_commit_info_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_info_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_info_t, name)
__repr__ = _swig_repr
__swig_setmethods__["revision"] = _client.svn_client_commit_info_t_revision_set
__swig_getmethods__["revision"] = _client.svn_client_commit_info_t_revision_get
__swig_setmethods__["date"] = _client.svn_client_commit_info_t_date_set
__swig_getmethods__["date"] = _client.svn_client_commit_info_t_date_get
__swig_setmethods__["author"] = _client.svn_client_commit_info_t_author_set
__swig_getmethods__["author"] = _client.svn_client_commit_info_t_author_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_client_commit_info_t"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
if self.__dict__["_parent_pool"]:
self.__dict__["_is_valid"] = weakref.ref(
self.__dict__["_parent_pool"]._is_valid)
def assert_valid(self):
"""Assert that this object is using valid pool memory"""
if "_is_valid" in self.__dict__:
assert self.__dict__["_is_valid"](), "Variable has already been deleted"
def __getattr__(self, name):
"""Get an attribute from this object"""
self.assert_valid()
value = _swig_getattr(self, self.__class__, name)
members = self.__dict__.get("_members")
if members is not None:
old_value = members.get(name)
if (old_value is not None and value is not None and
value is not old_value):
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
if hasattr(value, "assert_valid"):
value.assert_valid()
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
def __init__(self, *args):
"""__init__(self) -> svn_client_commit_info_t"""
this = apply(_client.new_svn_client_commit_info_t, args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _client.delete_svn_client_commit_info_t
__del__ = lambda self : None;
svn_client_commit_info_t_swigregister = _client.svn_client_commit_info_t_swigregister
svn_client_commit_info_t_swigregister(svn_client_commit_info_t)
SVN_CLIENT_COMMIT_ITEM_ADD = _client.SVN_CLIENT_COMMIT_ITEM_ADD
SVN_CLIENT_COMMIT_ITEM_DELETE = _client.SVN_CLIENT_COMMIT_ITEM_DELETE
SVN_CLIENT_COMMIT_ITEM_TEXT_MODS = _client.SVN_CLIENT_COMMIT_ITEM_TEXT_MODS
SVN_CLIENT_COMMIT_ITEM_PROP_MODS = _client.SVN_CLIENT_COMMIT_ITEM_PROP_MODS
SVN_CLIENT_COMMIT_ITEM_IS_COPY = _client.SVN_CLIENT_COMMIT_ITEM_IS_COPY
SVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN = _client.SVN_CLIENT_COMMIT_ITEM_LOCK_TOKEN
class svn_client_commit_item3_t:
"""Proxy of C svn_client_commit_item3_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_item3_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_item3_t, name)
__repr__ = _swig_repr
__swig_setmethods__["path"] = _client.svn_client_commit_item3_t_path_set
__swig_getmethods__["path"] = _client.svn_client_commit_item3_t_path_get
__swig_setmethods__["kind"] = _client.svn_client_commit_item3_t_kind_set
__swig_getmethods__["kind"] = _client.svn_client_commit_item3_t_kind_get
__swig_setmethods__["url"] = _client.svn_client_commit_item3_t_url_set
__swig_getmethods__["url"] = _client.svn_client_commit_item3_t_url_get
__swig_setmethods__["revision"] = _client.svn_client_commit_item3_t_revision_set
__swig_getmethods__["revision"] = _client.svn_client_commit_item3_t_revision_get
__swig_setmethods__["copyfrom_url"] = _client.svn_client_commit_item3_t_copyfrom_url_set
__swig_getmethods__["copyfrom_url"] = _client.svn_client_commit_item3_t_copyfrom_url_get
__swig_setmethods__["copyfrom_rev"] = _client.svn_client_commit_item3_t_copyfrom_rev_set
__swig_getmethods__["copyfrom_rev"] = _client.svn_client_commit_item3_t_copyfrom_rev_get
__swig_setmethods__["state_flags"] = _client.svn_client_commit_item3_t_state_flags_set
__swig_getmethods__["state_flags"] = _client.svn_client_commit_item3_t_state_flags_get
__swig_setmethods__["incoming_prop_changes"] = _client.svn_client_commit_item3_t_incoming_prop_changes_set
__swig_getmethods__["incoming_prop_changes"] = _client.svn_client_commit_item3_t_incoming_prop_changes_get
__swig_setmethods__["outgoing_prop_changes"] = _client.svn_client_commit_item3_t_outgoing_prop_changes_set
__swig_getmethods__["outgoing_prop_changes"] = _client.svn_client_commit_item3_t_outgoing_prop_changes_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_client_commit_item3_t"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
if self.__dict__["_parent_pool"]:
self.__dict__["_is_valid"] = weakref.ref(
self.__dict__["_parent_pool"]._is_valid)
def assert_valid(self):
"""Assert that this object is using valid pool memory"""
if "_is_valid" in self.__dict__:
assert self.__dict__["_is_valid"](), "Variable has already been deleted"
def __getattr__(self, name):
"""Get an attribute from this object"""
self.assert_valid()
value = _swig_getattr(self, self.__class__, name)
members = self.__dict__.get("_members")
if members is not None:
old_value = members.get(name)
if (old_value is not None and value is not None and
value is not old_value):
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
if hasattr(value, "assert_valid"):
value.assert_valid()
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
def __init__(self, *args):
"""__init__(self) -> svn_client_commit_item3_t"""
this = apply(_client.new_svn_client_commit_item3_t, args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _client.delete_svn_client_commit_item3_t
__del__ = lambda self : None;
svn_client_commit_item3_t_swigregister = _client.svn_client_commit_item3_t_swigregister
svn_client_commit_item3_t_swigregister(svn_client_commit_item3_t)
class svn_client_commit_item2_t:
"""Proxy of C svn_client_commit_item2_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_item2_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_item2_t, name)
__repr__ = _swig_repr
__swig_setmethods__["path"] = _client.svn_client_commit_item2_t_path_set
__swig_getmethods__["path"] = _client.svn_client_commit_item2_t_path_get
__swig_setmethods__["kind"] = _client.svn_client_commit_item2_t_kind_set
__swig_getmethods__["kind"] = _client.svn_client_commit_item2_t_kind_get
__swig_setmethods__["url"] = _client.svn_client_commit_item2_t_url_set
__swig_getmethods__["url"] = _client.svn_client_commit_item2_t_url_get
__swig_setmethods__["revision"] = _client.svn_client_commit_item2_t_revision_set
__swig_getmethods__["revision"] = _client.svn_client_commit_item2_t_revision_get
__swig_setmethods__["copyfrom_url"] = _client.svn_client_commit_item2_t_copyfrom_url_set
__swig_getmethods__["copyfrom_url"] = _client.svn_client_commit_item2_t_copyfrom_url_get
__swig_setmethods__["copyfrom_rev"] = _client.svn_client_commit_item2_t_copyfrom_rev_set
__swig_getmethods__["copyfrom_rev"] = _client.svn_client_commit_item2_t_copyfrom_rev_get
__swig_setmethods__["state_flags"] = _client.svn_client_commit_item2_t_state_flags_set
__swig_getmethods__["state_flags"] = _client.svn_client_commit_item2_t_state_flags_get
__swig_setmethods__["wcprop_changes"] = _client.svn_client_commit_item2_t_wcprop_changes_set
__swig_getmethods__["wcprop_changes"] = _client.svn_client_commit_item2_t_wcprop_changes_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_client_commit_item2_t"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
if self.__dict__["_parent_pool"]:
self.__dict__["_is_valid"] = weakref.ref(
self.__dict__["_parent_pool"]._is_valid)
def assert_valid(self):
"""Assert that this object is using valid pool memory"""
if "_is_valid" in self.__dict__:
assert self.__dict__["_is_valid"](), "Variable has already been deleted"
def __getattr__(self, name):
"""Get an attribute from this object"""
self.assert_valid()
value = _swig_getattr(self, self.__class__, name)
members = self.__dict__.get("_members")
if members is not None:
old_value = members.get(name)
if (old_value is not None and value is not None and
value is not old_value):
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
if hasattr(value, "assert_valid"):
value.assert_valid()
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
def __init__(self, *args):
"""__init__(self) -> svn_client_commit_item2_t"""
this = apply(_client.new_svn_client_commit_item2_t, args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _client.delete_svn_client_commit_item2_t
__del__ = lambda self : None;
svn_client_commit_item2_t_swigregister = _client.svn_client_commit_item2_t_swigregister
svn_client_commit_item2_t_swigregister(svn_client_commit_item2_t)
class svn_client_commit_item_t:
"""Proxy of C svn_client_commit_item_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_commit_item_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_client_commit_item_t, name)
__repr__ = _swig_repr
__swig_setmethods__["path"] = _client.svn_client_commit_item_t_path_set
__swig_getmethods__["path"] = _client.svn_client_commit_item_t_path_get
__swig_setmethods__["kind"] = _client.svn_client_commit_item_t_kind_set
__swig_getmethods__["kind"] = _client.svn_client_commit_item_t_kind_get
__swig_setmethods__["url"] = _client.svn_client_commit_item_t_url_set
__swig_getmethods__["url"] = _client.svn_client_commit_item_t_url_get
__swig_setmethods__["revision"] = _client.svn_client_commit_item_t_revision_set
__swig_getmethods__["revision"] = _client.svn_client_commit_item_t_revision_get
__swig_setmethods__["copyfrom_url"] = _client.svn_client_commit_item_t_copyfrom_url_set
__swig_getmethods__["copyfrom_url"] = _client.svn_client_commit_item_t_copyfrom_url_get
__swig_setmethods__["state_flags"] = _client.svn_client_commit_item_t_state_flags_set
__swig_getmethods__["state_flags"] = _client.svn_client_commit_item_t_state_flags_get
__swig_setmethods__["wcprop_changes"] = _client.svn_client_commit_item_t_wcprop_changes_set
__swig_getmethods__["wcprop_changes"] = _client.svn_client_commit_item_t_wcprop_changes_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_client_commit_item_t"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
if self.__dict__["_parent_pool"]:
self.__dict__["_is_valid"] = weakref.ref(
self.__dict__["_parent_pool"]._is_valid)
def assert_valid(self):
"""Assert that this object is using valid pool memory"""
if "_is_valid" in self.__dict__:
assert self.__dict__["_is_valid"](), "Variable has already been deleted"
def __getattr__(self, name):
"""Get an attribute from this object"""
self.assert_valid()
value = _swig_getattr(self, self.__class__, name)
members = self.__dict__.get("_members")
if members is not None:
old_value = members.get(name)
if (old_value is not None and value is not None and
value is not old_value):
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
if hasattr(value, "assert_valid"):
value.assert_valid()
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
def __init__(self, *args):
"""__init__(self) -> svn_client_commit_item_t"""
this = apply(_client.new_svn_client_commit_item_t, args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _client.delete_svn_client_commit_item_t
__del__ = lambda self : None;
svn_client_commit_item_t_swigregister = _client.svn_client_commit_item_t_swigregister
svn_client_commit_item_t_swigregister(svn_client_commit_item_t)
def svn_client_commit_item_create(*args):
"""svn_client_commit_item_create(svn_client_commit_item3_t item, apr_pool_t pool) -> svn_error_t"""
return apply(_client.svn_client_commit_item_create, args)
def svn_client_commit_item3_dup(*args):
"""svn_client_commit_item3_dup(svn_client_commit_item3_t item, apr_pool_t pool) -> svn_client_commit_item3_t"""
return apply(_client.svn_client_commit_item3_dup, args)
def svn_client_commit_item2_dup(*args):
"""svn_client_commit_item2_dup(svn_client_commit_item2_t item, apr_pool_t pool) -> svn_client_commit_item2_t"""
return apply(_client.svn_client_commit_item2_dup, args)
svn_client_diff_summarize_kind_normal = _client.svn_client_diff_summarize_kind_normal
svn_client_diff_summarize_kind_added = _client.svn_client_diff_summarize_kind_added
svn_client_diff_summarize_kind_modified = _client.svn_client_diff_summarize_kind_modified
svn_client_diff_summarize_kind_deleted = _client.svn_client_diff_summarize_kind_deleted
class svn_client_diff_summarize_t:
"""Proxy of C svn_client_diff_summarize_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_diff_summarize_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_client_diff_summarize_t, name)
__repr__ = _swig_repr
__swig_setmethods__["path"] = _client.svn_client_diff_summarize_t_path_set
__swig_getmethods__["path"] = _client.svn_client_diff_summarize_t_path_get
__swig_setmethods__["summarize_kind"] = _client.svn_client_diff_summarize_t_summarize_kind_set
__swig_getmethods__["summarize_kind"] = _client.svn_client_diff_summarize_t_summarize_kind_get
__swig_setmethods__["prop_changed"] = _client.svn_client_diff_summarize_t_prop_changed_set
__swig_getmethods__["prop_changed"] = _client.svn_client_diff_summarize_t_prop_changed_get
__swig_setmethods__["node_kind"] = _client.svn_client_diff_summarize_t_node_kind_set
__swig_getmethods__["node_kind"] = _client.svn_client_diff_summarize_t_node_kind_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_client_diff_summarize_t"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
if self.__dict__["_parent_pool"]:
self.__dict__["_is_valid"] = weakref.ref(
self.__dict__["_parent_pool"]._is_valid)
def assert_valid(self):
"""Assert that this object is using valid pool memory"""
if "_is_valid" in self.__dict__:
assert self.__dict__["_is_valid"](), "Variable has already been deleted"
def __getattr__(self, name):
"""Get an attribute from this object"""
self.assert_valid()
value = _swig_getattr(self, self.__class__, name)
members = self.__dict__.get("_members")
if members is not None:
old_value = members.get(name)
if (old_value is not None and value is not None and
value is not old_value):
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
if hasattr(value, "assert_valid"):
value.assert_valid()
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
def __init__(self, *args):
"""__init__(self) -> svn_client_diff_summarize_t"""
this = apply(_client.new_svn_client_diff_summarize_t, args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _client.delete_svn_client_diff_summarize_t
__del__ = lambda self : None;
svn_client_diff_summarize_t_swigregister = _client.svn_client_diff_summarize_t_swigregister
svn_client_diff_summarize_t_swigregister(svn_client_diff_summarize_t)
def svn_client_diff_summarize_dup(*args):
"""svn_client_diff_summarize_dup(svn_client_diff_summarize_t diff, apr_pool_t pool) -> svn_client_diff_summarize_t"""
return apply(_client.svn_client_diff_summarize_dup, args)
class svn_client_ctx_t:
"""Proxy of C svn_client_ctx_t struct"""
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, svn_client_ctx_t, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, svn_client_ctx_t, name)
__repr__ = _swig_repr
__swig_setmethods__["auth_baton"] = _client.svn_client_ctx_t_auth_baton_set
__swig_getmethods__["auth_baton"] = _client.svn_client_ctx_t_auth_baton_get
__swig_setmethods__["notify_func"] = _client.svn_client_ctx_t_notify_func_set
__swig_getmethods__["notify_func"] = _client.svn_client_ctx_t_notify_func_get
__swig_setmethods__["notify_baton"] = _client.svn_client_ctx_t_notify_baton_set
__swig_getmethods__["notify_baton"] = _client.svn_client_ctx_t_notify_baton_get
__swig_setmethods__["log_msg_func"] = _client.svn_client_ctx_t_log_msg_func_set
__swig_getmethods__["log_msg_func"] = _client.svn_client_ctx_t_log_msg_func_get
__swig_setmethods__["log_msg_baton"] = _client.svn_client_ctx_t_log_msg_baton_set
__swig_getmethods__["log_msg_baton"] = _client.svn_client_ctx_t_log_msg_baton_get
__swig_setmethods__["config"] = _client.svn_client_ctx_t_config_set
__swig_getmethods__["config"] = _client.svn_client_ctx_t_config_get
__swig_setmethods__["cancel_func"] = _client.svn_client_ctx_t_cancel_func_set
__swig_getmethods__["cancel_func"] = _client.svn_client_ctx_t_cancel_func_get
__swig_setmethods__["cancel_baton"] = _client.svn_client_ctx_t_cancel_baton_set
__swig_getmethods__["cancel_baton"] = _client.svn_client_ctx_t_cancel_baton_get
__swig_setmethods__["notify_func2"] = _client.svn_client_ctx_t_notify_func2_set
__swig_getmethods__["notify_func2"] = _client.svn_client_ctx_t_notify_func2_get
__swig_setmethods__["notify_baton2"] = _client.svn_client_ctx_t_notify_baton2_set
__swig_getmethods__["notify_baton2"] = _client.svn_client_ctx_t_notify_baton2_get
__swig_setmethods__["log_msg_func2"] = _client.svn_client_ctx_t_log_msg_func2_set
__swig_getmethods__["log_msg_func2"] = _client.svn_client_ctx_t_log_msg_func2_get
__swig_setmethods__["log_msg_baton2"] = _client.svn_client_ctx_t_log_msg_baton2_set
__swig_getmethods__["log_msg_baton2"] = _client.svn_client_ctx_t_log_msg_baton2_get
__swig_setmethods__["progress_func"] = _client.svn_client_ctx_t_progress_func_set
__swig_getmethods__["progress_func"] = _client.svn_client_ctx_t_progress_func_get
__swig_setmethods__["progress_baton"] = _client.svn_client_ctx_t_progress_baton_set
__swig_getmethods__["progress_baton"] = _client.svn_client_ctx_t_progress_baton_get
__swig_setmethods__["log_msg_func3"] = _client.svn_client_ctx_t_log_msg_func3_set
__swig_getmethods__["log_msg_func3"] = _client.svn_client_ctx_t_log_msg_func3_get
__swig_setmethods__["log_msg_baton3"] = _client.svn_client_ctx_t_log_msg_baton3_set
__swig_getmethods__["log_msg_baton3"] = _client.svn_client_ctx_t_log_msg_baton3_get
__swig_setmethods__["mimetypes_map"] = _client.svn_client_ctx_t_mimetypes_map_set
__swig_getmethods__["mimetypes_map"] = _client.svn_client_ctx_t_mimetypes_map_get
__swig_setmethods__["conflict_func"] = _client.svn_client_ctx_t_conflict_func_set
__swig_getmethods__["conflict_func"] = _client.svn_client_ctx_t_conflict_func_get
__swig_setmethods__["conflict_baton"] = _client.svn_client_ctx_t_conflict_baton_set
__swig_getmethods__["conflict_baton"] = _client.svn_client_ctx_t_conflict_baton_get
__swig_setmethods__["client_name"] = _client.svn_client_ctx_t_client_name_set
__swig_getmethods__["client_name"] = _client.svn_client_ctx_t_client_name_get
def set_parent_pool(self, parent_pool=None):
"""Create a new proxy object for svn_client_ctx_t"""
import libsvn.core, weakref
self.__dict__["_parent_pool"] = \
parent_pool or libsvn.core.application_pool;
if self.__dict__["_parent_pool"]:
self.__dict__["_is_valid"] = weakref.ref(
self.__dict__["_parent_pool"]._is_valid)
def assert_valid(self):
"""Assert that this object is using valid pool memory"""
if "_is_valid" in self.__dict__:
assert self.__dict__["_is_valid"](), "Variable has already been deleted"
def __getattr__(self, name):
"""Get an attribute from this object"""
self.assert_valid()
value = _swig_getattr(self, self.__class__, name)
members = self.__dict__.get("_members")
if members is not None:
old_value = members.get(name)
if (old_value is not None and value is not None and
value is not old_value):
try:
value.__dict__.update(old_value.__dict__)
except AttributeError:
pass
if hasattr(value, "assert_valid"):
value.assert_valid()
return value
def __setattr__(self, name, value):
"""Set an attribute on this object"""
self.assert_valid()
self.__dict__.setdefault("_members",{})[name] = value
return _swig_setattr(self, self.__class__, name, value)
def __init__(self, *args):
"""__init__(self) -> svn_client_ctx_t"""
this = apply(_client.new_svn_client_ctx_t, args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _client.delete_svn_client_ctx_t
__del__ = lambda self : None;
svn_client_ctx_t_swigregister = _client.svn_client_ctx_t_swigregister
svn_client_ctx_t_swigregister(svn_client_ctx_t)
SVN_CLIENT_AUTH_USERNAME = _client.SVN_CLIENT_AUTH_USERNAME
SVN_CLIENT_AUTH_PASSWORD = _client.SVN_CLIENT_AUTH_PASSWORD
def svn_client_create_context(*args):
"""svn_client_create_context(svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t"""
return apply(_client.svn_client_create_context, args)
def svn_client_checkout3(*args):
"""
svn_client_checkout3(svn_revnum_t result_rev, char URL, char path, svn_opt_revision_t peg_revision,
svn_opt_revision_t revision,
svn_depth_t depth, svn_boolean_t ignore_externals,
svn_boolean_t allow_unver_obstructions,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_checkout3, args)
def svn_client_checkout2(*args):
"""
svn_client_checkout2(svn_revnum_t result_rev, char URL, char path, svn_opt_revision_t peg_revision,
svn_opt_revision_t revision,
svn_boolean_t recurse, svn_boolean_t ignore_externals,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_checkout2, args)
def svn_client_checkout(*args):
"""
svn_client_checkout(svn_revnum_t result_rev, char URL, char path, svn_opt_revision_t revision,
svn_boolean_t recurse,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_checkout, args)
def svn_client_update3(*args):
"""
svn_client_update3(apr_array_header_t result_revs, apr_array_header_t paths,
svn_opt_revision_t revision, svn_depth_t depth,
svn_boolean_t depth_is_sticky, svn_boolean_t ignore_externals,
svn_boolean_t allow_unver_obstructions,
svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_update3, args)
def svn_client_update2(*args):
"""
svn_client_update2(apr_array_header_t result_revs, apr_array_header_t paths,
svn_opt_revision_t revision, svn_boolean_t recurse,
svn_boolean_t ignore_externals,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_update2, args)
def svn_client_update(*args):
"""
svn_client_update(svn_revnum_t result_rev, char path, svn_opt_revision_t revision,
svn_boolean_t recurse, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_update, args)
def svn_client_switch2(*args):
"""
svn_client_switch2(svn_revnum_t result_rev, char path, char url, svn_opt_revision_t peg_revision,
svn_opt_revision_t revision,
svn_depth_t depth, svn_boolean_t depth_is_sticky,
svn_boolean_t ignore_externals,
svn_boolean_t allow_unver_obstructions, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_switch2, args)
def svn_client_switch(*args):
"""
svn_client_switch(svn_revnum_t result_rev, char path, char url, svn_opt_revision_t revision,
svn_boolean_t recurse,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_switch, args)
def svn_client_add4(*args):
"""
svn_client_add4(char path, svn_depth_t depth, svn_boolean_t force,
svn_boolean_t no_ignore, svn_boolean_t add_parents,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_add4, args)
def svn_client_add3(*args):
"""
svn_client_add3(char path, svn_boolean_t recursive, svn_boolean_t force,
svn_boolean_t no_ignore, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_add3, args)
def svn_client_add2(*args):
"""
svn_client_add2(char path, svn_boolean_t recursive, svn_boolean_t force,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_add2, args)
def svn_client_add(*args):
"""
svn_client_add(char path, svn_boolean_t recursive, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_add, args)
def svn_client_mkdir3(*args):
"""
svn_client_mkdir3(svn_commit_info_t commit_info_p, apr_array_header_t paths,
svn_boolean_t make_parents, apr_hash_t revprop_table,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_mkdir3, args)
def svn_client_mkdir2(*args):
"""
svn_client_mkdir2(svn_commit_info_t commit_info_p, apr_array_header_t paths,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_mkdir2, args)
def svn_client_mkdir(*args):
"""
svn_client_mkdir(svn_client_commit_info_t commit_info_p, apr_array_header_t paths,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_mkdir, args)
def svn_client_delete3(*args):
"""
svn_client_delete3(svn_commit_info_t commit_info_p, apr_array_header_t paths,
svn_boolean_t force, svn_boolean_t keep_local,
apr_hash_t revprop_table, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_delete3, args)
def svn_client_delete2(*args):
"""
svn_client_delete2(svn_commit_info_t commit_info_p, apr_array_header_t paths,
svn_boolean_t force, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_delete2, args)
def svn_client_delete(*args):
"""
svn_client_delete(svn_client_commit_info_t commit_info_p, apr_array_header_t paths,
svn_boolean_t force, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_delete, args)
def svn_client_import3(*args):
"""
svn_client_import3(svn_commit_info_t commit_info_p, char path, char url,
svn_depth_t depth, svn_boolean_t no_ignore,
svn_boolean_t ignore_unknown_node_types, apr_hash_t revprop_table,
svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_import3, args)
def svn_client_import2(*args):
"""
svn_client_import2(svn_commit_info_t commit_info_p, char path, char url,
svn_boolean_t nonrecursive, svn_boolean_t no_ignore,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_import2, args)
def svn_client_import(*args):
"""
svn_client_import(svn_client_commit_info_t commit_info_p, char path,
char url, svn_boolean_t nonrecursive, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_import, args)
def svn_client_commit4(*args):
"""
svn_client_commit4(svn_commit_info_t commit_info_p, apr_array_header_t targets,
svn_depth_t depth, svn_boolean_t keep_locks,
svn_boolean_t keep_changelists, apr_array_header_t changelists,
apr_hash_t revprop_table,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_commit4, args)
def svn_client_commit3(*args):
"""
svn_client_commit3(svn_commit_info_t commit_info_p, apr_array_header_t targets,
svn_boolean_t recurse, svn_boolean_t keep_locks,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_commit3, args)
def svn_client_commit2(*args):
"""
svn_client_commit2(svn_client_commit_info_t commit_info_p, apr_array_header_t targets,
svn_boolean_t recurse, svn_boolean_t keep_locks,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_commit2, args)
def svn_client_commit(*args):
"""
svn_client_commit(svn_client_commit_info_t commit_info_p, apr_array_header_t targets,
svn_boolean_t nonrecursive,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_commit, args)
def svn_client_status3(*args):
"""
svn_client_status3(svn_revnum_t result_rev, char path, svn_opt_revision_t revision,
svn_wc_status_func2_t status_func,
svn_depth_t depth, svn_boolean_t get_all,
svn_boolean_t update, svn_boolean_t no_ignore,
svn_boolean_t ignore_externals, apr_array_header_t changelists,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_status3, args)
def svn_client_status2(*args):
"""
svn_client_status2(svn_revnum_t result_rev, char path, svn_opt_revision_t revision,
svn_wc_status_func2_t status_func,
svn_boolean_t recurse, svn_boolean_t get_all,
svn_boolean_t update, svn_boolean_t no_ignore,
svn_boolean_t ignore_externals, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_status2, args)
def svn_client_status(*args):
"""
svn_client_status(svn_revnum_t result_rev, char path, svn_opt_revision_t revision,
svn_wc_status_func_t status_func,
svn_boolean_t recurse, svn_boolean_t get_all,
svn_boolean_t update, svn_boolean_t no_ignore,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_status, args)
def svn_client_log4(*args):
"""
svn_client_log4(apr_array_header_t targets, svn_opt_revision_t peg_revision,
svn_opt_revision_t start, svn_opt_revision_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,
svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_log4, args)
def svn_client_log3(*args):
"""
svn_client_log3(apr_array_header_t targets, svn_opt_revision_t peg_revision,
svn_opt_revision_t start, svn_opt_revision_t end,
int limit, svn_boolean_t discover_changed_paths,
svn_boolean_t strict_node_history,
svn_log_message_receiver_t receiver,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_log3, args)
def svn_client_log2(*args):
"""
svn_client_log2(apr_array_header_t targets, svn_opt_revision_t start,
svn_opt_revision_t end, int limit, svn_boolean_t discover_changed_paths,
svn_boolean_t strict_node_history,
svn_log_message_receiver_t receiver,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_log2, args)
def svn_client_log(*args):
"""
svn_client_log(apr_array_header_t targets, svn_opt_revision_t start,
svn_opt_revision_t end, svn_boolean_t discover_changed_paths,
svn_boolean_t strict_node_history,
svn_log_message_receiver_t receiver,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_log, args)
def svn_client_blame4(*args):
"""
svn_client_blame4(char path_or_url, svn_opt_revision_t peg_revision,
svn_opt_revision_t start, svn_opt_revision_t end,
svn_diff_file_options_t diff_options, svn_boolean_t ignore_mime_type,
svn_boolean_t include_merged_revisions,
svn_client_blame_receiver2_t receiver,
void receiver_baton, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_blame4, args)
def svn_client_blame3(*args):
"""
svn_client_blame3(char path_or_url, svn_opt_revision_t peg_revision,
svn_opt_revision_t start, svn_opt_revision_t end,
svn_diff_file_options_t diff_options, svn_boolean_t ignore_mime_type,
svn_client_blame_receiver_t receiver,
svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_blame3, args)
def svn_client_blame2(*args):
"""
svn_client_blame2(char path_or_url, svn_opt_revision_t peg_revision,
svn_opt_revision_t start, svn_opt_revision_t end,
svn_client_blame_receiver_t receiver, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_blame2, args)
def svn_client_blame(*args):
"""
svn_client_blame(char path_or_url, svn_opt_revision_t start, svn_opt_revision_t end,
svn_client_blame_receiver_t receiver,
svn_client_ctx_t ctx, apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_blame, args)
def svn_client_diff4(*args):
"""
svn_client_diff4(apr_array_header_t diff_options, char path1, svn_opt_revision_t revision1,
char path2, svn_opt_revision_t revision2,
char relative_to_dir, svn_depth_t depth,
svn_boolean_t ignore_ancestry,
svn_boolean_t no_diff_deleted, svn_boolean_t ignore_content_type,
char header_encoding,
apr_file_t outfile, apr_file_t errfile, apr_array_header_t changelists,
svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_diff4, args)
def svn_client_diff3(*args):
"""
svn_client_diff3(apr_array_header_t diff_options, char path1, svn_opt_revision_t revision1,
char path2, svn_opt_revision_t revision2,
svn_boolean_t recurse, svn_boolean_t ignore_ancestry,
svn_boolean_t no_diff_deleted,
svn_boolean_t ignore_content_type,
char header_encoding, apr_file_t outfile,
apr_file_t errfile, svn_client_ctx_t ctx,
apr_pool_t pool) -> svn_error_t
"""
return apply(_client.svn_client_diff3, args)
def svn_client_diff2(*args):
"""
svn_client_diff2(apr_array_header_t diff_options, char path1, svn_opt_revision_t revision1,
char path2, svn_opt_revision_t revision2,
svn_boolean_t recurse, svn_boolean_t ignore_ancestry,
svn_boolean_t no_diff_deleted,
svn_boolean_t ignore_content_type,
apr_file_t outfile, apr_file_t errfile,