stable

Clone or download

Read-only

Save more comprehensive Git logs in project history

This is part of story #8425 comprehensive git permissions changes log This commit modifies how project history logs are saved. For the actions currently saved (new repo, update repo and fork), we use the new format. Instead of having one line in project history by visibility (READ, WRITE and REWIND), we have now only on log with a more detailled message. Fine grained permissions are not taken into account for now. Change-Id: Ie87f25f9ecd8d25807a27a3d7a5b45fa01138e9e

Modified Files

Name
M plugins/git/include/Git.class.php +11 −2 Go to diff View file
A plugins/git/include/Git/Permissions/HistoryValueFormatter.php +179 −0 Go to diff View file
M plugins/git/include/GitActions.class.php +23 −1 Go to diff View file
M plugins/git/include/GitPermissionsManager.class.php +24 −2 Go to diff View file
M plugins/git/include/GitRepositoryManager.class.php +23 −1 Go to diff View file
M plugins/git/include/Git_Backend_Gitolite.class.php +6 −1 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +8 −1 Go to diff View file
M plugins/git/include/autoload.php +3 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +17 −3 Go to diff View file
A plugins/git/tests/Git/Permissions/HistoryValueFormatterTest.php +142 −0 Go to diff View file
M plugins/git/tests/GitActionsTest.php +8 −4 Go to diff View file
M plugins/git/tests/GitPermissionsManagerTest.php +3 −1 Go to diff View file
M plugins/git/tests/GitRepositoryManagerTest.php +12 −4 Go to diff View file
M plugins/git/tests/GitTest.php +2 −1 Go to diff View file
M plugins/git/tests/GitXmlImporterTest.php +3 −1 Go to diff View file
M plugins/git/tests/rest/GitDataBuilder.php +6 −1 Go to diff View file
M src/common/permission/PermissionsManager.class.php +15 −1 Go to diff View file