private bool DeleteUser()
        {
            var repoConfig = new SVNRepoConfig(_RepositoryPath);

            string userFile = repoConfig.UserDatabaseFileName;

            bool result = DeleteUser(userFile);

            return(result);
        }
        private void ProcessRepoConfig(string pathToGlobalConfig, DirectoryInfo RepoDir)
        {
            var globalConfigDir  = new FileInfo(pathToGlobalConfig);
            var globalRepoConfig = new SVNRepoConfig(globalConfigDir, RepoDir.FullName);
            var currRepo         = new SVNRepository(globalRepoConfig, _serverConfiguration.CommandRootDirectory);

            currRepo.Name     = RepoDir.Name;
            currRepo.FullPath = RepoDir.FullName;

            _repositoryCollection.Add(currRepo);
        }
        private void ProcessRepoConfig(string pathToGlobalConfig, FileSystemInfo RepoDir)
        {
            var globalConfigDir  = new FileInfo(pathToGlobalConfig);
            var globalRepoConfig = new SVNRepoConfig(globalConfigDir, RepoDir.FullName);
            var currRepo         = new SvnServeRepository(globalRepoConfig, _serverConfiguration.CommandRootDirectory)
            {
                Name     = RepoDir.Name,
                FullPath = RepoDir.FullName,
                IsUsingGlobalConfigFile = true
            };

            _repositoryCollection.Add(currRepo);
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SvnServeRepository"/> class.
        /// </summary>
        public SvnServeRepository(SVNRepoConfig RepositoryConfiguration, string ServerCommandPath)
        {
            _serverCommandsPath      = ServerCommandPath;
            _repositoryConfiguration = RepositoryConfiguration;
            this.UsersLoaded         = false;

            Groups = new List <SVNAuthorizationGroup>();

            if (_repositoryConfiguration.AuthorizationRulesFile != null)
            {
                if (_repositoryConfiguration.AuthorizationRulesFile != string.Empty)
                {
                    LoadAuthorizationDatabase();
                }
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SVNRepository"/> class.
        /// </summary>
        public SVNRepository(SVNRepoConfig RepositoryConfiguration, string ServerCommandPath)
        {
            _serverCommandsPath      = ServerCommandPath;
            _repositoryConfiguration = RepositoryConfiguration;
            _usersLoaded             = false;

            //LoadConfig( RepositoryConfiguration.RepositoryRootDirectory );

            //GetUsers( RepositoryConfiguration.UserDatabaseFileName );

            //_files = Common.GetFileList( RepositoryConfiguration.RepositoryRootDirectory, ServerCommandPath );

            //LoadFileEntities();

            //_repoHooks = new RepositoryHooks( _repositoryConfiguration.RepositoryRootDirectory );
        }
Example #6
0
 protected void LoadConfig(string repositoryPath)
 {
     _repositoryConfiguration = new SVNRepoConfig(repositoryPath);
 }
 private void LoadConfig(string RepositoryPath)
 {
     _repositoryConfiguration = new SVNRepoConfig(RepositoryPath);
 }