private static List<RevisionEntryInfo> SvnChangeItemCollectionToArrayOfRevisionEntryInfo(
			ICollection<SvnChangeItem> collection)
		{
			if (collection == null)
			{
				return null;
			}

			var revisionEntryInfoList = new List<RevisionEntryInfo>(collection.Count);

			foreach (var info in collection)
			{
				var item = new RevisionEntryInfo {Path = info.Path, Action = SvnChangeActionToFileActionEnum(info.Action)};
				revisionEntryInfoList.Add(item);
			}

			return revisionEntryInfoList;
		}
        private static RevisionEntryInfo ConvertToRevisionEntryInfo(DiffEntry difference)
        {
            var path = Path(difference);
            var revisionEntryInfo = new RevisionEntryInfo {Path = path, Action = GetAction(difference.GetChangeType())};

            return revisionEntryInfo;
        }
Example #3
0
 public RevisionInfo()
 {
     Entries = new RevisionEntryInfo[] {};
     Time    = DateTime.Now;
     Comment = string.Empty;
 }
		public RevisionInfo()
		{
			Entries = new RevisionEntryInfo[] {};
			Time = DateTime.Now;
			Comment = string.Empty;
		}