public RevisionsResult GetRevisions(int offset, int count) { this.history.Clear(); RevisionsData revisionsData = this.collab.GetRevisionsData(true, offset, count); this.history.Revisions.AddRange(revisionsData.Revisions); this.history.RevisionsInRepo = revisionsData.RevisionsInRepo; this.historyOffset = revisionsData.RevisionOffset; return(this.history); }
private static void OnFetchRevisions(IntPtr nativeData) { RevisionsService service = instance; if (service == null || service.FetchRevisionsCallback == null) { return; } RevisionsResult history = null; if (nativeData != IntPtr.Zero) { RevisionsData data = Collab.PopulateRevisionsData(nativeData); history = new RevisionsResult(); history.Revisions.AddRange(data.Revisions); history.RevisionsInRepo = data.RevisionsInRepo; } service.FetchRevisionsCallback(history); }
private static extern void InternalGetRevisionsData_Injected(bool withChanges, int startIndex, int numRevisions, out RevisionsData ret);