Inheritance: ITreeEntry
Exemple #1
0
 private bool Compare(TfsTreeEntry tfsTreeEntry, GitTreeEntry gitTreeEntry)
 {
     var different = false;
     if (tfsTreeEntry.FullName.Replace("/",@"\") != gitTreeEntry.FullName)
     {
         _stdout.WriteLine("Name case mismatch:");
         _stdout.WriteLine("  TFS: " + tfsTreeEntry.FullName);
         _stdout.WriteLine("  git: " + gitTreeEntry.FullName);
         different = true;
     }
     if(Hash(tfsTreeEntry) != Hash(gitTreeEntry))
     {
         _stdout.WriteLine(gitTreeEntry.FullName + " differs.");
         different = true;
     }
     return different;
 }
Exemple #2
0
 private bool Compare(TfsTreeEntry tfsTreeEntry, GitTreeEntry gitTreeEntry, bool ignorePathCaseMismatch)
 {
     var different = false;
     if (!ignorePathCaseMismatch && tfsTreeEntry.FullName.Replace("/", @"\") != gitTreeEntry.FullName)
     {
         Trace.TraceInformation("Name case mismatch:");
         Trace.TraceInformation("  TFS: " + tfsTreeEntry.FullName);
         Trace.TraceInformation("  git: " + gitTreeEntry.FullName);
         different = true;
     }
     if (Hash(tfsTreeEntry) != Hash(gitTreeEntry))
     {
         Trace.TraceInformation(gitTreeEntry.FullName + " differs.");
         different = true;
     }
     return different;
 }