Changeset 63
- Timestamp:
- 07/17/04 01:53:18
- Files:
-
- trunk/SubversionSharp/dev/src/SvnAuthCred.cs (modified) (5 diffs)
- trunk/SubversionSharp/dev/src/SvnAuthSslServerCertInfo.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnClientCommitInfo.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnClientCommitItem.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnClientContext.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnClientPropListItem.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnDirEnt.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnError.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnString.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnStringBuf.cs (modified) (1 diff)
- trunk/SubversionSharp/dev/src/SvnWcEntry.cs (modified) (2 diffs)
- trunk/SubversionSharp/dev/src/SvnWcStatus.cs (modified) (1 diff)
- trunk/SubversionSharp/test/src/Add.cs (added)
- trunk/SubversionSharp/test/src/Checkout.cs (modified) (4 diffs)
- trunk/SubversionSharp/test/src/CmdBase.cs (modified) (6 diffs)
- trunk/SubversionSharp/test/src/Main.cs (modified) (1 diff)
- trunk/SubversionSharp/test/src/Status.cs (added)
- trunk/SubversionSharp/test/src/SvnTest.prjx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SubversionSharp/dev/src/SvnAuthCred.cs
r61 r63 37 37 private svn_auth_cred_simple_t *mCred; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_auth_cred_simple_t 41 41 { … … 159 159 private svn_auth_cred_username_t *mCred; 160 160 161 [StructLayout( LayoutKind.Sequential )]161 [StructLayout( LayoutKind.Sequential, Pack=4 )] 162 162 private struct svn_auth_cred_username_t 163 163 { … … 261 261 private svn_auth_cred_ssl_server_trust_t *mCred; 262 262 263 [StructLayout( LayoutKind.Sequential )]263 [StructLayout( LayoutKind.Sequential, Pack=4 )] 264 264 private struct svn_auth_cred_ssl_server_trust_t 265 265 { … … 353 353 private svn_auth_cred_ssl_client_cert_t *mCred; 354 354 355 [StructLayout( LayoutKind.Sequential )]355 [StructLayout( LayoutKind.Sequential, Pack=4 )] 356 356 private struct svn_auth_cred_ssl_client_cert_t 357 357 { … … 446 446 private svn_auth_cred_ssl_client_cert_pw_t *mCred; 447 447 448 [StructLayout( LayoutKind.Sequential )]448 [StructLayout( LayoutKind.Sequential, Pack=4 )] 449 449 private struct svn_auth_cred_ssl_client_cert_pw_t 450 450 { trunk/SubversionSharp/dev/src/SvnAuthSslServerCertInfo.cs
r60 r63 38 38 private svn_auth_ssl_server_cert_info *mSslServerCertInfo; 39 39 40 [StructLayout( LayoutKind.Sequential )]40 [StructLayout( LayoutKind.Sequential, Pack=4 )] 41 41 private struct svn_auth_ssl_server_cert_info 42 42 { trunk/SubversionSharp/dev/src/SvnClientCommitInfo.cs
r61 r63 37 37 private svn_client_commit_info_t *mCommitInfo; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_client_commit_info_t 41 41 { trunk/SubversionSharp/dev/src/SvnClientCommitItem.cs
r61 r63 37 37 private svn_client_commit_item_t *mCommitItem; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_client_commit_item_t 41 41 { trunk/SubversionSharp/dev/src/SvnClientContext.cs
r60 r63 42 42 private SvnDelegate mCancelFunc; 43 43 44 [StructLayout( LayoutKind.Sequential )]44 [StructLayout( LayoutKind.Sequential, Pack=4 )] 45 45 private struct svn_client_ctx_t 46 46 { trunk/SubversionSharp/dev/src/SvnClientPropListItem.cs
r60 r63 37 37 private svn_client_proplist_item_t *mPropList; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_client_proplist_item_t 41 41 { trunk/SubversionSharp/dev/src/SvnDirEnt.cs
r61 r63 37 37 private svn_dirent_t *mDirEnt; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_dirent_t 41 41 { trunk/SubversionSharp/dev/src/SvnError.cs
r60 r63 37 37 private svn_error_t *mError; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_error_t 41 41 { trunk/SubversionSharp/dev/src/SvnString.cs
r60 r63 37 37 private svn_string_t *mString; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_string_t 41 41 { trunk/SubversionSharp/dev/src/SvnStringBuf.cs
r60 r63 37 37 private svn_stringbuf_t *mStringBuf; 38 38 39 [StructLayout( LayoutKind.Sequential )]39 [StructLayout( LayoutKind.Sequential, Pack=4 )] 40 40 private struct svn_stringbuf_t 41 41 { trunk/SubversionSharp/dev/src/SvnWcEntry.cs
r61 r63 44 44 private svn_wc_entry_t *mEntry; 45 45 46 [StructLayout( LayoutKind.Sequential )]46 [StructLayout( LayoutKind.Sequential, Pack=4 )] 47 47 private struct svn_wc_entry_t 48 48 { … … 70 70 public long cmt_date; 71 71 public IntPtr cmt_author; 72 } 72 } 73 73 74 74 #region Generic embedding functions of an IntPtr trunk/SubversionSharp/dev/src/SvnWcStatus.cs
r61 r63 56 56 private svn_wc_status_t *mStatus; 57 57 58 [StructLayout( LayoutKind.Sequential )]58 [StructLayout( LayoutKind.Sequential, Pack=4 )] 59 59 private struct svn_wc_status_t 60 60 { trunk/SubversionSharp/test/src/Checkout.cs
r56 r63 1 // SvnTest, a client program used to test SubversionSharp library 2 #region Copyright (C) 2004 SOFTEC sa. 3 // 1 4 // SvnTest, a client program used to test SubversionSharp library 2 5 // Copyright 2004 by SOFTEC sa … … 24 27 // Denis Gervalle 25 28 // Olivier Desaive 29 #endregion 26 30 // 27 31 using System; … … 36 40 [SubCommand("checkout","co", 37 41 @"URL... [PATH] 38 retrieve data from a repository and create a working copy.42 Check out a working copy from a repository. 39 43 40 41 42 43 44 Note: If PATH is omitted, the basename of the URL will be used as 45 the destination. If multiple URLs are given each will be checked 46 out into a sub-directory of PATH, with the name of the sub-directory 47 being the basename of the URL." 44 48 )] 45 49 class CheckoutCmd : CmdBaseWithAuth … … 89 93 { 90 94 string[] seg = urls[i].Segments; 91 client.Checkout(new SvnUrl(urls[i], client.Pool), 92 new SvnPath(path + seg[seg.Length-1], client.Pool), 93 oRevision, 94 oRecurse); 95 try 96 { 97 client.Checkout(new SvnUrl(urls[i], client.Pool), 98 new SvnPath(path + seg[seg.Length-1], client.Pool), 99 oRevision, 100 oRecurse); 101 } 102 catch( Exception e ) 103 { 104 if( oDebug ) 105 Console.WriteLine(e); 106 else 107 Console.WriteLine(e.Message); 108 } 95 109 client.Clear(); 96 110 } trunk/SubversionSharp/test/src/CmdBase.cs
r60 r63 1 // SvnTest, a client program used to test SubversionSharp library 2 #region Copyright (C) 2004 SOFTEC sa. 3 // 1 4 // SvnTest, a client program used to test SubversionSharp library 2 5 // Copyright 2004 by SOFTEC sa … … 24 27 // Denis Gervalle 25 28 // Olivier Desaive 29 #endregion 26 30 // 27 31 using System; … … 95 99 96 100 mSubCmd = sc; 101 BreakSingleDashManyLettersIntoManyOptions = true; 97 102 ProcessArgs(args); 98 103 … … 153 158 { 154 159 if(mSubCmd.Description != string.Empty) 155 Console.WriteLine(" {0} {1}",mSubCmd.LongName,mSubCmd.Description);160 Console.WriteLine("\n{0} {1}\n",mSubCmd.LongName,mSubCmd.Description); 156 161 return(ret); 157 162 } … … 180 185 { 181 186 case SvnWcNotify.Action.Add: 182 if (!mimeType.IsNull && mimeType.ToString().StartsWith("text/"))187 if (!mimeType.IsNull && !mimeType.ToString().StartsWith("text/")) 183 188 Console.WriteLine("A (bin) {0}", Path); 184 189 else … … 191 196 192 197 case SvnWcNotify.Action.CommitAdded: 193 if (!mimeType.IsNull && mimeType.ToString().StartsWith("text/"))198 if (!mimeType.IsNull && !mimeType.ToString().StartsWith("text/")) 194 199 Console.WriteLine("Adding (bin) {0}", Path); 195 200 else trunk/SubversionSharp/test/src/Main.cs
r60 r63 160 160 } 161 161 162 public SubCommandAttribute(string longName, string shortName)162 public SubCommandAttribute(string longName, string desc) 163 163 { 164 ShortName = s hortName.ToLower();164 ShortName = string.Empty; 165 165 LongName = longName.ToLower(); 166 Description = string.Empty;166 Description = desc; 167 167 } 168 168 trunk/SubversionSharp/test/src/SvnTest.prjx
r56 r63 5 5 <File name="./Checkout.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> 6 6 <File name="./CmdBase.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> 7 <File name="./Add.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> 8 <File name="./Status.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> 7 9 </Contents> 8 10 <References>