Exemplo n.º 1
0
 private static BranchInfo MapToBranchInfo(SvnListEventArgs svnItem)
 {
     //Collection<SvnLogEventArgs> logItems;
     //var svnLogArgs = new SvnLogArgs {Limit = 3};
     //_client.GetLog(svnItem.EntryUri, svnLogArgs, out logItems);
     var branchInfo = new BranchInfo
         {
             Name = svnItem.Path,
             LastRevision =
                 new RevisionInfo
                     {
                         Author = svnItem.Entry.Author,
                         Created = svnItem.Entry.Time,
                         Revision = svnItem.Entry.Revision
                     },
             //LastRevisions = logItems.Select(MapToRevisionInfo)
         };
     return branchInfo;
 }
Exemplo n.º 2
0
 private static bool BranchHasBeenMerged(MergeInfo mergeInfo, BranchInfo branch)
 {
     return mergeInfo.BranchName == branch.Name &&
            mergeInfo.LastRevision == branch.LastRevision.Revision;
 }