Example #1
0
 public SvnData(SvnString str, AprPool pool)
 {
     IntPtr svnStr;
     SvnError err = Svn.svn_utf_string_to_utf8(out svnStr, str, pool);
     if(!err.IsNoError)
         throw new SvnException(err);
     mString = ((SvnString)svnStr).Data;
 }
Example #2
0
        public SvnData(SvnString str, AprPool pool)
        {
            IntPtr   svnStr;
            SvnError err = Svn.svn_utf_string_to_utf8(out svnStr, str, pool);

            if (!err.IsNoError)
            {
                throw new SvnException(err);
            }
            mString = ((SvnString)svnStr).Data;
        }
        protected static void InternalPropSet(string propName, SvnString propVal, IAprUnmanaged target,
                                              bool recurse, AprPool pool)
        {
            Debug.WriteLine(String.Format("svn_client_propset({0},{1},{2},{3},{4})", propName, propVal, target, recurse, pool));
            SvnError err = Svn.svn_client_propset(propName, propVal, target.ToIntPtr(),
                                                  (recurse ? 1 : 0), pool);

            if (!err.IsNoError)
            {
                throw new SvnException(err);
            }
        }
        public static int RevPropSet(string propName, SvnString propVal,
                                     SvnUrl url, SvnOptRevision revision, bool force,
                                     SvnClientContext ctx, AprPool pool)
        {
            int rev;

            Debug.Write(String.Format("svn_client_revprop_set({0},{1},{2},{3},{4},{5},{6})...", propName, propVal, url, revision, force, ctx, pool));
            SvnError err = Svn.svn_client_revprop_set(propName, propVal, url, revision,
                                                      out rev, (force ? 1 : 0),
                                                      ctx, pool);

            if (!err.IsNoError)
            {
                throw new SvnException(err);
            }
            Debug.WriteLine(String.Format("Done({0})", rev));
            return(rev);
        }
Example #5
0
 public static SvnUrl Duplicate(AprPool pool, SvnString str)
 {
     return(new SvnUrl(str, pool));
 }
Example #6
0
 public static SvnData Duplicate(AprPool pool, SvnString str)
 {
     return(new SvnData(str, pool));
 }
Example #7
0
        public int RevPropSet(string propName, SvnString propVal,
							  string url, SvnRevision revision, bool force)
        {
            return RevPropSet(propName, propVal, new SvnUrl(url, mPool),
                              revision.ToSvnOpt(mPool), force, mContext, mPool);
        }
Example #8
0
        public static int RevPropSet(string propName, SvnString propVal,
								  	 SvnUrl url, SvnOptRevision revision, bool force,
								  	 SvnClientContext ctx, AprPool pool)
        {
            int rev;
            Debug.Write(String.Format("svn_client_revprop_set({0},{1},{2},{3},{4},{5},{6})...",propName,propVal,url,revision,force,ctx,pool));
            SvnError err = Svn.svn_client_revprop_set(propName, propVal, url, revision,
                                                      out rev, (force ? 1 : 0),
                                                      ctx, pool);
            if( !err.IsNoError )
                throw new SvnException(err);
            Debug.WriteLine(String.Format("Done({0})",rev));
            return(rev);
        }
Example #9
0
        protected static void InternalPropSet(string propName, SvnString propVal, IAprUnmanaged target, 
											bool recurse, AprPool pool)
        {
            Debug.WriteLine(String.Format("svn_client_propset({0},{1},{2},{3},{4})",propName,propVal,target,recurse,pool));
            SvnError err = Svn.svn_client_propset(propName, propVal, target.ToIntPtr(),
                                                  (recurse ? 1 : 0), pool);
            if( !err.IsNoError )
                throw new SvnException(err);
        }
Example #10
0
 public int RevPropSet(string propName, SvnString propVal,
                       string url, SvnRevision revision, bool force)
 {
     return(RevPropSet(propName, propVal, new SvnUrl(url, mPool),
                       revision.ToSvnOpt(mPool), force, mContext, mPool));
 }
Example #11
0
        public static void PropSet(string propName, SvnString propVal, SvnUrl target, 
								   bool recurse, AprPool pool)
        {
            InternalPropSet(propName, propVal, target, recurse, pool);
        }
Example #12
0
 public void PropSet(string propName, SvnString propVal, SvnUrl target, bool recurse)
 {
     PropSet(propName, propVal, target, recurse, mPool);
 }
Example #13
0
 public void PropSet(string propName, SvnString propVal, string target, bool recurse)
 {
     InternalPropSet(propName, propVal, PathOrUrl(target), recurse, mPool);
 }
Example #14
0
 public SvnString(SvnString str, AprPool pool)
 {
     mString = (svn_string_t *)(Svn.svn_string_dup(str, pool)).ToPointer();
 }
Example #15
0
 public SvnUrl(SvnString str, AprPool pool)
 {
     mUrl = Svn.svn_path_uri_encode(new SvnPath(str,pool), pool);
 }
Example #16
0
 public SvnString(SvnString str, AprPool pool)
 {
     mString = (svn_string_t *) (Svn.svn_string_dup(str, pool)).ToPointer();
 }
Example #17
0
 public static SvnString Create(SvnString str, AprPool pool)
 {
     return(new SvnString(str,pool));
 }
Example #18
0
 public SvnStringBuf(SvnString str, AprPool pool)
 {
     mStringBuf = (svn_stringbuf_t *) (Svn.svn_stringbuf_create_from_string(str, pool)).ToPointer();
 }
Example #19
0
 public SvnUrl(SvnString str, AprPool pool)
 {
     mUrl = Svn.svn_path_uri_encode(new SvnPath(str, pool), pool);
 }
Example #20
0
 public SvnStringBuf(SvnString str, AprPool pool)
 {
     mStringBuf = (svn_stringbuf_t *)(Svn.svn_stringbuf_create_from_string(str, pool)).ToPointer();
 }
 public static void PropSet(string propName, SvnString propVal, SvnUrl target,
                            bool recurse, AprPool pool)
 {
     InternalPropSet(propName, propVal, target, recurse, pool);
 }
Example #22
0
 public void PropSet(string propName, SvnString propVal, string target, bool recurse)
 {
     InternalPropSet(propName, propVal, PathOrUrl(target), recurse, mPool);
 }
Example #23
0
 public static SvnStringBuf Create(SvnString str, AprPool pool)
 {
     return(new SvnStringBuf(str, pool));
 }
Example #24
0
 public void PropSet(string propName, SvnString propVal, SvnUrl target, bool recurse)
 {
     PropSet(propName, propVal, target, recurse, mPool);
 }