Changeset 46

Show
Ignore:
Timestamp:
07/02/04 15:12:47
Author:
DenisG
Message:

[SubversionSharp] Introduce ReferenceEquals? for IAprUnmanaged and replace

AprArray? by ICollection in SvnClient?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SubversionSharp/dev/src/SvnAuthBaton.cs

    r44 r46  
    108108        } 
    109109         
     110        public bool ReferenceEquals(IAprUnmanaged obj) 
     111        { 
     112            return(obj.ToIntPtr() == ToIntPtr()); 
     113        } 
     114         
    110115        public static implicit operator IntPtr(SvnAuthBaton authBaton) 
    111116        { 
  • trunk/SubversionSharp/dev/src/SvnAuthCred.cs

    r44 r46  
    6363        } 
    6464         
     65        public bool ReferenceEquals(IAprUnmanaged obj) 
     66        { 
     67            return(obj.ToIntPtr() == ToIntPtr()); 
     68        } 
     69         
    6570        public static implicit operator IntPtr(SvnAuthCredSimple cred) 
    6671        { 
  • trunk/SubversionSharp/dev/src/SvnAuthProvider.cs

    r44 r46  
    5757        } 
    5858         
     59        public bool ReferenceEquals(IAprUnmanaged obj) 
     60        { 
     61            return(obj.ToIntPtr() == ToIntPtr()); 
     62        } 
     63         
    5964        public static implicit operator IntPtr(SvnAuthProviderObject authProviderObject) 
    6065        { 
  • trunk/SubversionSharp/dev/src/SvnAuthSslServerCertInfo.cs

    r44 r46  
    6767        } 
    6868         
     69        public bool ReferenceEquals(IAprUnmanaged obj) 
     70        { 
     71            return(obj.ToIntPtr() == ToIntPtr()); 
     72        } 
     73         
    6974        public static implicit operator IntPtr(SvnAuthSslServerCertInfo clientContext) 
    7075        { 
  • trunk/SubversionSharp/dev/src/SvnClient.cs

    r44 r46  
    9595        public SvnClientCommitInfo Mkdir(ICollection paths) 
    9696        { 
    97             return Mkdir(AprArray.Make(mPool,paths), mContext, mPool); 
    98         } 
    99          
    100         public SvnClientCommitInfo Delete(AprArray paths, bool force) 
    101         { 
    102             return Delete(paths, force, mContext, mPool); 
     97            return Mkdir(AprArray.CastMake(mPool,paths), mContext, mPool); 
     98        } 
     99         
     100        public SvnClientCommitInfo Delete(ICollection paths, bool force) 
     101        { 
     102            return Delete(AprArray.CastMake(mPool,paths), force, mContext, mPool); 
    103103        } 
    104104         
     
    108108        } 
    109109         
    110         public SvnClientCommitInfo Commit(AprArray targets, bool nonrecursive, AprPool pool
    111         { 
    112             return Commit(targets, nonrecursive, mContext, mPool); 
     110        public SvnClientCommitInfo Commit(ICollection targets, bool nonrecursive
     111        { 
     112            return Commit(AprArray.CastMake(mPool,targets), nonrecursive, mContext, mPool); 
    113113        } 
    114114         
     
    121121        } 
    122122 
    123         public void Log(AprArray targets,  
     123        public void Log(ICollection targets,  
    124124                        SvnRevision start, SvnRevision end, 
    125125                        bool discoverChangedPaths, bool strictNodeHistory, 
    126126                        LogMessageReceiver receiver, IntPtr baton) 
    127127        { 
    128             Log(targets,  
     128            Log(AprArray.CastMake(mPool,targets),  
    129129                start.ToSvnOpt(mPool), end.ToSvnOpt(mPool), 
    130130                discoverChangedPaths, strictNodeHistory, receiver, baton, 
     
    141141        } 
    142142 
    143         public void Diff(AprArray diffOptions, 
     143        public void Diff(ICollection diffOptions, 
    144144                         string path1, SvnRevision revision1, 
    145145                         string path2, SvnRevision revision2, 
     
    147147                         AprFile outFile, AprFile errFile) 
    148148        { 
    149             Diff(diffOptions
     149            Diff(AprArray.CastMake(mPool,diffOptions)
    150150                 path1, revision1.ToSvnOpt(mPool), 
    151151                 path2, revision2.ToSvnOpt(mPool), 
     
    174174        } 
    175175         
    176         public void Revert(AprArray paths, bool recurse) 
    177         { 
    178             Revert(paths, recurse, mContext, mPool); 
     176        public void Revert(ICollection paths, bool recurse) 
     177        { 
     178            Revert(AprArray.CastMake(mPool,paths), recurse, mContext, mPool); 
    179179        } 
    180180         
  • trunk/SubversionSharp/dev/src/SvnClientCommitInfo.cs

    r44 r46  
    6363        } 
    6464         
     65        public bool ReferenceEquals(IAprUnmanaged obj) 
     66        { 
     67            return(obj.ToIntPtr() == ToIntPtr()); 
     68        } 
     69         
    6570        public static implicit operator IntPtr(SvnClientCommitInfo commitInfo) 
    6671        { 
  • trunk/SubversionSharp/dev/src/SvnClientCommitItem.cs

    r44 r46  
    6767        } 
    6868         
     69        public bool ReferenceEquals(IAprUnmanaged obj) 
     70        { 
     71            return(obj.ToIntPtr() == ToIntPtr()); 
     72        } 
     73         
    6974        public static implicit operator IntPtr(SvnClientCommitItem clientCommit) 
    7075        { 
  • trunk/SubversionSharp/dev/src/SvnClientContext.cs

    r44 r46  
    8181        } 
    8282         
     83        public bool ReferenceEquals(IAprUnmanaged obj) 
     84        { 
     85            return(obj.ToIntPtr() == ToIntPtr()); 
     86        } 
     87         
    8388        public static implicit operator IntPtr(SvnClientContext clientContext) 
    8489        { 
  • trunk/SubversionSharp/dev/src/SvnClientPropListItem.cs

    r44 r46  
    6262        } 
    6363         
     64        public bool ReferenceEquals(IAprUnmanaged obj) 
     65        { 
     66            return(obj.ToIntPtr() == ToIntPtr()); 
     67        } 
     68         
    6469        public static implicit operator IntPtr(SvnClientPropListItem clientPropList) 
    6570        { 
  • trunk/SubversionSharp/dev/src/SvnConfig.cs

    r44 r46  
    5050        } 
    5151         
     52        public bool ReferenceEquals(IAprUnmanaged obj) 
     53        { 
     54            return(obj.ToIntPtr() == ToIntPtr()); 
     55        } 
     56         
    5257        public static implicit operator IntPtr(SvnConfig config) 
    5358        { 
  • trunk/SubversionSharp/dev/src/SvnDirEnt.cs

    r44 r46  
    6666        } 
    6767         
     68        public bool ReferenceEquals(IAprUnmanaged obj) 
     69        { 
     70            return(obj.ToIntPtr() == ToIntPtr()); 
     71        } 
     72         
    6873        public static implicit operator IntPtr(SvnDirEnt entry) 
    6974        { 
  • trunk/SubversionSharp/dev/src/SvnError.cs

    r44 r46  
    7979        } 
    8080         
     81        public bool ReferenceEquals(IAprUnmanaged obj) 
     82        { 
     83            return(obj.ToIntPtr() == ToIntPtr()); 
     84        } 
     85         
    8186        public static implicit operator IntPtr(SvnError error) 
    8287        { 
  • trunk/SubversionSharp/dev/src/SvnOptRevision.cs

    r44 r46  
    255255        } 
    256256         
     257        public bool ReferenceEquals(IAprUnmanaged obj) 
     258        { 
     259            return(obj.ToIntPtr() == ToIntPtr()); 
     260        } 
     261         
    257262        public static implicit operator IntPtr(SvnOptRevision revision) 
    258263        { 
  • trunk/SubversionSharp/dev/src/SvnStream.cs

    r44 r46  
    7575        } 
    7676         
     77        public bool ReferenceEquals(IAprUnmanaged obj) 
     78        { 
     79            return(obj.ToIntPtr() == ToIntPtr()); 
     80        } 
     81         
    7782        public static implicit operator IntPtr(SvnStream stream) 
    7883        { 
  • trunk/SubversionSharp/dev/src/SvnString.cs

    r44 r46  
    106106        } 
    107107         
     108        public bool ReferenceEquals(IAprUnmanaged obj) 
     109        { 
     110            return(obj.ToIntPtr() == ToIntPtr()); 
     111        } 
     112         
    108113        public static implicit operator IntPtr(SvnString str) 
    109114        { 
  • trunk/SubversionSharp/dev/src/SvnStringBuf.cs

    r44 r46  
    108108        } 
    109109         
     110        public bool ReferenceEquals(IAprUnmanaged obj) 
     111        { 
     112            return(obj.ToIntPtr() == ToIntPtr()); 
     113        } 
     114         
    110115        public static implicit operator IntPtr(SvnStringBuf str) 
    111116        { 
  • trunk/SubversionSharp/dev/src/SvnWcEntry.cs

    r44 r46  
    9090        } 
    9191         
     92        public bool ReferenceEquals(IAprUnmanaged obj) 
     93        { 
     94            return(obj.ToIntPtr() == ToIntPtr()); 
     95        } 
     96         
    9297        public static implicit operator IntPtr(SvnWcEntry entry) 
    9398        { 
  • trunk/SubversionSharp/dev/src/SvnWcStatus.cs

    r44 r46  
    8787        } 
    8888         
     89        public bool ReferenceEquals(IAprUnmanaged obj) 
     90        { 
     91            return(obj.ToIntPtr() == ToIntPtr()); 
     92        } 
     93         
    8994        public static implicit operator IntPtr(SvnWcStatus status) 
    9095        {