Exemplo n.º 1
0
        public static void ReadProcessOutput(SvnFolderProcess sfp)
        {
            while (!sfp.process.StandardOutput.EndOfStream)
            {
                var line = sfp.process.StandardOutput.ReadLine();
                sfp.processOutput.Add(line);
                if (sfp.isUpdateCommand && (line.Length > 1))
                {
                    if (line.StartsWith("C ") || line.StartsWith("svn"))
                    {
                        sfp.updateError = true;
                    }

                    else if (line.StartsWith("Skipped "))
                    {
                        sfp.updateError = true;
                    }
                }
            }

            while (!sfp.process.StandardError.EndOfStream)
            {
                sfp.processOutput.Add(sfp.process.StandardError.ReadLine());
                if (sfp.isUpdateCommand)
                {
                    sfp.updateError = true;
                }
            }
        }
Exemplo n.º 2
0
        public UpdateLogForm(SvnFolderProcess sfp)
        {
            if (!sfp.isUpdateCommand)
            {
                throw new ApplicationException();
            }
            folderProcess = sfp;

            InitializeComponent();

            FillList();
            PlaySound();
        }