Beispiel #1
0
        static void Test5()
        {
            var client = new SvnClient();
            {
                List <string> modules;
                var           rootUrl = "file:///D:/Work/svn/BIST/repo/installs";
                if (RepoScanner.ScanModules(client, rootUrl, out modules))
                {
                }
            }

            {
                List <string> installs;
                var           rootUrl = "file:///D:/Work/svn/BIST/repo/releases";
                if (RepoScanner.ScanInstalls(client, rootUrl, out installs))
                {
                }
            }
        }
Beispiel #2
0
        public void ReloadInstalls(string valueToSelect = null)
        {
            if (String.IsNullOrEmpty(valueToSelect))
            {
                valueToSelect = Install;
            }


            List <string> installs;

            RepoScanner.ScanInstalls(
                dBase.svnClient,
                dBase.GetInstallRootUrl(),
                out installs
                );

            Installs.Clear();
            foreach (var i in installs)
            {
                Installs.Add(i);
            }

            // if current module still exists, pick it
            if (!String.IsNullOrEmpty(valueToSelect) && Installs.Contains(valueToSelect))
            {
                InstallIndex = Installs.IndexOf(valueToSelect);
            }
            else if (Installs.Count > 0)
            {
                InstallIndex = 0;
            }
            else
            {
                InstallIndex = -1;
            }
        }