コード例 #1
0
ファイル: SvnStatusInfo.cs プロジェクト: s2quake/JSSoft.Crema
        public static               SvnStatusInfo[] Run(params string[] paths)
        {
            var statusCommand = new SvnCommand("status")
            {
                SvnCommandItem.Xml
            };

            foreach (var item in paths)
            {
                statusCommand.Add((SvnPath)item);
            }
            return(Parse(statusCommand.Run()));
        }
コード例 #2
0
        public static               SvnLogInfo[] GetLogs(string[] paths, string revision)
        {
            var logCommand = new SvnCommand("log")
            {
                SvnCommandItem.FromRevision($"{revision ?? "head"}:1"),
                SvnCommandItem.Xml,
                SvnCommandItem.Verbose,
                SvnCommandItem.FromMaxCount(MaxLogCount),
                SvnCommandItem.WithAllRevprops,
            };

            foreach (var item in paths)
            {
                logCommand.Add((SvnPath)item);
            }
            return(SvnLogInfo.Read(logCommand.Run()));
        }