fix sequencing for repo config statements

Without this, complex mirroring scenarios will be unpredictable.  For
example (abbreviating "gitolite.mirror." to "gimo.") something as simple
as this will not give "foo" his different mirror setup

    repo @all
        config gimo.master = "frodo"
        config gimo.slaves = "sam"

    repo foo
        config gimo.master = "sam"
        config gimo.slaves = "frodo gollum"

    repo foo bar
        RW  =   u1

Even worse things happen when you have wild cards.

Now, however, they all come in the right sequence and the most recent
one takes effect (unlike ACL rules, where the first match wins, because
there you're trying to just find a match and get out, while here you're
just mindlessly applying config lines in the right order).
This commit is contained in:
Sitaram Chamarty 2011-08-17 19:46:07 +05:30
parent 442d7ca29c
commit 056459aeda
12 changed files with 31 additions and 18 deletions

View file

@ -1,4 +1,4 @@
$data_version = '1.7';
$data_version = '2.0';
%repos = (
'aa' => {
'R' => {