Differences From:
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]
To:
File
src/db.c
part of check-in
[c82fb61775]
- Added support for a user defined diff command, which if set (fossil config diff-command), is run by default. The user can give a -i flag to run the internal diff command regardless of user defined diff command setting. Removed command tkdiff, no longer needed. Made the config remove message a bit more clear, when removing a config setting, it states it has been removed instead of telling you it's undefined.
by
jnc on
2007-09-24 06:53:46.
[view]
@@ -922,9 +922,9 @@
int i;
db_begin_transaction();
for(i=2; i<g.argc; i++){
char *zName, *zValue;
- int j;
+ int j, removed=0;
zName = mprintf("%s", g.argv[i]);
for(j=0; zName[j] && zName[j]!='='; j++){}
if( zName[j] ){
@@ -933,15 +933,20 @@
if( zValue[0] ){
db_global_set(zName, zValue);
}else{
db_multi_exec("DELETE FROM global_config WHERE name=%Q", zName);
+ removed=1;
}
}
zValue = db_global_get(zName, 0);
if( zValue ){
printf("%s=%s\n", zName, zValue);
}else{
- printf("%s is undefined\n", zName);
+ if( removed==1 ){
+ printf("%s has been removed from configuration\n", zName);
+ }else{
+ printf("%s is undefined\n", zName);
+ }
}
}
db_end_transaction(0);
}else{