stable
Clone or download
In order to better control how .SVNAccessFile is managed, we can no longer rely on the historical way to write this file down on the filesystem with BackendSVN because we need to be able to call it from different contexts. Even more important, we change the logic associated to .SVNAccessFile writing. Until now, there were two parts: the so called "DefaultBlock" was supposed to be Project wide because it defines the user groups (that doesn't change from one repository to another in a given project) as well as the default permissions (that doesn't change either because it's defined by project privacy). In the future, the default permission block will change from one repository to another so the write of the whole .SVNAccessFile is now associated to the Repository object it belongs to. Part of: request #31541 svn 1.10+ no longer supports duplicate sections Change-Id: Ia051b233f454fb9c6faaee4b430d5b183916399d
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/svn/include/Events/SystemEvent_SVN_CREATE_REPOSITORY.class.php | +45 | −45 | Go to diff View file |
M | plugins/svn/include/SVN/AccessControl/AccessFileHistoryCreator.php | +13 | −5 | Go to diff View file |
M | plugins/svn/include/SVN/Repository/RepositoryCreator.php | +1 | −10 | Go to diff View file |
M | plugins/svn/include/SVN/Repository/RepositoryManager.php | +10 | −5 | Go to diff View file |
M | plugins/svn/include/svnPlugin.php | +2 | −3 | Go to diff View file |
M | plugins/svn/tests/unit/SVN/AccessFile/AccessFileHistoryCreatorTest.php | +1 | −0 | Go to diff View file |
M | plugins/svn/tests/unit/events/SystemEvent_SVN_CREATE_REPOSITORYTest.php | +49 | −42 | Go to diff View file |
M | src/common/SVNCore/SVNAccessFile.php | +10 | −20 | Go to diff View file |
M | src/common/SVNCore/SVNAccessFileWriter.php | +5 | −2 | Go to diff View file |
M | src/common/backend/BackendSVN.class.php | +23 | −116 | Go to diff View file |
M | tests/unit/common/SVNCore/SVNAccessFileTest.php | +31 | −31 | Go to diff View file |