Beispiel #1
0
 private static bool HasLocalChanges(Workspace workspace, string targetPath)
 {
     return workspace.GetPendingChangesEnumerable(targetPath, RecursionType.Full).Any();
 }
 private static List<PendingChange> GetPendingChanges(string target, Workspace workspace)
 {
     var allPendingChanges = workspace.GetPendingChangesEnumerable(target, RecursionType.Full);
     var targetPendingChanges = allPendingChanges
         .Where(p => p.IsMerge && p.ServerItem.Contains(target))
         .ToList();
     return targetPendingChanges;
 }