~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/bindings/swig/python/wc.py

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# This file was automatically generated by SWIG (http://www.swig.org).
2
 
# Version 2.0.9
 
2
# Version 2.0.12
3
3
#
4
4
# Do not make changes to this file unless you know what you are doing--modify
5
5
# the SWIG interface file instead.
6
6
 
7
7
 
8
8
 
 
9
 
 
10
 
9
11
from sys import version_info
10
12
if version_info >= (2,6,0):
11
13
    def swig_import_helper():
387
389
 
388
390
def svn_wc_parse_externals_description3(*args):
389
391
  """
390
 
    svn_wc_parse_externals_description3(char const * parent_directory, char const * desc, svn_boolean_t canonicalize_url, 
 
392
    svn_wc_parse_externals_description3(char const * defining_directory, char const * desc, svn_boolean_t canonicalize_url, 
391
393
        apr_pool_t pool) -> svn_error_t
392
394
    """
393
395
  return _wc.svn_wc_parse_externals_description3(*args)
475
477
svn_wc_notify_left_local_modifications = _wc.svn_wc_notify_left_local_modifications
476
478
svn_wc_notify_foreign_copy_begin = _wc.svn_wc_notify_foreign_copy_begin
477
479
svn_wc_notify_move_broken = _wc.svn_wc_notify_move_broken
 
480
svn_wc_notify_cleanup_external = _wc.svn_wc_notify_cleanup_external
 
481
svn_wc_notify_failed_requires_target = _wc.svn_wc_notify_failed_requires_target
 
482
svn_wc_notify_info_external = _wc.svn_wc_notify_info_external
 
483
svn_wc_notify_commit_finalizing = _wc.svn_wc_notify_commit_finalizing
478
484
svn_wc_notify_state_inapplicable = _wc.svn_wc_notify_state_inapplicable
479
485
svn_wc_notify_state_unknown = _wc.svn_wc_notify_state_unknown
480
486
svn_wc_notify_state_unchanged = _wc.svn_wc_notify_state_unchanged
713
719
def svn_wc_conflict_version_dup(*args):
714
720
  """svn_wc_conflict_version_dup(svn_wc_conflict_version_t version, apr_pool_t pool) -> svn_wc_conflict_version_t"""
715
721
  return _wc.svn_wc_conflict_version_dup(*args)
716
 
class svn_wc_conflict_description2_t:
717
 
    """Proxy of C svn_wc_conflict_description2_t struct"""
718
 
    __swig_setmethods__ = {}
719
 
    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_wc_conflict_description2_t, name, value)
720
 
    __swig_getmethods__ = {}
721
 
    __getattr__ = lambda self, name: _swig_getattr(self, svn_wc_conflict_description2_t, name)
722
 
    __repr__ = _swig_repr
723
 
    __swig_setmethods__["local_abspath"] = _wc.svn_wc_conflict_description2_t_local_abspath_set
724
 
    __swig_getmethods__["local_abspath"] = _wc.svn_wc_conflict_description2_t_local_abspath_get
725
 
    __swig_setmethods__["node_kind"] = _wc.svn_wc_conflict_description2_t_node_kind_set
726
 
    __swig_getmethods__["node_kind"] = _wc.svn_wc_conflict_description2_t_node_kind_get
727
 
    __swig_setmethods__["kind"] = _wc.svn_wc_conflict_description2_t_kind_set
728
 
    __swig_getmethods__["kind"] = _wc.svn_wc_conflict_description2_t_kind_get
729
 
    __swig_setmethods__["property_name"] = _wc.svn_wc_conflict_description2_t_property_name_set
730
 
    __swig_getmethods__["property_name"] = _wc.svn_wc_conflict_description2_t_property_name_get
731
 
    __swig_setmethods__["is_binary"] = _wc.svn_wc_conflict_description2_t_is_binary_set
732
 
    __swig_getmethods__["is_binary"] = _wc.svn_wc_conflict_description2_t_is_binary_get
733
 
    __swig_setmethods__["mime_type"] = _wc.svn_wc_conflict_description2_t_mime_type_set
734
 
    __swig_getmethods__["mime_type"] = _wc.svn_wc_conflict_description2_t_mime_type_get
735
 
    __swig_setmethods__["action"] = _wc.svn_wc_conflict_description2_t_action_set
736
 
    __swig_getmethods__["action"] = _wc.svn_wc_conflict_description2_t_action_get
