Fossil SCM

Fix the "fossil scrub" command so that it deletes syncfrom:URL and link:URL entries from the CONFIG table.

drh 2021-12-21 20:53 trunk
Commit 65dbf97eb8a6e70de332702bdf9b78879fffa396b7c4fb85ba6d01f6e2ab7617
1 file changed +11 -9
+11 -9
--- src/rebuild.c
+++ src/rebuild.c
@@ -919,23 +919,25 @@
919919
db_unprotect(PROTECT_ALL);
920920
db_multi_exec(
921921
"UPDATE user SET pw='';"
922922
"DELETE FROM config WHERE name IN"
923923
"(WITH pattern(x) AS (VALUES"
924
+ " ('baseurl:*'),"
925
+ " ('cert:*'),"
926
+ " ('ckout:*'),"
927
+ " ('draft[1-9]-*'),"
928
+ " ('gitpush:*'),"
929
+ " ('http-auth:*'),"
924930
" ('last-sync-*'),"
925
- " ('sync-*'),"
926
- " ('peer-*'),"
931
+ " ('link:*'),"
927932
" ('login-group-*'),"
933
+ " ('peer-*'),"
928934
" ('skin:*'),"
929935
" ('subrepo:*'),"
930
- " ('http-auth:*'),"
931
- " ('cert:*'),"
932
- " ('syncwith:*'),"
933
- " ('gitpush:*'),"
934
- " ('ckout:*'),"
935
- " ('draft[1-9]-*'),"
936
- " ('baseurl:*')"
936
+ " ('sync-*'),"
937
+ " ('syncfrom:*'),"
938
+ " ('syncwith:*')"
937939
") SELECT name FROM config, pattern WHERE name GLOB x);"
938940
);
939941
if( bVerily ){
940942
db_multi_exec(
941943
"DELETE FROM concealed;\n"
942944
--- src/rebuild.c
+++ src/rebuild.c
@@ -919,23 +919,25 @@
919 db_unprotect(PROTECT_ALL);
920 db_multi_exec(
921 "UPDATE user SET pw='';"
922 "DELETE FROM config WHERE name IN"
923 "(WITH pattern(x) AS (VALUES"
 
 
 
 
 
 
924 " ('last-sync-*'),"
925 " ('sync-*'),"
926 " ('peer-*'),"
927 " ('login-group-*'),"
 
928 " ('skin:*'),"
929 " ('subrepo:*'),"
930 " ('http-auth:*'),"
931 " ('cert:*'),"
932 " ('syncwith:*'),"
933 " ('gitpush:*'),"
934 " ('ckout:*'),"
935 " ('draft[1-9]-*'),"
936 " ('baseurl:*')"
937 ") SELECT name FROM config, pattern WHERE name GLOB x);"
938 );
939 if( bVerily ){
940 db_multi_exec(
941 "DELETE FROM concealed;\n"
942
--- src/rebuild.c
+++ src/rebuild.c
@@ -919,23 +919,25 @@
919 db_unprotect(PROTECT_ALL);
920 db_multi_exec(
921 "UPDATE user SET pw='';"
922 "DELETE FROM config WHERE name IN"
923 "(WITH pattern(x) AS (VALUES"
924 " ('baseurl:*'),"
925 " ('cert:*'),"
926 " ('ckout:*'),"
927 " ('draft[1-9]-*'),"
928 " ('gitpush:*'),"
929 " ('http-auth:*'),"
930 " ('last-sync-*'),"
931 " ('link:*'),"
 
932 " ('login-group-*'),"
933 " ('peer-*'),"
934 " ('skin:*'),"
935 " ('subrepo:*'),"
936 " ('sync-*'),"
937 " ('syncfrom:*'),"
938 " ('syncwith:*')"
 
 
 
 
939 ") SELECT name FROM config, pattern WHERE name GLOB x);"
940 );
941 if( bVerily ){
942 db_multi_exec(
943 "DELETE FROM concealed;\n"
944

Keyboard Shortcuts

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