Fossil SCM

When unversioned content is saved, add an entry to the admin log.

stephan 2025-07-27 11:58 trunk
Commit 7991defa6f0fa6cdafa8adb9c7e390ab66a8ca5705d298b14176bfee4622d552
1 file changed +2
--- src/unversioned.c
+++ src/unversioned.c
@@ -147,10 +147,12 @@
147147
}else{
148148
db_bind_int(&ins, ":encoding", 0);
149149
db_bind_blob(&ins, ":content", pContent);
150150
}
151151
db_step(&ins);
152
+ admin_log("Wrote unversioned file \"%w\" with hash %!S",
153
+ zUVFile, blob_str(&hash));
152154
blob_reset(&compressed);
153155
blob_reset(&hash);
154156
db_finalize(&ins);
155157
db_unset("uv-hash", 0);
156158
}
157159
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button