737
 
    __swig_setmethods__["reason"] = _wc.svn_wc_conflict_description2_t_reason_set
738
 
    __swig_getmethods__["reason"] = _wc.svn_wc_conflict_description2_t_reason_get
739
 
    __swig_setmethods__["base_abspath"] = _wc.svn_wc_conflict_description2_t_base_abspath_set
740
 
    __swig_getmethods__["base_abspath"] = _wc.svn_wc_conflict_description2_t_base_abspath_get
741
 
    __swig_setmethods__["their_abspath"] = _wc.svn_wc_conflict_description2_t_their_abspath_set
742
 
    __swig_getmethods__["their_abspath"] = _wc.svn_wc_conflict_description2_t_their_abspath_get
743
 
    __swig_setmethods__["my_abspath"] = _wc.svn_wc_conflict_description2_t_my_abspath_set
744
 
    __swig_getmethods__["my_abspath"] = _wc.svn_wc_conflict_description2_t_my_abspath_get
745
 
    __swig_setmethods__["merged_file"] = _wc.svn_wc_conflict_description2_t_merged_file_set
746
 
    __swig_getmethods__["merged_file"] = _wc.svn_wc_conflict_description2_t_merged_file_get
747
 
    __swig_setmethods__["operation"] = _wc.svn_wc_conflict_description2_t_operation_set
748
 
    __swig_getmethods__["operation"] = _wc.svn_wc_conflict_description2_t_operation_get
749
 
    __swig_setmethods__["src_left_version"] = _wc.svn_wc_conflict_description2_t_src_left_version_set
750
 
    __swig_getmethods__["src_left_version"] = _wc.svn_wc_conflict_description2_t_src_left_version_get
751
 
    __swig_setmethods__["src_right_version"] = _wc.svn_wc_conflict_description2_t_src_right_version_set
752
 
    __swig_getmethods__["src_right_version"] = _wc.svn_wc_conflict_description2_t_src_right_version_get
753
 
    def set_parent_pool(self, parent_pool=None):
754
 
      """Create a new proxy object for svn_wc_conflict_description2_t"""
755
 
      import libsvn.core, weakref
756
 
      self.__dict__["_parent_pool"] = \
757
 
        parent_pool or libsvn.core.application_pool;
758
 
      if self.__dict__["_parent_pool"]:
759
 
        self.__dict__["_is_valid"] = weakref.ref(
760
 
          self.__dict__["_parent_pool"]._is_valid)
761
 
 
762
 
    def assert_valid(self):
763
 
      """Assert that this object is using valid pool memory"""
764
 
      if "_is_valid" in self.__dict__:
765
 
        assert self.__dict__["_is_valid"](), "Variable has already been deleted"
766
 
 
767
 
    def __getattr__(self, name):
768
 
      """Get an attribute from this object"""
769
 
      self.assert_valid()
770
 
 
771
 
      value = _swig_getattr(self, self.__class__, name)
772
 
 
773
 
 
774
 
 
775
 
      members = self.__dict__.get("_members")
776
 
      if members is not None:
777
 
        _copy_metadata_deep(value, members.get(name))
778
 
          
779
 
 
780
 
      _assert_valid_deep(value)
781
 
 
782
 
      return value
783
 
 
784
 
    def __setattr__(self, name, value):
785
 
      """Set an attribute on this object"""
786
 
      self.assert_valid()
787
 
 
788
 
 
789
 
 
790
 
 
791
 
      self.__dict__.setdefault("_members",{})[name] = value
792
 
 
793
 
      return _swig_setattr(self, self.__class__, name, value)
794
 
 
795
 
    def __init__(self): 
796
 
        """__init__(svn_wc_conflict_description2_t self) -> svn_wc_conflict_description2_t"""
797
 
        this = _wc.new_svn_wc_conflict_description2_t()
798
 
        try: self.this.append(this)
799
 
        except: self.this = this
800
 
    __swig_destroy__ = _wc.delete_svn_wc_conflict_description2_t
801
 
    __del__ = lambda self : None;
802
 
svn_wc_conflict_description2_t_swigregister = _wc.svn_wc_conflict_description2_t_swigregister
803
 
svn_wc_conflict_description2_t_swigregister(svn_wc_conflict_description2_t)
804
 
 
805
722
class svn_wc_conflict_description_t:
806
723
    """Proxy of C svn_wc_conflict_description_t struct"""
807
724
    __swig_setmethods__ = {}
