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
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## use_libsvn1.dpatch by Mirco Bauer <meebey@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad monodevelop-0.18.1+dfsg~/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/LibSvnClient.cs monodevelop-0.18.1+dfsg/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/LibSvnClient.cs
--- monodevelop-0.18.1+dfsg~/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/LibSvnClient.cs 2007-12-20 20:04:42.000000000 +0100
+++ monodevelop-0.18.1+dfsg/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion/MonoDevelop.VersionControl.Subversion/LibSvnClient.cs 2007-12-25 18:54:53.000000000 +0100
@@ -22,10 +22,6 @@
public static LibSvnClient GetLib ()
{
try {
- return new LibSvnClient0 ();
- } catch {}
-
- try {
return new LibSvnClient1 ();
} catch {}
@@ -501,291 +497,6 @@
IntPtr baton, IntPtr pool);
}
- public class LibSvnClient0 : LibSvnClient {
- private const string svnclientlib = "libsvn_client-1.so.0";
-
- public override void config_ensure (string config_dir, IntPtr pool)
- {
- svn_config_ensure (config_dir, pool);
- }
-
- public override void auth_open (out IntPtr auth_baton, IntPtr providers, IntPtr pool)
- {
- svn_auth_open (out auth_baton, providers, pool);
- }
-
- public override void auth_set_parameter (IntPtr auth_baton, string name, IntPtr value)
- {
- svn_auth_set_parameter (auth_baton, name, value);
- }
-
- public override IntPtr auth_get_parameter (IntPtr auth_baton, string name)
- {
- return svn_auth_get_parameter (auth_baton, name);
- }
-
- public override void client_get_simple_provider (IntPtr item, IntPtr pool)
- {
- svn_client_get_simple_provider (item, pool);
- }
-
- public override void client_get_simple_prompt_provider (IntPtr item, svn_auth_simple_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
- {
- svn_client_get_simple_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
- }
-
- public override void client_get_username_provider (IntPtr item, IntPtr pool)
- {
- svn_client_get_username_provider (item, pool);
- }
-
- public override void client_get_username_prompt_provider (IntPtr item, svn_auth_username_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
- {
- svn_client_get_username_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
- }
-
- public override void client_get_ssl_server_trust_file_provider (IntPtr item, IntPtr pool)
- {
- svn_client_get_ssl_server_trust_file_provider (item, pool);
- }
-
- public override void client_get_ssl_client_cert_file_provider (IntPtr item, IntPtr pool)
- {
- svn_client_get_ssl_client_cert_file_provider (item, pool);
- }
-
- public override void client_get_ssl_client_cert_pw_file_provider (IntPtr item, IntPtr pool)
- {
- svn_client_get_ssl_client_cert_pw_file_provider (item, pool);
- }
-
- public override void client_get_ssl_server_trust_prompt_provider (IntPtr item, svn_auth_ssl_server_trust_prompt_func_t prompt_func, IntPtr prompt_batton, IntPtr pool)
- {
- svn_client_get_ssl_server_trust_prompt_provider (item, prompt_func, prompt_batton, pool);
- }
-
- public override void client_get_ssl_client_cert_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
- {
- svn_client_get_ssl_client_cert_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
- }
-
- public override void client_get_ssl_client_cert_pw_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func, IntPtr prompt_batton, int retry_limit, IntPtr pool)
- {
- svn_client_get_ssl_client_cert_pw_prompt_provider (item, prompt_func, prompt_batton, retry_limit, pool);
- }
-
- public override IntPtr client_version ()
- {
- return svn_client_version ();
- }
-
- public override IntPtr client_create_context (out IntPtr ctx, IntPtr pool)
- {
- return svn_client_create_context (out ctx, pool);
- }
-
- public override IntPtr client_ls (out IntPtr dirents, string path_or_url,
- ref Rev revision, int recurse, IntPtr ctx,
- IntPtr pool)
- {
- return svn_client_ls (out dirents, path_or_url, ref revision, recurse, ctx, pool);
- }
-
- public override IntPtr client_status (IntPtr result_rev, string path, ref Rev revision,
- svn_wc_status_func_t status_func, IntPtr status_baton,
- int descend, int get_all, int update, int no_ignore,
- IntPtr ctx, IntPtr pool)
- {
- return svn_client_status (result_rev, path, ref revision, status_func, status_baton,
- descend, get_all, update, no_ignore, ctx, pool);
- }
-
- public override IntPtr client_log (IntPtr apr_array_header_t_targets,
- ref Rev rev_start, ref Rev rev_end,
- int discover_changed_paths,
- int strict_node_history,
- svn_log_message_receiver_t receiver,
- IntPtr receiver_baton,
- IntPtr ctx, IntPtr pool)
- {
- return svn_client_log (apr_array_header_t_targets, ref rev_start, ref rev_end,
- discover_changed_paths, strict_node_history, receiver,
- receiver_baton,ctx, pool);
- }
-
- public override IntPtr time_from_cstring (out long aprtime, string time, IntPtr pool)
- {
- return svn_time_from_cstring (out aprtime, time, pool);
- }
-
- public override IntPtr client_url_from_path (ref IntPtr url, string path_or_url, IntPtr pool)
- {
- return svn_client_url_from_path (ref url, path_or_url, pool);
- }
-
- public override IntPtr client_cat2 (IntPtr stream, string path_or_url,
- ref Rev peg_revision,
- ref Rev revision,
- IntPtr ctx, IntPtr pool)
- {
- return svn_client_cat2 (stream, path_or_url, ref peg_revision, ref revision, ctx, pool);
- }
-
- public override IntPtr stream_create (IntPtr baton, IntPtr pool)
- {
- return svn_stream_create (baton, pool);
- }
-
- //public override IntPtr stream_set_read (IntPtr stream, svn_readwrite_fn_t reader);
-
- public override IntPtr stream_set_write (IntPtr stream, svn_readwrite_fn_t writer)
- {
- return svn_stream_set_write (stream, writer);
- }
-
- public override IntPtr client_update (IntPtr result_rev, string path, ref Rev revision,
- int recurse, IntPtr ctx, IntPtr pool)
- {
- return svn_client_update (result_rev, path, ref revision, recurse, ctx, pool);
- }
-
- public override IntPtr client_delete (ref IntPtr commit_info_p, IntPtr apr_array_header_t_targets,
- int force, IntPtr ctx, IntPtr pool)
- {
- return svn_client_delete (ref commit_info_p, apr_array_header_t_targets, force, ctx, pool);
- }
-
- public override IntPtr client_add3 (string path, int recurse, int force, int no_ignore, IntPtr ctx, IntPtr pool)
- {
- return svn_client_add3 (path, recurse, force, no_ignore, ctx, pool);
- }
-
- public override IntPtr client_commit (ref IntPtr svn_client_commit_info_t_commit_info,
- IntPtr apr_array_header_t_targets, int nonrecursive,
- IntPtr ctx, IntPtr pool)
- {
- return svn_client_commit (ref svn_client_commit_info_t_commit_info, apr_array_header_t_targets,
- nonrecursive, ctx, pool);
- }
-
- public override IntPtr client_revert (IntPtr apr_array_header_t_targets, int recursive,
- IntPtr ctx, IntPtr pool)
- {
- return svn_client_revert (apr_array_header_t_targets, recursive, ctx, pool);
- }
-
- public override IntPtr client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev,
- string destPath, int force, IntPtr ctx, IntPtr pool)
- {
- return svn_client_move (ref commit_info_p, srcPath, ref rev, destPath, force, ctx, pool);
- }
-
- public override IntPtr client_checkout (IntPtr result_rev, string url, string path, ref Rev rev,
- int recurse, IntPtr ctx, IntPtr pool)
- {
- return svn_client_checkout (result_rev, url, path, ref rev, recurse, ctx, pool);
- }
-
- public override IntPtr client_mkdir2 (ref IntPtr commit_info, IntPtr apr_array_paths, IntPtr ctx, IntPtr pool)
- {
- return svn_client_mkdir2 (ref commit_info, apr_array_paths, ctx, pool);
- }
-
- public override IntPtr client_diff (IntPtr diff_options, string path1, ref Rev revision1,
- string path2, ref Rev revision2, int recurse,
- int ignore_ancestry, int no_diff_deleted,
- IntPtr outfile, IntPtr errfile,
- IntPtr ctx, IntPtr pool)
- {
- return svn_client_diff (diff_options, path1, ref revision1, path2, ref revision2, recurse, ignore_ancestry,
- no_diff_deleted, outfile, errfile, ctx, pool);
- }
-
- [DllImport(svnclientlib)] static extern void svn_config_ensure (string config_dir, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_auth_open (out IntPtr auth_baton, IntPtr providers, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_auth_set_parameter (IntPtr auth_baton, string name, IntPtr value);
- [DllImport(svnclientlib)] static extern IntPtr svn_auth_get_parameter (IntPtr auth_baton, string name);
- [DllImport(svnclientlib)] static extern void svn_client_get_simple_provider (IntPtr item, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_simple_prompt_provider (IntPtr item, svn_auth_simple_prompt_func_t prompt_func, IntPtr prompt_batton, [MarshalAs (UnmanagedType.SysInt)] int retry_limit, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_username_provider (IntPtr item, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_username_prompt_provider (IntPtr item, svn_auth_username_prompt_func_t prompt_func, IntPtr prompt_batton, [MarshalAs (UnmanagedType.SysInt)] int retry_limit, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_ssl_server_trust_file_provider (IntPtr item, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_file_provider (IntPtr item, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_pw_file_provider (IntPtr item, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_ssl_server_trust_prompt_provider (IntPtr item, svn_auth_ssl_server_trust_prompt_func_t prompt_func, IntPtr prompt_batton, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_prompt_func_t prompt_func, IntPtr prompt_batton, [MarshalAs (UnmanagedType.SysInt)] int retry_limit, IntPtr pool);
- [DllImport(svnclientlib)] static extern void svn_client_get_ssl_client_cert_pw_prompt_provider (IntPtr item, svn_auth_ssl_client_cert_pw_prompt_func_t prompt_func, IntPtr prompt_batton, [MarshalAs (UnmanagedType.SysInt)] int retry_limit, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_version();
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_create_context(out IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_ls (out IntPtr dirents, string path_or_url,
- ref Rev revision, int recurse, IntPtr ctx,
- IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_status (IntPtr result_rev, string path, ref Rev revision,
- svn_wc_status_func_t status_func, IntPtr status_baton,
- int descend, int get_all, int update, int no_ignore,
- IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_log (IntPtr apr_array_header_t_targets,
- ref Rev rev_start, ref Rev rev_end,
- int discover_changed_paths,
- int strict_node_history,
- svn_log_message_receiver_t receiver,
- IntPtr receiver_baton,
- IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_time_from_cstring (out long aprtime, string time, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_url_from_path (ref IntPtr url, string path_or_url, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_cat2 (IntPtr stream, string path_or_url,
- ref Rev peg_revision,
- ref Rev revision,
- IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_stream_create (IntPtr baton, IntPtr pool);
-
- //[DllImport(svnclientlib)] static extern IntPtr svn_stream_set_read (IntPtr stream, svn_readwrite_fn_t reader);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_stream_set_write (IntPtr stream, svn_readwrite_fn_t writer);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_update (IntPtr result_rev, string path, ref Rev revision,
- int recurse, IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_delete (ref IntPtr commit_info_p, IntPtr apr_array_header_t_targets,
- int force, IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_add3 (string path, int recurse, int force, int no_ignore, IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_commit (ref IntPtr svn_client_commit_info_t_commit_info,
- IntPtr apr_array_header_t_targets, int nonrecursive,
- IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_revert (IntPtr apr_array_header_t_targets, int recursive,
- IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev,
- string destPath, int force, IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_checkout (IntPtr result_rev, string url, string path, ref Rev rev,
- int recurse, IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_mkdir2 (ref IntPtr commit_info, IntPtr apr_array_paths, IntPtr ctx, IntPtr pool);
-
- [DllImport(svnclientlib)] static extern IntPtr svn_client_diff (IntPtr diff_options, string path1,
- ref Rev revision1, string path2,
- ref Rev revision2, int recurse,
- int ignore_ancestry,
- int no_diff_deleted,
- IntPtr outfile,
- IntPtr errfile,
- IntPtr ctx,
- IntPtr pool);
- }
-
public class LibSvnClient1 : LibSvnClient {
private const string svnclientlib = "libsvn_client-1.so.1";
|