Esempio n. 1
0
 public IList <ChangeSet> Build(List <ElementVersion> newVersions)
 {
     _flattenChangeSets = _rawHistoryBuilder.Build(newVersions);
     if (_globalBranches != null)
     {
         string existingParent;
         foreach (var branch in _rawHistoryBuilder.GlobalBranches)
         {
             if (_globalBranches.TryGetValue(branch.Key, out existingParent))
             {
                 if (branch.Value != existingParent)
                 {
                     throw new Exception("Inconsistent branch " + branch.Key + " parent : " + branch.Value + " != " + existingParent);
                 }
             }
             else
             {
                 _globalBranches.Add(branch.Key, branch.Value);
             }
         }
     }
     else
     {
         _globalBranches = _rawHistoryBuilder.GlobalBranches;
     }
     _labels = _rawHistoryBuilder.Labels;
     return(ProcessElementNames());
 }