895
812
 
896
813
 
897
814
def svn_wc_conflict_description_create_text2(*args):
898
 
  """svn_wc_conflict_description_create_text2(char const * local_abspath, apr_pool_t result_pool) -> svn_wc_conflict_description2_t"""
 
815
  """svn_wc_conflict_description_create_text2(char const * local_abspath, apr_pool_t result_pool) -> svn_wc_conflict_description2_t *"""
899
816
  return _wc.svn_wc_conflict_description_create_text2(*args)
900
817
 
901
818
def svn_wc_conflict_description_create_text(*args):
905
822
def svn_wc_conflict_description_create_prop2(*args):
906
823
  """
907
824
    svn_wc_conflict_description_create_prop2(char const * local_abspath, svn_node_kind_t node_kind, char const * property_name, 
908
 
        apr_pool_t result_pool) -> svn_wc_conflict_description2_t
 
825
        apr_pool_t result_pool) -> svn_wc_conflict_description2_t *
909
826
    """
910
827
  return _wc.svn_wc_conflict_description_create_prop2(*args)
911
828
 
920
837
  """
921
838
    svn_wc_conflict_description_create_tree2(char const * local_abspath, svn_node_kind_t node_kind, svn_wc_operation_t operation, 
922
839
        svn_wc_conflict_version_t src_left_version, svn_wc_conflict_version_t src_right_version, 
923
 
        apr_pool_t result_pool) -> svn_wc_conflict_description2_t
 
840
        apr_pool_t result_pool) -> svn_wc_conflict_description2_t *
924
841
    """
925
842
  return _wc.svn_wc_conflict_description_create_tree2(*args)
926
843
 
