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; }
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); }
public static SvnUrl Duplicate(AprPool pool, SvnString str) { return(new SvnUrl(str, pool)); }
public static SvnData Duplicate(AprPool pool, SvnString str) { return(new SvnData(str, pool)); }
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); }
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 void PropSet(string propName, SvnString propVal, SvnUrl target, bool recurse, AprPool pool) { InternalPropSet(propName, propVal, target, recurse, pool); }
public void PropSet(string propName, SvnString propVal, SvnUrl target, bool recurse) { PropSet(propName, propVal, target, recurse, mPool); }
public void PropSet(string propName, SvnString propVal, string target, bool recurse) { InternalPropSet(propName, propVal, PathOrUrl(target), recurse, mPool); }
public SvnString(SvnString str, AprPool pool) { mString = (svn_string_t *)(Svn.svn_string_dup(str, pool)).ToPointer(); }
public SvnUrl(SvnString str, AprPool pool) { mUrl = Svn.svn_path_uri_encode(new SvnPath(str,pool), pool); }
public SvnString(SvnString str, AprPool pool) { mString = (svn_string_t *) (Svn.svn_string_dup(str, pool)).ToPointer(); }
public static SvnString Create(SvnString str, AprPool pool) { return(new SvnString(str,pool)); }
public SvnStringBuf(SvnString str, AprPool pool) { mStringBuf = (svn_stringbuf_t *) (Svn.svn_stringbuf_create_from_string(str, pool)).ToPointer(); }
public SvnUrl(SvnString str, AprPool pool) { mUrl = Svn.svn_path_uri_encode(new SvnPath(str, pool), pool); }
public SvnStringBuf(SvnString str, AprPool pool) { mStringBuf = (svn_stringbuf_t *)(Svn.svn_stringbuf_create_from_string(str, pool)).ToPointer(); }
public static SvnStringBuf Create(SvnString str, AprPool pool) { return(new SvnStringBuf(str, pool)); }