Fossil SCM
When unversioned content is saved, add an entry to the admin log.
Commit
7991defa6f0fa6cdafa8adb9c7e390ab66a8ca5705d298b14176bfee4622d552
Parent
18628904c30c9c5…
1 file changed
+2
+2
| --- src/unversioned.c | ||
| +++ src/unversioned.c | ||
| @@ -147,10 +147,12 @@ | ||
| 147 | 147 | }else{ |
| 148 | 148 | db_bind_int(&ins, ":encoding", 0); |
| 149 | 149 | db_bind_blob(&ins, ":content", pContent); |
| 150 | 150 | } |
| 151 | 151 | db_step(&ins); |
| 152 | + admin_log("Wrote unversioned file \"%w\" with hash %!S", | |
| 153 | + zUVFile, blob_str(&hash)); | |
| 152 | 154 | blob_reset(&compressed); |
| 153 | 155 | blob_reset(&hash); |
| 154 | 156 | db_finalize(&ins); |
| 155 | 157 | db_unset("uv-hash", 0); |
| 156 | 158 | } |
| 157 | 159 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -147,10 +147,12 @@ | |
| 147 | }else{ |
| 148 | db_bind_int(&ins, ":encoding", 0); |
| 149 | db_bind_blob(&ins, ":content", pContent); |
| 150 | } |
| 151 | db_step(&ins); |
| 152 | blob_reset(&compressed); |
| 153 | blob_reset(&hash); |
| 154 | db_finalize(&ins); |
| 155 | db_unset("uv-hash", 0); |
| 156 | } |
| 157 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -147,10 +147,12 @@ | |
| 147 | }else{ |
| 148 | db_bind_int(&ins, ":encoding", 0); |
| 149 | db_bind_blob(&ins, ":content", pContent); |
| 150 | } |
| 151 | db_step(&ins); |
| 152 | admin_log("Wrote unversioned file \"%w\" with hash %!S", |
| 153 | zUVFile, blob_str(&hash)); |
| 154 | blob_reset(&compressed); |
| 155 | blob_reset(&hash); |
| 156 | db_finalize(&ins); |
| 157 | db_unset("uv-hash", 0); |
| 158 | } |
| 159 |