File TODO changed (mode: 100644) (index f976f0b..1d0ca38) |
31 |
31 |
[ ] |
[ ] |
32 |
32 |
|
|
33 |
33 |
== BEFORE NEXT RELEASE == |
== BEFORE NEXT RELEASE == |
|
34 |
|
[ ] Add right 'allow bad commit messages'. |
|
35 |
|
[ ] Add a new section in 'Rights' to enforce a regex on the commit message. |
34 |
36 |
[ ] Merge requests are not ok - still using files. |
[ ] Merge requests are not ok - still using files. |
35 |
37 |
But, we also insert entries in database! |
But, we also insert entries in database! |
36 |
38 |
[ ] Need to add comments for merge request. Find a way to propagate them in the |
[ ] Need to add comments for merge request. Find a way to propagate them in the |
File inc/state.inc.php changed (mode: 100644) (index f9f0e17..360640e) |
... |
... |
function rg_state_set($db, $var, $value) |
95 |
95 |
$ret = FALSE; |
$ret = FALSE; |
96 |
96 |
while (1) { |
while (1) { |
97 |
97 |
$params = array("var" => $var, "value" => $value); |
$params = array("var" => $var, "value" => $value); |
98 |
|
if (rg_state_get($db, $var) === FALSE) { |
|
|
98 |
|
$old = rg_state_get($db, $var); |
|
99 |
|
if (strcmp($old, $value) == 0) |
|
100 |
|
return TRUE; |
|
101 |
|
|
|
102 |
|
if ($old === "") { |
99 |
103 |
$sql = "INSERT INTO state (var, value)" |
$sql = "INSERT INTO state (var, value)" |
100 |
104 |
. " VALUES (@@var@@, @@value@@)"; |
. " VALUES (@@var@@, @@value@@)"; |
101 |
105 |
} else { |
} else { |