-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMergeInfo.cs
36 lines (30 loc) · 1.41 KB
/
MergeInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System.Collections.Generic;
namespace GitImporter
{
public class MergeInfo
{
public string From { get; private set; }
public string To { get; private set; }
public Dictionary<ChangeSet, ChangeSet> Merges { get; private set; }
public Dictionary<ElementVersion, ChangeSet> MissingFromVersions { get; private set; }
public Dictionary<ChangeSet, HashSet<ElementVersion>> MissingToVersionsByChangeSet { get; private set; }
public Dictionary<ElementVersion, ChangeSet> MissingToVersions { get; private set; }
public HashSet<ElementVersion> SeenFromVersions { get; private set; }
public HashSet<ElementVersion> SeenToVersions { get; private set; }
public MergeInfo(string from, string to)
{
From = from;
To = to;
Merges = new Dictionary<ChangeSet, ChangeSet>();
MissingFromVersions = new Dictionary<ElementVersion, ChangeSet>();
MissingToVersionsByChangeSet = new Dictionary<ChangeSet, HashSet<ElementVersion>>();
MissingToVersions = new Dictionary<ElementVersion, ChangeSet>();
SeenFromVersions = new HashSet<ElementVersion>();
SeenToVersions = new HashSet<ElementVersion>();
}
public override string ToString()
{
return "Merges from " + From + " to " + To;
}
}
}