932
849
    """
933
850
  return _wc.svn_wc_conflict_description_create_tree(*args)
934
851
 
 
852
def svn_wc_conflict_description2_dup(*args):
 
853
  """svn_wc_conflict_description2_dup(svn_wc_conflict_description2_t const * conflict, apr_pool_t result_pool) -> svn_wc_conflict_description2_t *"""
 
854
  return _wc.svn_wc_conflict_description2_dup(*args)
 
855
 
935
856
def svn_wc__conflict_description2_dup(*args):
936
 
  """svn_wc__conflict_description2_dup(svn_wc_conflict_description2_t conflict, apr_pool_t result_pool) -> svn_wc_conflict_description2_t"""
 
857
  """svn_wc__conflict_description2_dup(svn_wc_conflict_description2_t const * conflict, apr_pool_t result_pool) -> svn_wc_conflict_description2_t *"""
937
858
  return _wc.svn_wc__conflict_description2_dup(*args)
 
859
svn_wc_conflict_choose_undefined = _wc.svn_wc_conflict_choose_undefined
938
860
svn_wc_conflict_choose_postpone = _wc.svn_wc_conflict_choose_postpone
939
861
svn_wc_conflict_choose_base = _wc.svn_wc_conflict_choose_base
940
862
svn_wc_conflict_choose_theirs_full = _wc.svn_wc_conflict_choose_theirs_full
943
865
svn_wc_conflict_choose_mine_conflict = _wc.svn_wc_conflict_choose_mine_conflict
944
866
svn_wc_conflict_choose_merged = _wc.svn_wc_conflict_choose_merged
945
867
svn_wc_conflict_choose_unspecified = _wc.svn_wc_conflict_choose_unspecified
946
 
class svn_wc_conflict_result_t:
947
 
    """Proxy of C svn_wc_conflict_result_t struct"""
948
 
    __swig_setmethods__ = {}
949
 
    __setattr__ = lambda self, name, value: _swig_setattr(self, svn_wc_conflict_result_t, name, value)
950
 
    __swig_getmethods__ = {}
951
 
    __getattr__ = lambda self, name: _swig_getattr(self, svn_wc_conflict_result_t, name)
952
 
    __repr__ = _swig_repr
953
 
    __swig_setmethods__["choice"] = _wc.svn_wc_conflict_result_t_choice_set
954
 
    __swig_getmethods__["choice"] = _wc.svn_wc_conflict_result_t_choice_get
955
 
    __swig_setmethods__["merged_file"] = _wc.svn_wc_conflict_result_t_merged_file_set
956
 
    __swig_getmethods__["merged_file"] = _wc.svn_wc_conflict_result_t_merged_file_get
957
 
    __swig_setmethods__["save_merged"] = _wc.svn_wc_conflict_result_t_save_merged_set
958
 
    __swig_getmethods__["save_merged"] = _wc.svn_wc_conflict_result_t_save_merged_get
959
 
    def set_parent_pool(self, parent_pool=None):
960
 
      """Create a new proxy object for svn_wc_conflict_result_t"""
961
 
      import libsvn.core, weakref
962
 
      self.__dict__["_parent_pool"] = \
963
 
        parent_pool or libsvn.core.application_pool;
964
 
      if self.__dict__["_parent_pool"]:
965
 
        self.__dict__["_is_valid"] = weakref.ref(
966
 
          self.__dict__["_parent_pool"]._is_valid)
967
 
 
968
 
    def assert_valid(self):
969
 
      """Assert that this object is using valid pool memory"""
970
 
      if "_is_valid" in self.__dict__:
971
 
        assert self.__dict__["_is_valid"](), "Variable has already been deleted"
972
 
 
973
 
    def __getattr__(self, name):
974
 
      """Get an attribute from this object"""
975
 
      self.assert_valid()
976
 
 
977
 
      value = _swig_getattr(self, self.__class__, name)
978
 
 
979
 
 
980
 
 
981
 
      members = self.__dict__.get("_members")
982
 
      if members is not None:
983
 
        _copy_metadata_deep(value, members.get(name))
984
 
          
985
 
 
986
 
      _assert_valid_deep(value)
987
 
 
988
 
      return value
989
 
 
990
 
    def __setattr__(self, name, value):
991
 
      """Set an attribute on this object"""
992
 
      self.assert_valid()
993
 
 
994
 
 
995
 
 
996
 
 
997
 
      self.__dict__.setdefault("_members",{})[name] = value
998
 
 
999
 
      return _swig_setattr(self, self.__class__, name, value)
1000
 
 
1001
 
    def __init__(self): 
1002
 
        """__init__(svn_wc_conflict_result_t self) -> svn_wc_conflict_result_t"""
1003
 
        this = _wc.new_svn_wc_conflict_result_t()
1004
 
        try: self.this.append(this)
1005
 
        except: self.this = this
1006
 
    __swig_destroy__ = _wc.delete_svn_wc_conflict_result_t
1007
 
    __del__ = lambda self : None;
1008
 
svn_wc_conflict_result_t_swigregister = _wc.svn_wc_conflict_result_t_swigregister
1009
 
svn_wc_conflict_result_t_swigregister(svn_wc_conflict_result_t)
1010
 
 
1011
868
 
1012
869
def svn_wc_create_conflict_result(*args):
1013
 
  """svn_wc_create_conflict_result(svn_wc_conflict_choice_t choice, char const * merged_file, apr_pool_t pool) -> svn_wc_conflict_result_t"""
 
870
  """svn_wc_create_conflict_result(svn_wc_conflict_choice_t choice, char const * merged_file, apr_pool_t pool) -> svn_wc_conflict_result_t *"""
1014
871
  return _wc.svn_wc_create_conflict_result(*args)
1015
872
class svn_wc_diff_callbacks4_t:
1016
873
    """Proxy of C svn_wc_diff_callbacks4_t struct"""
1955
1812
    __swig_getmethods__["moved_to_abspath"] = _wc.svn_wc_status3_t_moved_to_abspath_get
1956
1813
    __swig_setmethods__["file_external"] = _wc.svn_wc_status3_t_file_external_set
1957
1814
    __swig_getmethods__["file_external"] = _wc.svn_wc_status3_t_file_external_get
 
1815
    __swig_setmethods__["actual_kind"] = _wc.svn_wc_status3_t_actual_kind_set
 
1816
    __swig_getmethods__["actual_kind"] = _wc.svn_wc_status3_t_actual_kind_get
1958
1817
    def set_parent_pool(self, parent_pool=None):
1959
1818
      """Create a new proxy object for svn_wc_status3_t"""
1960
1819
      import libsvn.core, weakref
2320
2179
    """
2321
2180
  return _wc.svn_wc_delete(*args)
2322
2181
 
 
2182
def svn_wc_add_from_disk3(*args):
 
2183
  """
 
2184
    svn_wc_add_from_disk3(svn_wc_context_t * wc_ctx, char const * local_abspath, apr_hash_t props, svn_boolean_t skip_checks, 
 
2185
        svn_wc_notify_func2_t notify_func, apr_pool_t scratch_pool) -> svn_error_t
 
2186
    """
 
