Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 private static extern void InternalGetRevisionsData_Injected(bool withChanges, int startIndex, int numRevisions, out RevisionsData ret);