Example #1
0
        void MakeDirVersioned(string dir, IProgressMonitor monitor)
        {
            if (Directory.Exists(SubversionBackend.GetDirectoryDotSvn(VersionControlSystem, dir)))
            {
                return;
            }

            // Make the parent versioned
            string parentDir = Path.GetDirectoryName(dir);

            if (parentDir == dir || parentDir == "")
            {
                throw new InvalidOperationException("Could not create versioned directory.");
            }
            MakeDirVersioned(parentDir, monitor);

            Add(dir, false, monitor);
        }