public void OnClientProcessing(object sender, SvnProcessingEventArgs e) { SvnCommandType type = e.CommandType; _start = DateTime.UtcNow; _curBuck = 0; for (int i = 0; i < _buckets.Length; i++) { _buckets[i] = 0; } Enqueue(delegate() { lock (_instanceLock) { _progressCalc.Clear(); } ListViewItem item = new ListViewItem("Action"); item.SubItems.Add(type.ToString()); item.ForeColor = Color.Gray; if (actionList.Items.Count == 1 && _toAdd.Count == 0) { actionList.Items.Clear(); } actionList.Items.Add(item); }); }
internal SvnCommittingEventArgs(apr_array_header_t commitItems, SvnCommandType commandType, AprPool pool) { if (commitItems == null) { throw new ArgumentNullException(nameof(commitItems)); } if (pool == null) { throw new ArgumentNullException(nameof(pool)); } _commitItems = commitItems; _pool = pool; CurrentCommandType = commandType; }
internal SvnNotifyEventArgs(svn_wc_notify_t notify, SvnCommandType commandType, AprPool pool) { _notify = notify ?? throw new ArgumentNullException(nameof(notify)); _pool = pool ?? throw new ArgumentNullException(nameof(pool)); Action = (SvnNotifyAction)notify.action; NodeKind = (SvnNodeKind)notify.kind; ContentState = (SvnNotifyState)notify.content_state; PropertyState = (SvnNotifyState)notify.prop_state; LockState = (SvnLockState)notify.lock_state; Revision = notify.revision; OldRevision = notify.old_revision; _hunkOriginalStart = notify.hunk_original_start; _hunkOriginalLength = notify.hunk_original_length; _hunkModifiedStart = notify.hunk_modified_start; _hunkModifiedLength = notify.hunk_modified_length; _hunkMatchedLine = notify.hunk_matched_line; _hunkFuzz = notify.hunk_fuzz; CommandType = commandType; }
internal SvnProcessingEventArgs(SvnCommandType commandType) { CommandType = commandType; }