示例#1
0
        private string GetAffectedPaths(RepositoryItemNodeKind nodeKind, string separator)
        {
            if (this.repoChangeInfo == null)
            {
                return(String.Empty);
            }

            var stringBuilder = new StringBuilder();

            foreach (var item in this.repoChangeInfo.AffectedItems)
            {
                // files that are not related to a repository action were parsed from merge information and contain the original file that wasn't actually changed by the commit
                if (item.Action == RepositoryItemAction.None)
                {
                    continue;
                }

                if ((nodeKind == RepositoryItemNodeKind.Unknown) ||
                    (item.NodeKind == nodeKind))
                {
                    if (stringBuilder.Length > 0)
                    {
                        stringBuilder.Append(separator);
                    }

                    stringBuilder.Append(item.Path);
                }
            }

            return(stringBuilder.ToString());
        }
 public SvnLookRepoAffectedItem(RepositoryItemAction action, RepositoryItemNodeKind nodeKind, string path)
 {
     this.Action   = action;
     this.NodeKind = nodeKind;
     this.Path     = path;
 }
示例#3
0
        private string GetAffectedPaths(RepositoryItemNodeKind nodeKind, string separator)
        {
            if (this.repoChangeInfo == null)
              {
            return String.Empty;
              }

              var stringBuilder = new StringBuilder();
              foreach (var item in this.repoChangeInfo.AffectedItems)
              {
            if ((nodeKind == RepositoryItemNodeKind.Unknown)
              || (item.NodeKind == nodeKind))
            {
              if (stringBuilder.Length > 0)
              {
            stringBuilder.Append(separator);
              }

              stringBuilder.Append(item.Path);
            }
              }

              return stringBuilder.ToString();
        }