コード例 #1
0
        public static SvnStringPathStatus[] GetStatus(FilePath svnExecutableFilePath, AbsolutePath path, ILogger logger)
        {
            var statusXmlType = SvnCommandServicesProvider.GetStatusXmlType(svnExecutableFilePath, path, logger);

            var output = statusXmlType.target
                         .Where(x => x.entry != null)
                         .SelectMany(x => x.entry)
                         .Select(x => new SvnStringPathStatus {
                Path = x.path, ItemStatus = x.wcstatus.item.ToItemStatus()
            })
                         .ToArray();

            return(output);
        }