6e2db12302
This should hopefully be the final step in making wildrepos as close to normal repos as possible. You can now do pretty much anything with them that you can do with normal repos [1] Implementation notes: - compile puts out %groups into the compiled config file regardless of GL_BIG_CONFIG because this feature needs it - wild_repo_rights caches %groups because the part of the %groups hash we care about will not change between calls in the same run ---- [1] **except** use the full-blown config file syntax within the gl-perms file :-) I don't plan to do that; it's too complicated! [2] [2] yeah yeah I know -- famous last words!
106 lines
1.2 KiB
Plaintext
106 lines
1.2 KiB
Plaintext
$data_version = '1.5';
|
|
%repos = (
|
|
'aa' => {
|
|
'R' => {
|
|
'u1' => 1,
|
|
'u2' => 1,
|
|
'u3' => 1
|
|
},
|
|
'W' => {
|
|
'u1' => 1,
|
|
'u2' => 1,
|
|
'u3' => 1
|
|
},
|
|
'u1' => [
|
|
[
|
|
2,
|
|
'refs/.*',
|
|
'RW+'
|
|
]
|
|
],
|
|
'u2' => [
|
|
[
|
|
4,
|
|
'refs/.*',
|
|
'RW'
|
|
]
|
|
],
|
|
'u3' => [
|
|
[
|
|
5,
|
|
'refs/.*',
|
|
'RW'
|
|
]
|
|
]
|
|
},
|
|
'bb' => {
|
|
'R' => {
|
|
'u1' => 1,
|
|
'u2' => 1,
|
|
'u3' => 1
|
|
},
|
|
'W' => {
|
|
'u1' => 1,
|
|
'u2' => 1,
|
|
'u3' => 1
|
|
},
|
|
'u1' => [
|
|
[
|
|
3,
|
|
'refs/.*',
|
|
'RW+'
|
|
]
|
|
],
|
|
'u2' => [
|
|
[
|
|
6,
|
|
'refs/.*',
|
|
'RW'
|
|
]
|
|
],
|
|
'u3' => [
|
|
[
|
|
7,
|
|
'refs/.*',
|
|
'RW'
|
|
]
|
|
]
|
|
},
|
|
'gitolite-admin' => {
|
|
'R' => {
|
|
'tester' => 1
|
|
},
|
|
'W' => {
|
|
'tester' => 1
|
|
},
|
|
'tester' => [
|
|
[
|
|
0,
|
|
'refs/.*',
|
|
'RW+'
|
|
]
|
|
]
|
|
},
|
|
'testing' => {
|
|
'@all' => [
|
|
[
|
|
1,
|
|
'refs/.*',
|
|
'RW+'
|
|
]
|
|
],
|
|
'R' => {
|
|
'@all' => 1
|
|
},
|
|
'W' => {
|
|
'@all' => 1
|
|
}
|
|
}
|
|
);
|
|
%groups = (
|
|
'@g1' => {
|
|
'aa' => 'master',
|
|
'bb' => 'master'
|
|
}
|
|
);
|