mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Add the 1.5 branch to populatedb. Also convert the branch detection to use real regexps instead of LIKE for matches. This work will continue with real regexps used for the other detected fields shortly.
This commit is contained in:
parent
160a72c236
commit
4fd2c7e140
@ -39,14 +39,14 @@ Litmus::DB::Platform->set_sql(detectplatform => qq{
|
||||
SELECT __ESSENTIAL__
|
||||
FROM __TABLE__
|
||||
WHERE
|
||||
? LIKE detect_regexp AND
|
||||
? REGEXP detect_regexp AND
|
||||
product LIKE ?
|
||||
});
|
||||
Litmus::DB::Branch->set_sql(detectbranch => qq{
|
||||
SELECT __ESSENTIAL__
|
||||
FROM __TABLE__
|
||||
WHERE
|
||||
? LIKE detect_regexp AND
|
||||
? REGEXP detect_regexp AND
|
||||
product LIKE ?
|
||||
});
|
||||
|
||||
|
@ -65,18 +65,21 @@ $products{"thunderbird"} = Litmus::DB::Product->find_or_create({name => "Thunder
|
||||
# branches
|
||||
Litmus::DB::Branch->find_or_create({product => $products{"firefox"},
|
||||
name => "Trunk",
|
||||
detect_regexp => "%Firefox/1.0+%"});
|
||||
detect_regexp => "Firefox/1\\.6a1"});
|
||||
Litmus::DB::Branch->find_or_create({product => $products{"firefox"},
|
||||
name => "1.5 Branch",
|
||||
detect_regexp => "Firefox/1\.(0\\+|4)"});
|
||||
Litmus::DB::Branch->find_or_create({product => $products{"firefox"},
|
||||
name => "1.0.x Branch",
|
||||
detect_regexp => "%Firefox/1.0.%"});
|
||||
detect_regexp => "Firefox/1\\.0\\."});
|
||||
|
||||
Litmus::DB::Branch->find_or_create({product => $products{"seamonkey"},
|
||||
name => "Trunk",
|
||||
detect_regexp => "%"});
|
||||
detect_regexp => "."});
|
||||
|
||||
Litmus::DB::Branch->find_or_create({product => $products{"thunderbird"},
|
||||
name => "Trunk",
|
||||
detect_regexp => "%"});
|
||||
detect_regexp => "."});
|
||||
Litmus::DB::Branch->find_or_create({product => $products{"thunderbird"},
|
||||
name => "1.0.x Branch"},
|
||||
detect_regexp => "");
|
||||
|
Loading…
Reference in New Issue
Block a user