Exemplo n.º 1
0
        private static void UpdateSvnDirectories(Dictionary <ParameterName, string> parameters)
        {
            CheckDirectoryExistence(parameters[ParameterName.RootDir], "root");

            var tortoiseHandler = new TortoiseHandler();

            if (!tortoiseHandler.IsInRegistry())
            {
                throw new InvalidOperationException("TortoiseSVN wasn't found.");
            }

            var svnDirectories = new DirectoryInfo(parameters[ParameterName.RootDir])
                                 .GetDirectories()
                                 .FindFirstLevelContaining(FolderToSearch);

            tortoiseHandler.Update(svnDirectories);
        }
Exemplo n.º 2
0
        private static void UpdateSvnDirectories(Dictionary<ParameterName, string> parameters)
        {
            CheckDirectoryExistence(parameters[ParameterName.RootDir], "root");

            var tortoiseHandler = new TortoiseHandler();
            if (!tortoiseHandler.IsInRegistry())
                throw new InvalidOperationException("TortoiseSVN wasn't found.");

            var svnDirectories = new DirectoryInfo(parameters[ParameterName.RootDir])
                .GetDirectories()
                .FindFirstLevelContaining(FolderToSearch);

            tortoiseHandler.Update(svnDirectories);
        }