public abstract IntPtr client_log (IntPtr apr_array_header_t_targets, ref Rev rev_start, ref Rev rev_end, int discover_changed_paths, int strict_node_history, svn_log_message_receiver_t receiver, IntPtr receiver_baton, IntPtr ctx, IntPtr pool);
/// <summary> /// Returns true if DocumentBase instances are equal /// </summary> /// <param name="other">Instance of DocumentBase to be compared</param> /// <returns>Boolean</returns> public bool Equals(DocumentBase other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rev == other.Rev || Rev != null && Rev.Equals(other.Rev) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) )); }
public void Start(int port, Rev rev) { socketServer = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); IPEndPoint endpoint = new IPEndPoint(IPAddress.Any, port); socketServer.Bind(endpoint); IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0); EndPoint Remote = (EndPoint)sender; RevTh = new Thread(() => { const int RevBuf = 1024; byte[] revBuf = new byte[RevBuf]; long revLen = 0; while (true) { try { revLen = socketServer.ReceiveFrom(revBuf, 0, RevBuf, SocketFlags.None, ref Remote); rev(revBuf, revLen); } catch (Exception e) { rev(null, 0, e.Message); } } }); RevTh.IsBackground = true; RevTh.Start(); }
public abstract IntPtr client_log(IntPtr apr_array_header_t_targets, ref Rev rev_start, ref Rev rev_end, bool discover_changed_paths, bool strict_node_history, svn_log_message_receiver_t receiver, IntPtr receiver_baton, IntPtr ctx, IntPtr pool);
public void Prune_NonGettableProperties() { foreach (var Rev in ModelRevisions) { Rev.Prune_NonGettableProperties(); } }
public override IntPtr client_cat2(IntPtr stream, string path_or_url, ref Rev peg_revision, ref Rev revision, IntPtr ctx, IntPtr pool) { return(svn_client_cat2(stream, path_or_url, ref peg_revision, ref revision, ctx, pool)); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Rev != null) { hashCode = hashCode * 59 + Rev.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Start != null) { hashCode = hashCode * 59 + Start.GetHashCode(); } if (End != null) { hashCode = hashCode * 59 + End.GetHashCode(); } hashCode = hashCode * 59 + Repeat.GetHashCode(); if (EndBy != null) { hashCode = hashCode * 59 + EndBy.GetHashCode(); } return(hashCode); } }
public ActionResult Index(Rev model) { ViewData["ok"] = "HHHMMM fine"; if (!ModelState.IsValid) { count++; ViewData["ok"] = "BOIII YOU GONNA LOSE " + count + "theet"; } else { if (Session["sess"] == null) { List <Rev> ll = new List <Rev>(); ll.Add(model); Session["sess"] = ll; } else { List <Rev> red = Session["sess"] as List <Rev>; red.Add(model); Session["sess"] = red; } } return(View()); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_log(IntPtr apr_array_header_t_targets, ref Rev rev_start, ref Rev rev_end, int discover_changed_paths, int strict_node_history, svn_log_message_receiver_t receiver, IntPtr receiver_baton, IntPtr ctx, IntPtr pool);
public static Rev Number(long rev) { Rev r = new Rev(svn_opt_revision_kind.Number); r.value.number_or_date = rev; return(r); }
private BWebServiceResponse ListRevisions(Action <string> _ErrorMessageAction) { if (!CommonMethods.TryGettingModelInfo( DatabaseService, RequestedModelID, out JObject _, true, out ModelDBEntry Model, out BWebServiceResponse FailureResponse, _ErrorMessageAction)) { return(FailureResponse); } var Result = new JArray(); foreach (var Rev in Model.ModelRevisions) { Rev.Prune_NonGettableProperties(); Result.Add(JObject.Parse(JsonConvert.SerializeObject(Rev))); } return(BWebResponse.StatusOK("List revisions operation has succeeded", new JObject() { [ModelDBEntry.MODEL_REVISIONS_PROPERTY] = Result })); }
private IApiRequest GetDeltasRequest() { IApiRequest request = ApiRequestFactory.Current.CreateRequest("POST", "get_deltas", _manager.ApiToken); request.AddParam("handle", Handle); request.AddParam("rev", Rev.ToString()); return(request); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_diff(IntPtr diff_options, string path1, ref Rev revision1, string path2, ref Rev revision2, [MarshalAs(UnmanagedType.Bool)] bool recurse, [MarshalAs(UnmanagedType.Bool)] bool ignore_ancestry, [MarshalAs(UnmanagedType.Bool)] bool no_diff_deleted, IntPtr outfile, IntPtr errfile, IntPtr ctx, IntPtr pool);
public override IntPtr client_status(IntPtr result_rev, string path, ref Rev revision, svn_wc_status_func2_t status_func, IntPtr status_baton, bool recurse, bool get_all, bool update, bool no_ignore, bool ignore_externals, IntPtr ctx, IntPtr pool) { return(svn_client_status2(result_rev, path, ref revision, status_func, status_baton, recurse, get_all, update, no_ignore, ignore_externals, ctx, pool)); }
public override IntPtr client_diff(IntPtr diff_options, string path1, ref Rev revision1, string path2, ref Rev revision2, int recurse, int ignore_ancestry, int no_diff_deleted, IntPtr outfile, IntPtr errfile, IntPtr ctx, IntPtr pool) { return(svn_client_diff(diff_options, path1, ref revision1, path2, ref revision2, recurse, ignore_ancestry, no_diff_deleted, outfile, errfile, ctx, pool)); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_diff(IntPtr diff_options, string path1, ref Rev revision1, string path2, ref Rev revision2, int recurse, int ignore_ancestry, int no_diff_deleted, IntPtr outfile, IntPtr errfile, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_merge_peg2(string source, ref Rev revision1, ref Rev revision2, ref Rev peg_revision, string target_wcpath, int recurse, int ignore_ancestry, int force, int dry_run, IntPtr merge_options, IntPtr ctx, IntPtr pool);
public override IntPtr client_log(IntPtr apr_array_header_t_targets, ref Rev rev_start, ref Rev rev_end, int discover_changed_paths, int strict_node_history, svn_log_message_receiver_t receiver, IntPtr receiver_baton, IntPtr ctx, IntPtr pool) { return(svn_client_log(apr_array_header_t_targets, ref rev_start, ref rev_end, discover_changed_paths, strict_node_history, receiver, receiver_baton, ctx, pool)); }
public abstract IntPtr client_merge_peg2(string source, ref Rev revision1, ref Rev revision2, ref Rev peg_revision, string target_wcpath, bool recurse, bool ignore_ancestry, bool force, bool dry_run, IntPtr merge_options, IntPtr ctx, IntPtr pool);
private string parseRevFromDeviceID(string deviceId) { string[] splitDeviceId = deviceId.Split('\\'); string Rev; //Разбиваем строку на несколько частей. //Каждая чаcть отделяется по символу & string[] splitRev = splitDeviceId[1].Split('&'); Rev = splitRev[3].Replace("REV_", "");; Rev = Rev.Replace("_", " "); return(Rev); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Rev != null) { hashCode = hashCode * 59 + Rev.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Source != null) { hashCode = hashCode * 59 + Source.GetHashCode(); } if (Start != null) { hashCode = hashCode * 59 + Start.GetHashCode(); } if (End != null) { hashCode = hashCode * 59 + End.GetHashCode(); } if (Classification != null) { hashCode = hashCode * 59 + Classification.GetHashCode(); } hashCode = hashCode * 59 + IsCrash.GetHashCode(); hashCode = hashCode * 59 + IsAutoAssigned.GetHashCode(); if (Properties != null) { hashCode = hashCode * 59 + Properties.GetHashCode(); } return(hashCode); } }
public JsonResult GetRevenue() { List <Rev> lst = new List <Rev>(); var data = db.RevenueTypes.ToList(); foreach (var item in data) { Rev v = new Rev(); v.RevenueTypeID = item.RevenueTypeID; v.RevenueType1 = item.RevenueType1; lst.Add(v); } return(Json(lst, JsonRequestBehavior.AllowGet)); }
/// <summary> /// Returns true if SeriesModel instances are equal /// </summary> /// <param name="other">Instance of SeriesModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(SeriesModel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rev == other.Rev || Rev != null && Rev.Equals(other.Rev) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Start == other.Start || Start != null && Start.Equals(other.Start) ) && ( End == other.End || End != null && End.Equals(other.End) ) && ( Repeat == other.Repeat || Repeat.Equals(other.Repeat) ) && ( EndBy == other.EndBy || EndBy != null && EndBy.Equals(other.EndBy) )); }
public override IntPtr client_merge_peg2( string source, ref Rev revision1, ref Rev revision2, ref Rev peg_revision, string target_wcpath, bool recurse, bool ignore_ancestry, bool force, bool dry_run, IntPtr merge_options, IntPtr ctx, IntPtr pool) { // svn_boolean_t == int return(svn_client_merge_peg2(source, ref revision1, ref revision2, ref peg_revision, target_wcpath, recurse ? 1: 0, ignore_ancestry ? 1 : 0, force ? 1 : 0, dry_run ? 1 : 0, merge_options, ctx, pool)); }
private IApiRequest PushRequest() { JArray args = new JArray(); foreach (var table in _tables) { foreach (var change in table.Value.PendingChanges) { args.Add(change); } } IApiRequest request = ApiRequestFactory.Current.CreateRequest("POST", "put_delta", _manager.ApiToken); request.AddParam("handle", Handle); request.AddParam("rev", Rev.ToString()); request.AddParam("changes", args.ToString(Formatting.None)); return(request); }
public static Rev GetRev(string version) { var match = regex.Match(version); if (!match.Success) { return(null); } var rev = new Rev { Version = version, Major = ToInt(match.Groups[1].Value), Minor = ToInt(match.Groups[2].Value), Revision = ToInt(match.Groups[3].Value), Variation = match.Groups[4].Value }; return(rev); }
private static string parseRevFromDeviceID(string deviceId) { try { string[] splitDeviceId = deviceId.Split('\\'); string Rev; //Разбиваем строку на несколько частей. //Каждая чаcть отделяется по символу & string[] splitRev = splitDeviceId[1].Split('&'); Rev = splitRev[3].Replace("REV_", ""); ; Rev = Rev.Replace("_", " "); return(Rev); } catch (Exception ex) { Logger.Debug(() => $"{ex}"); } return(string.Empty); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_update (svn_revnum_t result_rev, string path, ref Rev revision, [MarshalAs (UnmanagedType.Bool)] bool recurse, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_cat2 (IntPtr stream, string path_or_url, ref Rev peg_revision, ref Rev revision, IntPtr ctx, IntPtr pool);
public override IntPtr client_status (IntPtr result_rev, string path, ref Rev revision, svn_wc_status_func2_t status_func, IntPtr status_baton, bool recurse, bool get_all, bool update, bool no_ignore, bool ignore_externals, IntPtr ctx, IntPtr pool) { return svn_client_status2 (result_rev, path, ref revision, status_func, status_baton, recurse, get_all, update, no_ignore, ignore_externals, ctx, pool); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_checkout (IntPtr result_rev, string url, string path, ref Rev rev, int recurse, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_diff (IntPtr diff_options, string path1, ref Rev revision1, string path2, ref Rev revision2, [MarshalAs (UnmanagedType.Bool)] bool recurse, [MarshalAs (UnmanagedType.Bool)] bool ignore_ancestry, [MarshalAs (UnmanagedType.Bool)] bool no_diff_deleted, IntPtr outfile, IntPtr errfile, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_propget (out IntPtr value, string name, string target, ref Rev revision, [MarshalAs (UnmanagedType.Bool)] bool recurse, IntPtr ctx, IntPtr pool);
public override IntPtr client_diff (IntPtr diff_options, string path1, ref Rev revision1, string path2, ref Rev revision2, bool recurse, bool ignore_ancestry, bool no_diff_deleted, IntPtr outfile, IntPtr errfile, IntPtr ctx, IntPtr pool) { return svn_client_diff (diff_options, path1, ref revision1, path2, ref revision2, recurse, ignore_ancestry, no_diff_deleted, outfile, errfile, ctx, pool); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_prop_get (out IntPtr value, string name, string target, ref Rev revision, int recurse, IntPtr ctx, IntPtr pool);
public override IntPtr client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev, string destPath, bool force, IntPtr ctx, IntPtr pool) { return svn_client_move (ref commit_info_p, srcPath, ref rev, destPath, force, ctx, pool); }
public override IntPtr client_checkout (IntPtr result_rev, string url, string path, ref Rev rev, bool recurse, IntPtr ctx, IntPtr pool) { return svn_client_checkout (result_rev, url, path, ref rev, recurse, ctx, pool); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_ls (out IntPtr dirents, string path_or_url, ref Rev revision, int recurse, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_prop_get(out IntPtr value, string name, string target, ref Rev revision, int recurse, IntPtr ctx, IntPtr pool);
public override IntPtr client_log (IntPtr apr_array_header_t_targets, ref Rev rev_start, ref Rev rev_end, bool discover_changed_paths, bool strict_node_history, svn_log_message_receiver_t receiver, IntPtr receiver_baton, IntPtr ctx, IntPtr pool) { return svn_client_log (apr_array_header_t_targets, ref rev_start, ref rev_end, discover_changed_paths, strict_node_history, receiver, receiver_baton,ctx, pool); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev, string destPath, [MarshalAs (UnmanagedType.Bool)] bool force, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_move(ref IntPtr commit_info_p, string srcPath, ref Rev rev, string destPath, int force, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_checkout (IntPtr result_rev, string url, string path, ref Rev rev, [MarshalAs (UnmanagedType.Bool)] bool recurse, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_diff (IntPtr diff_options, string path1, ref Rev revision1, string path2, ref Rev revision2, int recurse, int ignore_ancestry, int no_diff_deleted, IntPtr outfile, IntPtr errfile, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_merge_peg2 (string source, ref Rev revision1, ref Rev revision2, ref Rev peg_revision, string target_wcpath, int recurse, int ignore_ancestry, int force, int dry_run, IntPtr merge_options, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_update (IntPtr result_rev, string path, ref Rev revision, int recurse, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_blame (string path, ref Rev rev_start, ref Rev rev_end, svn_client_blame_receiver_t receiver, IntPtr baton, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_status2 (IntPtr svn_revnum_t, string path, ref Rev revision, svn_wc_status_func2_t status_func, IntPtr status_baton, [MarshalAs (UnmanagedType.Bool)] bool recurse, [MarshalAs (UnmanagedType.Bool)] bool get_all, [MarshalAs (UnmanagedType.Bool)] bool update, [MarshalAs (UnmanagedType.Bool)] bool no_ignore, [MarshalAs (UnmanagedType.Bool)] bool ignore_externals, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_move (ref IntPtr commit_info_p, string srcPath, ref Rev rev, string destPath, int force, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_log (IntPtr apr_array_header_t_targets, ref Rev rev_start, ref Rev rev_end, [MarshalAs (UnmanagedType.Bool)] bool discover_changed_paths, [MarshalAs (UnmanagedType.Bool)] bool strict_node_history, svn_log_message_receiver_t receiver, IntPtr receiver_baton, IntPtr ctx, IntPtr pool);
public override IntPtr client_merge_peg2 ( string source, ref Rev revision1, ref Rev revision2, ref Rev peg_revision, string target_wcpath, bool recurse, bool ignore_ancestry, bool force, bool dry_run, IntPtr merge_options, IntPtr ctx, IntPtr pool) { // svn_boolean_t == int return svn_client_merge_peg2 (source, ref revision1, ref revision2, ref peg_revision, target_wcpath, recurse ? 1: 0, ignore_ancestry ? 1 : 0, force ? 1 : 0, dry_run ? 1 : 0, merge_options, ctx, pool); }
public override IntPtr client_ls (out IntPtr dirents, string path_or_url, ref Rev revision, bool recurse, IntPtr ctx, IntPtr pool) { return svn_client_ls (out dirents, path_or_url, ref revision, recurse, ctx, pool); }
public override IntPtr client_propget (out IntPtr value, string name, string target, ref Rev revision, bool recurse, IntPtr ctx, IntPtr pool) { return svn_client_propget (out value, name, target, ref revision, recurse, ctx, pool); }
public override IntPtr client_blame (string path, ref Rev rev_start, ref Rev rev_end, svn_client_blame_receiver_t receiver, System.IntPtr baton, System.IntPtr ctx, System.IntPtr pool) { return svn_client_blame (path, ref rev_start, ref rev_end, receiver, baton, ctx, pool); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_checkout(IntPtr result_rev, string url, string path, ref Rev rev, [MarshalAs(UnmanagedType.Bool)] bool recurse, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_ls (out IntPtr dirents, string path_or_url, ref Rev revision, [MarshalAs (UnmanagedType.Bool)] bool recurse, IntPtr ctx, IntPtr pool);
public override IntPtr client_cat2 (IntPtr stream, string path_or_url, ref Rev peg_revision, ref Rev revision, IntPtr ctx, IntPtr pool) { return svn_client_cat2 (stream, path_or_url, ref peg_revision, ref revision, ctx, pool); }
[DllImport(svnclientlib)] static extern IntPtr svn_client_status (IntPtr result_rev, string path, ref Rev revision, svn_wc_status_func_t status_func, IntPtr status_baton, int descend, int get_all, int update, int no_ignore, IntPtr ctx, IntPtr pool);
[DllImport(svnclientlib)] static extern IntPtr svn_client_blame(string path, ref Rev rev_start, ref Rev rev_end, svn_client_blame_receiver_t receiver, IntPtr baton, IntPtr ctx, IntPtr pool);
public override IntPtr client_update (svn_revnum_t result_rev, string path, ref Rev revision, bool recurse, IntPtr ctx, IntPtr pool) { return svn_client_update (result_rev, path, ref revision, recurse, ctx, pool); }