2187
  return _wc.svn_wc_add_from_disk3(*args)
 
2188
 
2323
2189
def svn_wc_add_from_disk2(*args):
2324
2190
  """
2325
2191
    svn_wc_add_from_disk2(svn_wc_context_t * wc_ctx, char const * local_abspath, apr_hash_t props, svn_wc_notify_func2_t notify_func, 
2461
2327
  """svn_wc_committed_queue_create(apr_pool_t pool) -> svn_wc_committed_queue_t *"""
2462
2328
  return _wc.svn_wc_committed_queue_create(*args)
2463
2329
 
 
2330
def svn_wc_queue_committed4(*args):
 
2331
  """
 
2332
    svn_wc_queue_committed4(svn_wc_committed_queue_t * queue, svn_wc_context_t * wc_ctx, char const * local_abspath, 
 
2333
        svn_boolean_t recurse, svn_boolean_t is_committed, apr_array_header_t wcprop_changes, 
 
2334
        svn_boolean_t remove_lock, svn_boolean_t remove_changelist, 
 
2335
        svn_checksum_t sha1_checksum, apr_pool_t scratch_pool) -> svn_error_t
 
2336
    """
 
2337
  return _wc.svn_wc_queue_committed4(*args)
 
2338
 
2464
2339
def svn_wc_queue_committed3(*args):
2465
2340
  """
2466
2341
    svn_wc_queue_committed3(svn_wc_committed_queue_t * queue, svn_wc_context_t * wc_ctx, char const * local_abspath, 
2973
2848
  """svn_wc_get_pristine_copy_path(char const * path, apr_pool_t pool) -> svn_error_t"""
2974
2849
  return _wc.svn_wc_get_pristine_copy_path(*args)
2975
2850
 
 
2851
def svn_wc_cleanup4(*args):
 
2852
  """
 
2853
    svn_wc_cleanup4(svn_wc_context_t * wc_ctx, char const * local_abspath, svn_boolean_t break_locks, 
 
2854
        svn_boolean_t fix_recorded_timestamps, svn_boolean_t clear_dav_cache, svn_boolean_t vacuum_pristines, 
 
2855
        svn_cancel_func_t cancel_func, svn_wc_notify_func2_t notify_func, 
 
2856
        apr_pool_t scratch_pool) -> svn_error_t
 
2857
    """
 
2858
  return _wc.svn_wc_cleanup4(*args)
 
2859
 
2976
2860
def svn_wc_cleanup3(*args):
2977
2861
  """
2978
2862
    svn_wc_cleanup3(svn_wc_context_t * wc_ctx, char const * local_abspath, svn_cancel_func_t cancel_func, 
3031
2915
    """
3032
2916
  return _wc.svn_wc_relocate(*args)
3033
2917
 
 
2918
def svn_wc_revert5(*args):
 
2919
  """
 
2920
    svn_wc_revert5(svn_wc_context_t * wc_ctx, char const * local_abspath, svn_depth_t depth, svn_boolean_t use_commit_times, 
 
2921
        apr_array_header_t changelist_filter, svn_boolean_t clear_changelists, 
 
2922
        svn_boolean_t metadata_only, svn_cancel_func_t cancel_func, 
 
2923
        svn_wc_notify_func2_t notify_func, apr_pool_t scratch_pool) -> svn_error_t
 
2924
    """
 
2925
  return _wc.svn_wc_revert5(*args)
 
2926
 
3034
2927
def svn_wc_revert4(*args):
3035
2928
  """
3036
2929
    svn_wc_revert4(svn_wc_context_t * wc_ctx, char const * local_abspath, svn_depth_t depth, svn_boolean_t use_commit_times, 
3801
3694
 
3802
3695
def svn_wc_invoke_conflict_resolver_func2(*args):
3803
3696
  """
3804
 
    svn_wc_invoke_conflict_resolver_func2(svn_wc_conflict_resolver_func2_t _obj, svn_wc_conflict_description2_t description, 
 
3697
    svn_wc_invoke_conflict_resolver_func2(svn_wc_conflict_resolver_func2_t _obj, svn_wc_conflict_description2_t const * description, 
3805
3698
        void * baton, apr_pool_t result_pool, apr_pool_t scratch_pool) -> svn_error_t
3806
3699
    """
3807
3700
  return _wc.svn_wc_invoke_conflict_resolver_func2(*args)