Beispiel #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;
 }
Beispiel #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);
        }
Beispiel #5
0
 public static SvnUrl Duplicate(AprPool pool, SvnString str)
 {
     return(new SvnUrl(str, pool));
 }
Beispiel #6
0
 public static SvnData Duplicate(AprPool pool, SvnString str)
 {
     return(new SvnData(str, pool));
 }
Beispiel #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);
        }
        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);
        }
        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);
        }
Beispiel #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));
 }
Beispiel #11
0
        public static void PropSet(string propName, SvnString propVal, SvnUrl target, 
								   bool recurse, AprPool pool)
        {
            InternalPropSet(propName, propVal, target, recurse, pool);
        }
Beispiel #12
0
 public void PropSet(string propName, SvnString propVal, SvnUrl target, bool recurse)
 {
     PropSet(propName, propVal, target, recurse, mPool);
 }
Beispiel #13
0
 public void PropSet(string propName, SvnString propVal, string target, bool recurse)
 {
     InternalPropSet(propName, propVal, PathOrUrl(target), recurse, mPool);
 }
Beispiel #14
0
 public SvnString(SvnString str, AprPool pool)
 {
     mString = (svn_string_t *)(Svn.svn_string_dup(str, pool)).ToPointer();
 }
Beispiel #15
0
 public SvnUrl(SvnString str, AprPool pool)
 {
     mUrl = Svn.svn_path_uri_encode(new SvnPath(str,pool), pool);
 }
Beispiel #16
0
 public SvnString(SvnString str, AprPool pool)
 {
     mString = (svn_string_t *) (Svn.svn_string_dup(str, pool)).ToPointer();
 }
Beispiel #17
0
 public static SvnString Create(SvnString str, AprPool pool)
 {
     return(new SvnString(str,pool));
 }
Beispiel #18
0
 public SvnStringBuf(SvnString str, AprPool pool)
 {
     mStringBuf = (svn_stringbuf_t *) (Svn.svn_stringbuf_create_from_string(str, pool)).ToPointer();
 }
Beispiel #19
0
 public SvnUrl(SvnString str, AprPool pool)
 {
     mUrl = Svn.svn_path_uri_encode(new SvnPath(str, pool), pool);
 }
Beispiel #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);
 }
Beispiel #22
0
 public void PropSet(string propName, SvnString propVal, string target, bool recurse)
 {
     InternalPropSet(propName, propVal, PathOrUrl(target), recurse, mPool);
 }
Beispiel #23
0
 public static SvnStringBuf Create(SvnString str, AprPool pool)
 {
     return(new SvnStringBuf(str, pool));
 }
Beispiel #24
0
 public void PropSet(string propName, SvnString propVal, SvnUrl target, bool recurse)
 {
     PropSet(propName, propVal, target, recurse, mPool);
 }