Differences From:
File
src/db.c
part of check-in
[746a0b8588]
- One more minor change to the fix of ff4c, set the current checkout to 1 if this is a brand new file.
by
jnc on
2007-09-23 23:05:42.
[view]
To:
File
src/db.c
part of check-in
[55dc2abc60]
- Some elements moved to correct order in wiki AllowedMarkup array. Removed hardcoded link in resolveHyperlink and also made it handle outside links, such as http, ftp, mailto, etc... When looking for valid HTML codes, I changed isalpha to isalnum so that H1, H2, etc... would be recognized. Better code for setting inital checkout db entry.
by
jnc on
2007-09-24 01:38:45.
[view]
@@ -888,12 +888,12 @@
db_open_local();
db_lset("repository", blob_str(&path));
vid = db_int(0, "SELECT pid FROM plink y"
" WHERE NOT EXISTS(SELECT 1 FROM plink x WHERE x.cid=y.pid)");
- db_lset_int("checkout", vid);
if( vid==0 ){
db_lset_int("checkout", 1);
}else{
+ db_lset_int("checkout", vid);
g.argv = azNewArgv;
g.argc = 3;
update_cmd();
}