Fossil SCM
Rename "unicode-glob" setting to "encoding-glob". Mention the existance of the *-glob settings in the "fossil commit" warnings. Alphabetize the settings list.
Commit
7d237c49f3a221378544bb852c729000da6b93ef
Parent
c5ed222748d861a…
4 files changed
+18
-12
+1
-1
+11
-10
+11
-10
+18
-12
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -895,11 +895,11 @@ | ||
| 895 | 895 | */ |
| 896 | 896 | static int commit_warning( |
| 897 | 897 | Blob *p, /* The content of the file being committed. */ |
| 898 | 898 | int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */ |
| 899 | 899 | int binOk, /* Non-zero if binary warnings should be disabled. */ |
| 900 | - int unicodeOk, /* Non-zero if unicode warnings should be disabled. */ | |
| 900 | + int encodingOk, /* Non-zero if encoding warnings should be disabled. */ | |
| 901 | 901 | const char *zFilename /* The full name of the file being committed. */ |
| 902 | 902 | ){ |
| 903 | 903 | int eType; /* return value of looks_like_utf8/utf16() */ |
| 904 | 904 | int fUnicode; /* return value of starts_with_utf16_bom() */ |
| 905 | 905 | char *zMsg; /* Warning message */ |
| @@ -909,44 +909,50 @@ | ||
| 909 | 909 | if( allOk ) return 0; |
| 910 | 910 | fUnicode = starts_with_utf16_bom(p, 0); |
| 911 | 911 | eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p); |
| 912 | 912 | if( eType==0 || eType==-1 || fUnicode ){ |
| 913 | 913 | const char *zWarning; |
| 914 | + const char *zDisable; | |
| 914 | 915 | const char *zConvert = "c=convert/"; |
| 915 | 916 | Blob ans; |
| 916 | 917 | char cReply; |
| 917 | 918 | |
| 918 | 919 | if( eType==-1 && fUnicode ){ |
| 919 | - if ( crnlOk && unicodeOk ){ | |
| 920 | - return 0; /* We don't want Unicode/CR/NL warnings for this file. */ | |
| 920 | + if ( crnlOk && encodingOk ){ | |
| 921 | + return 0; /* We don't want CR/NL and Unicode warnings for this file. */ | |
| 921 | 922 | } |
| 922 | - zWarning = "Unicode and CR/NL line endings"; | |
| 923 | + zWarning = "CR/NL line endings and Unicode"; | |
| 924 | + zDisable = "\"crnl-glob\" and \"encoding-glob\" settings"; | |
| 923 | 925 | }else if( eType==-1 ){ |
| 924 | 926 | if( crnlOk ){ |
| 925 | 927 | return 0; /* We don't want CR/NL warnings for this file. */ |
| 926 | 928 | } |
| 927 | 929 | zWarning = "CR/NL line endings"; |
| 930 | + zDisable = "\"crnl-glob\" setting"; | |
| 928 | 931 | }else if( eType==0 ){ |
| 929 | 932 | if( binOk ){ |
| 930 | 933 | return 0; /* We don't want binary warnings for this file. */ |
| 931 | 934 | } |
| 932 | 935 | zWarning = "binary data"; |
| 936 | + zDisable = "\"binary-glob\" setting"; | |
| 933 | 937 | zConvert = ""; /* We cannot convert binary files. */ |
| 934 | 938 | }else{ |
| 935 | - if ( unicodeOk ){ | |
| 936 | - return 0; /* We don't want unicode warnings for this file. */ | |
| 939 | + if ( encodingOk ){ | |
| 940 | + return 0; /* We don't want encoding warnings for this file. */ | |
| 937 | 941 | } |
| 938 | 942 | zWarning = "Unicode"; |
| 943 | + zDisable = "\"encoding-glob\" setting"; | |
| 939 | 944 | #ifndef _WIN32 |
| 940 | 945 | zConvert = ""; /* On Unix, we cannot easily convert Unicode files. */ |
| 941 | 946 | #endif |
| 942 | 947 | } |
| 943 | 948 | file_relative_name(zFilename, &fname, 0); |
| 944 | 949 | blob_zero(&ans); |
| 945 | 950 | zMsg = mprintf( |
| 946 | - "%s contains %s. commit anyhow (a=all/%sy/N)? ", | |
| 947 | - blob_str(&fname), zWarning, zConvert); | |
| 951 | + "%s contains %s. Use --no-warnings or the %s to disable this warning.\n" | |
| 952 | + "Commit anyhow (a=all/%sy/N)? ", | |
| 953 | + blob_str(&fname), zWarning, zDisable, zConvert); | |
| 948 | 954 | prompt_user(zMsg, &ans); |
| 949 | 955 | fossil_free(zMsg); |
| 950 | 956 | cReply = blob_str(&ans)[0]; |
| 951 | 957 | if( cReply=='a' || cReply=='A' ){ |
| 952 | 958 | allOk = 1; |
| @@ -1314,25 +1320,25 @@ | ||
| 1314 | 1320 | "SELECT id, %Q || pathname, mrid, %s, chnged, %s, %s FROM vfile " |
| 1315 | 1321 | "WHERE chnged==1 AND NOT deleted AND is_selected(id)", |
| 1316 | 1322 | g.zLocalRoot, |
| 1317 | 1323 | glob_expr("pathname", db_get("crnl-glob","")), |
| 1318 | 1324 | glob_expr("pathname", db_get("binary-glob","")), |
| 1319 | - glob_expr("pathname", db_get("unicode-glob","")) | |
| 1325 | + glob_expr("pathname", db_get("encoding-glob","")) | |
| 1320 | 1326 | ); |
| 1321 | 1327 | while( db_step(&q)==SQLITE_ROW ){ |
| 1322 | 1328 | int id, rid; |
| 1323 | 1329 | const char *zFullname; |
| 1324 | 1330 | Blob content; |
| 1325 | - int crnlOk, binOk, unicodeOk, chnged; | |
| 1331 | + int crnlOk, binOk, encodingOk, chnged; | |
| 1326 | 1332 | |
| 1327 | 1333 | id = db_column_int(&q, 0); |
| 1328 | 1334 | zFullname = db_column_text(&q, 1); |
| 1329 | 1335 | rid = db_column_int(&q, 2); |
| 1330 | 1336 | crnlOk = db_column_int(&q, 3); |
| 1331 | 1337 | chnged = db_column_int(&q, 4); |
| 1332 | 1338 | binOk = db_column_int(&q, 5); |
| 1333 | - unicodeOk = db_column_int(&q, 6); | |
| 1339 | + encodingOk = db_column_int(&q, 6); | |
| 1334 | 1340 | |
| 1335 | 1341 | blob_zero(&content); |
| 1336 | 1342 | if( file_wd_islink(zFullname) ){ |
| 1337 | 1343 | /* Instead of file content, put link destination path */ |
| 1338 | 1344 | blob_read_link(&content, zFullname); |
| @@ -1340,11 +1346,11 @@ | ||
| 1340 | 1346 | blob_read_from_file(&content, zFullname); |
| 1341 | 1347 | } |
| 1342 | 1348 | /* Do not emit any warnings when they are disabled. */ |
| 1343 | 1349 | if( !noWarningFlag ){ |
| 1344 | 1350 | abortCommit |= commit_warning(&content, crnlOk, binOk, |
| 1345 | - unicodeOk, zFullname); | |
| 1351 | + encodingOk, zFullname); | |
| 1346 | 1352 | } |
| 1347 | 1353 | if( chnged==1 && contains_merge_marker(&content) ){ |
| 1348 | 1354 | Blob fname; /* Relative pathname of the file */ |
| 1349 | 1355 | |
| 1350 | 1356 | nConflict++; |
| 1351 | 1357 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -895,11 +895,11 @@ | |
| 895 | */ |
| 896 | static int commit_warning( |
| 897 | Blob *p, /* The content of the file being committed. */ |
| 898 | int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */ |
| 899 | int binOk, /* Non-zero if binary warnings should be disabled. */ |
| 900 | int unicodeOk, /* Non-zero if unicode warnings should be disabled. */ |
| 901 | const char *zFilename /* The full name of the file being committed. */ |
| 902 | ){ |
| 903 | int eType; /* return value of looks_like_utf8/utf16() */ |
| 904 | int fUnicode; /* return value of starts_with_utf16_bom() */ |
| 905 | char *zMsg; /* Warning message */ |
| @@ -909,44 +909,50 @@ | |
| 909 | if( allOk ) return 0; |
| 910 | fUnicode = starts_with_utf16_bom(p, 0); |
| 911 | eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p); |
| 912 | if( eType==0 || eType==-1 || fUnicode ){ |
| 913 | const char *zWarning; |
| 914 | const char *zConvert = "c=convert/"; |
| 915 | Blob ans; |
| 916 | char cReply; |
| 917 | |
| 918 | if( eType==-1 && fUnicode ){ |
| 919 | if ( crnlOk && unicodeOk ){ |
| 920 | return 0; /* We don't want Unicode/CR/NL warnings for this file. */ |
| 921 | } |
| 922 | zWarning = "Unicode and CR/NL line endings"; |
| 923 | }else if( eType==-1 ){ |
| 924 | if( crnlOk ){ |
| 925 | return 0; /* We don't want CR/NL warnings for this file. */ |
| 926 | } |
| 927 | zWarning = "CR/NL line endings"; |
| 928 | }else if( eType==0 ){ |
| 929 | if( binOk ){ |
| 930 | return 0; /* We don't want binary warnings for this file. */ |
| 931 | } |
| 932 | zWarning = "binary data"; |
| 933 | zConvert = ""; /* We cannot convert binary files. */ |
| 934 | }else{ |
| 935 | if ( unicodeOk ){ |
| 936 | return 0; /* We don't want unicode warnings for this file. */ |
| 937 | } |
| 938 | zWarning = "Unicode"; |
| 939 | #ifndef _WIN32 |
| 940 | zConvert = ""; /* On Unix, we cannot easily convert Unicode files. */ |
| 941 | #endif |
| 942 | } |
| 943 | file_relative_name(zFilename, &fname, 0); |
| 944 | blob_zero(&ans); |
| 945 | zMsg = mprintf( |
| 946 | "%s contains %s. commit anyhow (a=all/%sy/N)? ", |
| 947 | blob_str(&fname), zWarning, zConvert); |
| 948 | prompt_user(zMsg, &ans); |
| 949 | fossil_free(zMsg); |
| 950 | cReply = blob_str(&ans)[0]; |
| 951 | if( cReply=='a' || cReply=='A' ){ |
| 952 | allOk = 1; |
| @@ -1314,25 +1320,25 @@ | |
| 1314 | "SELECT id, %Q || pathname, mrid, %s, chnged, %s, %s FROM vfile " |
| 1315 | "WHERE chnged==1 AND NOT deleted AND is_selected(id)", |
| 1316 | g.zLocalRoot, |
| 1317 | glob_expr("pathname", db_get("crnl-glob","")), |
| 1318 | glob_expr("pathname", db_get("binary-glob","")), |
| 1319 | glob_expr("pathname", db_get("unicode-glob","")) |
| 1320 | ); |
| 1321 | while( db_step(&q)==SQLITE_ROW ){ |
| 1322 | int id, rid; |
| 1323 | const char *zFullname; |
| 1324 | Blob content; |
| 1325 | int crnlOk, binOk, unicodeOk, chnged; |
| 1326 | |
| 1327 | id = db_column_int(&q, 0); |
| 1328 | zFullname = db_column_text(&q, 1); |
| 1329 | rid = db_column_int(&q, 2); |
| 1330 | crnlOk = db_column_int(&q, 3); |
| 1331 | chnged = db_column_int(&q, 4); |
| 1332 | binOk = db_column_int(&q, 5); |
| 1333 | unicodeOk = db_column_int(&q, 6); |
| 1334 | |
| 1335 | blob_zero(&content); |
| 1336 | if( file_wd_islink(zFullname) ){ |
| 1337 | /* Instead of file content, put link destination path */ |
| 1338 | blob_read_link(&content, zFullname); |
| @@ -1340,11 +1346,11 @@ | |
| 1340 | blob_read_from_file(&content, zFullname); |
| 1341 | } |
| 1342 | /* Do not emit any warnings when they are disabled. */ |
| 1343 | if( !noWarningFlag ){ |
| 1344 | abortCommit |= commit_warning(&content, crnlOk, binOk, |
| 1345 | unicodeOk, zFullname); |
| 1346 | } |
| 1347 | if( chnged==1 && contains_merge_marker(&content) ){ |
| 1348 | Blob fname; /* Relative pathname of the file */ |
| 1349 | |
| 1350 | nConflict++; |
| 1351 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -895,11 +895,11 @@ | |
| 895 | */ |
| 896 | static int commit_warning( |
| 897 | Blob *p, /* The content of the file being committed. */ |
| 898 | int crnlOk, /* Non-zero if CR/NL warnings should be disabled. */ |
| 899 | int binOk, /* Non-zero if binary warnings should be disabled. */ |
| 900 | int encodingOk, /* Non-zero if encoding warnings should be disabled. */ |
| 901 | const char *zFilename /* The full name of the file being committed. */ |
| 902 | ){ |
| 903 | int eType; /* return value of looks_like_utf8/utf16() */ |
| 904 | int fUnicode; /* return value of starts_with_utf16_bom() */ |
| 905 | char *zMsg; /* Warning message */ |
| @@ -909,44 +909,50 @@ | |
| 909 | if( allOk ) return 0; |
| 910 | fUnicode = starts_with_utf16_bom(p, 0); |
| 911 | eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p); |
| 912 | if( eType==0 || eType==-1 || fUnicode ){ |
| 913 | const char *zWarning; |
| 914 | const char *zDisable; |
| 915 | const char *zConvert = "c=convert/"; |
| 916 | Blob ans; |
| 917 | char cReply; |
| 918 | |
| 919 | if( eType==-1 && fUnicode ){ |
| 920 | if ( crnlOk && encodingOk ){ |
| 921 | return 0; /* We don't want CR/NL and Unicode warnings for this file. */ |
| 922 | } |
| 923 | zWarning = "CR/NL line endings and Unicode"; |
| 924 | zDisable = "\"crnl-glob\" and \"encoding-glob\" settings"; |
| 925 | }else if( eType==-1 ){ |
| 926 | if( crnlOk ){ |
| 927 | return 0; /* We don't want CR/NL warnings for this file. */ |
| 928 | } |
| 929 | zWarning = "CR/NL line endings"; |
| 930 | zDisable = "\"crnl-glob\" setting"; |
| 931 | }else if( eType==0 ){ |
| 932 | if( binOk ){ |
| 933 | return 0; /* We don't want binary warnings for this file. */ |
| 934 | } |
| 935 | zWarning = "binary data"; |
| 936 | zDisable = "\"binary-glob\" setting"; |
| 937 | zConvert = ""; /* We cannot convert binary files. */ |
| 938 | }else{ |
| 939 | if ( encodingOk ){ |
| 940 | return 0; /* We don't want encoding warnings for this file. */ |
| 941 | } |
| 942 | zWarning = "Unicode"; |
| 943 | zDisable = "\"encoding-glob\" setting"; |
| 944 | #ifndef _WIN32 |
| 945 | zConvert = ""; /* On Unix, we cannot easily convert Unicode files. */ |
| 946 | #endif |
| 947 | } |
| 948 | file_relative_name(zFilename, &fname, 0); |
| 949 | blob_zero(&ans); |
| 950 | zMsg = mprintf( |
| 951 | "%s contains %s. Use --no-warnings or the %s to disable this warning.\n" |
| 952 | "Commit anyhow (a=all/%sy/N)? ", |
| 953 | blob_str(&fname), zWarning, zDisable, zConvert); |
| 954 | prompt_user(zMsg, &ans); |
| 955 | fossil_free(zMsg); |
| 956 | cReply = blob_str(&ans)[0]; |
| 957 | if( cReply=='a' || cReply=='A' ){ |
| 958 | allOk = 1; |
| @@ -1314,25 +1320,25 @@ | |
| 1320 | "SELECT id, %Q || pathname, mrid, %s, chnged, %s, %s FROM vfile " |
| 1321 | "WHERE chnged==1 AND NOT deleted AND is_selected(id)", |
| 1322 | g.zLocalRoot, |
| 1323 | glob_expr("pathname", db_get("crnl-glob","")), |
| 1324 | glob_expr("pathname", db_get("binary-glob","")), |
| 1325 | glob_expr("pathname", db_get("encoding-glob","")) |
| 1326 | ); |
| 1327 | while( db_step(&q)==SQLITE_ROW ){ |
| 1328 | int id, rid; |
| 1329 | const char *zFullname; |
| 1330 | Blob content; |
| 1331 | int crnlOk, binOk, encodingOk, chnged; |
| 1332 | |
| 1333 | id = db_column_int(&q, 0); |
| 1334 | zFullname = db_column_text(&q, 1); |
| 1335 | rid = db_column_int(&q, 2); |
| 1336 | crnlOk = db_column_int(&q, 3); |
| 1337 | chnged = db_column_int(&q, 4); |
| 1338 | binOk = db_column_int(&q, 5); |
| 1339 | encodingOk = db_column_int(&q, 6); |
| 1340 | |
| 1341 | blob_zero(&content); |
| 1342 | if( file_wd_islink(zFullname) ){ |
| 1343 | /* Instead of file content, put link destination path */ |
| 1344 | blob_read_link(&content, zFullname); |
| @@ -1340,11 +1346,11 @@ | |
| 1346 | blob_read_from_file(&content, zFullname); |
| 1347 | } |
| 1348 | /* Do not emit any warnings when they are disabled. */ |
| 1349 | if( !noWarningFlag ){ |
| 1350 | abortCommit |= commit_warning(&content, crnlOk, binOk, |
| 1351 | encodingOk, zFullname); |
| 1352 | } |
| 1353 | if( chnged==1 && contains_merge_marker(&content) ){ |
| 1354 | Blob fname; /* Relative pathname of the file */ |
| 1355 | |
| 1356 | nConflict++; |
| 1357 |
+1
-1
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -103,11 +103,11 @@ | ||
| 103 | 103 | { "project-description", CONFIGSET_PROJ }, |
| 104 | 104 | { "manifest", CONFIGSET_PROJ }, |
| 105 | 105 | { "binary-glob", CONFIGSET_PROJ }, |
| 106 | 106 | { "ignore-glob", CONFIGSET_PROJ }, |
| 107 | 107 | { "crnl-glob", CONFIGSET_PROJ }, |
| 108 | - { "unicode-glob", CONFIGSET_PROJ }, | |
| 108 | + { "encoding-glob", CONFIGSET_PROJ }, | |
| 109 | 109 | { "empty-dirs", CONFIGSET_PROJ }, |
| 110 | 110 | { "allow-symlinks", CONFIGSET_PROJ }, |
| 111 | 111 | |
| 112 | 112 | { "ticket-table", CONFIGSET_TKT }, |
| 113 | 113 | { "ticket-common", CONFIGSET_TKT }, |
| 114 | 114 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -103,11 +103,11 @@ | |
| 103 | { "project-description", CONFIGSET_PROJ }, |
| 104 | { "manifest", CONFIGSET_PROJ }, |
| 105 | { "binary-glob", CONFIGSET_PROJ }, |
| 106 | { "ignore-glob", CONFIGSET_PROJ }, |
| 107 | { "crnl-glob", CONFIGSET_PROJ }, |
| 108 | { "unicode-glob", CONFIGSET_PROJ }, |
| 109 | { "empty-dirs", CONFIGSET_PROJ }, |
| 110 | { "allow-symlinks", CONFIGSET_PROJ }, |
| 111 | |
| 112 | { "ticket-table", CONFIGSET_TKT }, |
| 113 | { "ticket-common", CONFIGSET_TKT }, |
| 114 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -103,11 +103,11 @@ | |
| 103 | { "project-description", CONFIGSET_PROJ }, |
| 104 | { "manifest", CONFIGSET_PROJ }, |
| 105 | { "binary-glob", CONFIGSET_PROJ }, |
| 106 | { "ignore-glob", CONFIGSET_PROJ }, |
| 107 | { "crnl-glob", CONFIGSET_PROJ }, |
| 108 | { "encoding-glob", CONFIGSET_PROJ }, |
| 109 | { "empty-dirs", CONFIGSET_PROJ }, |
| 110 | { "allow-symlinks", CONFIGSET_PROJ }, |
| 111 | |
| 112 | { "ticket-table", CONFIGSET_TKT }, |
| 113 | { "ticket-common", CONFIGSET_TKT }, |
| 114 |
M
src/db.c
+11
-10
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2064,16 +2064,17 @@ | ||
| 2064 | 2064 | { "default-perms", 0, 16, 0, "u" }, |
| 2065 | 2065 | { "diff-binary", 0, 0, 0, "on" }, |
| 2066 | 2066 | { "diff-command", 0, 40, 0, "" }, |
| 2067 | 2067 | { "dont-push", 0, 0, 0, "off" }, |
| 2068 | 2068 | { "editor", 0, 32, 0, "" }, |
| 2069 | + { "empty-dirs", 0, 40, 1, "" }, | |
| 2070 | + { "encoding-glob", 0, 40, 1, "" }, | |
| 2069 | 2071 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2070 | 2072 | { "gmerge-command",0, 40, 0, "" }, |
| 2073 | + { "http-port", 0, 16, 0, "8080" }, | |
| 2071 | 2074 | { "https-login", 0, 0, 0, "off" }, |
| 2072 | 2075 | { "ignore-glob", 0, 40, 1, "" }, |
| 2073 | - { "empty-dirs", 0, 40, 1, "" }, | |
| 2074 | - { "http-port", 0, 16, 0, "8080" }, | |
| 2075 | 2076 | { "localauth", 0, 0, 0, "off" }, |
| 2076 | 2077 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2077 | 2078 | { "manifest", 0, 0, 1, "off" }, |
| 2078 | 2079 | #ifdef FOSSIL_ENABLE_MARKDOWN |
| 2079 | 2080 | { "markdown", 0, 0, 0, "off" }, |
| @@ -2083,19 +2084,18 @@ | ||
| 2083 | 2084 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2084 | 2085 | { "proxy", 0, 32, 0, "off" }, |
| 2085 | 2086 | { "relative-paths",0, 0, 0, "on" }, |
| 2086 | 2087 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2087 | 2088 | { "self-register", 0, 0, 0, "off" }, |
| 2089 | + { "ssh-command", 0, 40, 0, "" }, | |
| 2088 | 2090 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2089 | 2091 | { "ssl-identity", 0, 40, 0, "" }, |
| 2090 | - { "ssh-command", 0, 40, 0, "" }, | |
| 2091 | - { "th1-setup", 0, 40, 0, "" }, | |
| 2092 | 2092 | #ifdef FOSSIL_ENABLE_TCL |
| 2093 | 2093 | { "tcl", 0, 0, 0, "off" }, |
| 2094 | 2094 | { "tcl-setup", 0, 40, 0, "" }, |
| 2095 | 2095 | #endif |
| 2096 | - { "unicode-glob", 0, 40, 1, "" }, | |
| 2096 | + { "th1-setup", 0, 40, 0, "" }, | |
| 2097 | 2097 | { "web-browser", 0, 32, 0, "" }, |
| 2098 | 2098 | { "white-foreground", 0, 0, 0, "off" }, |
| 2099 | 2099 | { 0,0,0,0,0 } |
| 2100 | 2100 | }; |
| 2101 | 2101 | |
| @@ -2179,10 +2179,16 @@ | ||
| 2179 | 2179 | ** |
| 2180 | 2180 | ** empty-dirs A comma or newline-separated list of pathnames. On |
| 2181 | 2181 | ** (versionable) update and checkout commands, if no file or directory |
| 2182 | 2182 | ** exists with that name, an empty directory will be |
| 2183 | 2183 | ** created. |
| 2184 | +** | |
| 2185 | +** encoding-glob The VALUE is a comma or newline-separated list of GLOB | |
| 2186 | +** (versionable) patterns specifying files that the "commit" command will | |
| 2187 | +** ignore when issuing warnings about text files that may | |
| 2188 | +** use another encoding than ASCII or UTF-8. Set to "*" | |
| 2189 | +** to disable encoding checking. | |
| 2184 | 2190 | ** |
| 2185 | 2191 | ** gdiff-command External command to run when performing a graphical |
| 2186 | 2192 | ** diff. If undefined, text diff will be used. |
| 2187 | 2193 | ** |
| 2188 | 2194 | ** gmerge-command A graphical merge conflict resolver command operating |
| @@ -2278,15 +2284,10 @@ | ||
| 2278 | 2284 | ** |
| 2279 | 2285 | ** th1-setup This is the setup script to be evaluated after creating |
| 2280 | 2286 | ** and initializing the TH1 interpreter. By default, this |
| 2281 | 2287 | ** is empty and no extra setup is performed. |
| 2282 | 2288 | ** |
| 2283 | -** unicode-glob The VALUE is a comma or newline-separated list of GLOB | |
| 2284 | -** (versionable) patterns specifying files that the "commit" command will | |
| 2285 | -** ignore when issuing warnings about text files that may | |
| 2286 | -** contain Unicode. Set to "*" to disable Unicode checking. | |
| 2287 | -** | |
| 2288 | 2289 | ** web-browser A shell command used to launch your preferred |
| 2289 | 2290 | ** web browser when given a URL as an argument. |
| 2290 | 2291 | ** Defaults to "start" on windows, "open" on Mac, |
| 2291 | 2292 | ** and "firefox" on Unix. |
| 2292 | 2293 | ** |
| 2293 | 2294 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2064,16 +2064,17 @@ | |
| 2064 | { "default-perms", 0, 16, 0, "u" }, |
| 2065 | { "diff-binary", 0, 0, 0, "on" }, |
| 2066 | { "diff-command", 0, 40, 0, "" }, |
| 2067 | { "dont-push", 0, 0, 0, "off" }, |
| 2068 | { "editor", 0, 32, 0, "" }, |
| 2069 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2070 | { "gmerge-command",0, 40, 0, "" }, |
| 2071 | { "https-login", 0, 0, 0, "off" }, |
| 2072 | { "ignore-glob", 0, 40, 1, "" }, |
| 2073 | { "empty-dirs", 0, 40, 1, "" }, |
| 2074 | { "http-port", 0, 16, 0, "8080" }, |
| 2075 | { "localauth", 0, 0, 0, "off" }, |
| 2076 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2077 | { "manifest", 0, 0, 1, "off" }, |
| 2078 | #ifdef FOSSIL_ENABLE_MARKDOWN |
| 2079 | { "markdown", 0, 0, 0, "off" }, |
| @@ -2083,19 +2084,18 @@ | |
| 2083 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2084 | { "proxy", 0, 32, 0, "off" }, |
| 2085 | { "relative-paths",0, 0, 0, "on" }, |
| 2086 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2087 | { "self-register", 0, 0, 0, "off" }, |
| 2088 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2089 | { "ssl-identity", 0, 40, 0, "" }, |
| 2090 | { "ssh-command", 0, 40, 0, "" }, |
| 2091 | { "th1-setup", 0, 40, 0, "" }, |
| 2092 | #ifdef FOSSIL_ENABLE_TCL |
| 2093 | { "tcl", 0, 0, 0, "off" }, |
| 2094 | { "tcl-setup", 0, 40, 0, "" }, |
| 2095 | #endif |
| 2096 | { "unicode-glob", 0, 40, 1, "" }, |
| 2097 | { "web-browser", 0, 32, 0, "" }, |
| 2098 | { "white-foreground", 0, 0, 0, "off" }, |
| 2099 | { 0,0,0,0,0 } |
| 2100 | }; |
| 2101 | |
| @@ -2179,10 +2179,16 @@ | |
| 2179 | ** |
| 2180 | ** empty-dirs A comma or newline-separated list of pathnames. On |
| 2181 | ** (versionable) update and checkout commands, if no file or directory |
| 2182 | ** exists with that name, an empty directory will be |
| 2183 | ** created. |
| 2184 | ** |
| 2185 | ** gdiff-command External command to run when performing a graphical |
| 2186 | ** diff. If undefined, text diff will be used. |
| 2187 | ** |
| 2188 | ** gmerge-command A graphical merge conflict resolver command operating |
| @@ -2278,15 +2284,10 @@ | |
| 2278 | ** |
| 2279 | ** th1-setup This is the setup script to be evaluated after creating |
| 2280 | ** and initializing the TH1 interpreter. By default, this |
| 2281 | ** is empty and no extra setup is performed. |
| 2282 | ** |
| 2283 | ** unicode-glob The VALUE is a comma or newline-separated list of GLOB |
| 2284 | ** (versionable) patterns specifying files that the "commit" command will |
| 2285 | ** ignore when issuing warnings about text files that may |
| 2286 | ** contain Unicode. Set to "*" to disable Unicode checking. |
| 2287 | ** |
| 2288 | ** web-browser A shell command used to launch your preferred |
| 2289 | ** web browser when given a URL as an argument. |
| 2290 | ** Defaults to "start" on windows, "open" on Mac, |
| 2291 | ** and "firefox" on Unix. |
| 2292 | ** |
| 2293 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2064,16 +2064,17 @@ | |
| 2064 | { "default-perms", 0, 16, 0, "u" }, |
| 2065 | { "diff-binary", 0, 0, 0, "on" }, |
| 2066 | { "diff-command", 0, 40, 0, "" }, |
| 2067 | { "dont-push", 0, 0, 0, "off" }, |
| 2068 | { "editor", 0, 32, 0, "" }, |
| 2069 | { "empty-dirs", 0, 40, 1, "" }, |
| 2070 | { "encoding-glob", 0, 40, 1, "" }, |
| 2071 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2072 | { "gmerge-command",0, 40, 0, "" }, |
| 2073 | { "http-port", 0, 16, 0, "8080" }, |
| 2074 | { "https-login", 0, 0, 0, "off" }, |
| 2075 | { "ignore-glob", 0, 40, 1, "" }, |
| 2076 | { "localauth", 0, 0, 0, "off" }, |
| 2077 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2078 | { "manifest", 0, 0, 1, "off" }, |
| 2079 | #ifdef FOSSIL_ENABLE_MARKDOWN |
| 2080 | { "markdown", 0, 0, 0, "off" }, |
| @@ -2083,19 +2084,18 @@ | |
| 2084 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2085 | { "proxy", 0, 32, 0, "off" }, |
| 2086 | { "relative-paths",0, 0, 0, "on" }, |
| 2087 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2088 | { "self-register", 0, 0, 0, "off" }, |
| 2089 | { "ssh-command", 0, 40, 0, "" }, |
| 2090 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2091 | { "ssl-identity", 0, 40, 0, "" }, |
| 2092 | #ifdef FOSSIL_ENABLE_TCL |
| 2093 | { "tcl", 0, 0, 0, "off" }, |
| 2094 | { "tcl-setup", 0, 40, 0, "" }, |
| 2095 | #endif |
| 2096 | { "th1-setup", 0, 40, 0, "" }, |
| 2097 | { "web-browser", 0, 32, 0, "" }, |
| 2098 | { "white-foreground", 0, 0, 0, "off" }, |
| 2099 | { 0,0,0,0,0 } |
| 2100 | }; |
| 2101 | |
| @@ -2179,10 +2179,16 @@ | |
| 2179 | ** |
| 2180 | ** empty-dirs A comma or newline-separated list of pathnames. On |
| 2181 | ** (versionable) update and checkout commands, if no file or directory |
| 2182 | ** exists with that name, an empty directory will be |
| 2183 | ** created. |
| 2184 | ** |
| 2185 | ** encoding-glob The VALUE is a comma or newline-separated list of GLOB |
| 2186 | ** (versionable) patterns specifying files that the "commit" command will |
| 2187 | ** ignore when issuing warnings about text files that may |
| 2188 | ** use another encoding than ASCII or UTF-8. Set to "*" |
| 2189 | ** to disable encoding checking. |
| 2190 | ** |
| 2191 | ** gdiff-command External command to run when performing a graphical |
| 2192 | ** diff. If undefined, text diff will be used. |
| 2193 | ** |
| 2194 | ** gmerge-command A graphical merge conflict resolver command operating |
| @@ -2278,15 +2284,10 @@ | |
| 2284 | ** |
| 2285 | ** th1-setup This is the setup script to be evaluated after creating |
| 2286 | ** and initializing the TH1 interpreter. By default, this |
| 2287 | ** is empty and no extra setup is performed. |
| 2288 | ** |
| 2289 | ** web-browser A shell command used to launch your preferred |
| 2290 | ** web browser when given a URL as an argument. |
| 2291 | ** Defaults to "start" on windows, "open" on Mac, |
| 2292 | ** and "firefox" on Unix. |
| 2293 | ** |
| 2294 |
M
src/db.c
+11
-10
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2064,16 +2064,17 @@ | ||
| 2064 | 2064 | { "default-perms", 0, 16, 0, "u" }, |
| 2065 | 2065 | { "diff-binary", 0, 0, 0, "on" }, |
| 2066 | 2066 | { "diff-command", 0, 40, 0, "" }, |
| 2067 | 2067 | { "dont-push", 0, 0, 0, "off" }, |
| 2068 | 2068 | { "editor", 0, 32, 0, "" }, |
| 2069 | + { "empty-dirs", 0, 40, 1, "" }, | |
| 2070 | + { "encoding-glob", 0, 40, 1, "" }, | |
| 2069 | 2071 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2070 | 2072 | { "gmerge-command",0, 40, 0, "" }, |
| 2073 | + { "http-port", 0, 16, 0, "8080" }, | |
| 2071 | 2074 | { "https-login", 0, 0, 0, "off" }, |
| 2072 | 2075 | { "ignore-glob", 0, 40, 1, "" }, |
| 2073 | - { "empty-dirs", 0, 40, 1, "" }, | |
| 2074 | - { "http-port", 0, 16, 0, "8080" }, | |
| 2075 | 2076 | { "localauth", 0, 0, 0, "off" }, |
| 2076 | 2077 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2077 | 2078 | { "manifest", 0, 0, 1, "off" }, |
| 2078 | 2079 | #ifdef FOSSIL_ENABLE_MARKDOWN |
| 2079 | 2080 | { "markdown", 0, 0, 0, "off" }, |
| @@ -2083,19 +2084,18 @@ | ||
| 2083 | 2084 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2084 | 2085 | { "proxy", 0, 32, 0, "off" }, |
| 2085 | 2086 | { "relative-paths",0, 0, 0, "on" }, |
| 2086 | 2087 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2087 | 2088 | { "self-register", 0, 0, 0, "off" }, |
| 2089 | + { "ssh-command", 0, 40, 0, "" }, | |
| 2088 | 2090 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2089 | 2091 | { "ssl-identity", 0, 40, 0, "" }, |
| 2090 | - { "ssh-command", 0, 40, 0, "" }, | |
| 2091 | - { "th1-setup", 0, 40, 0, "" }, | |
| 2092 | 2092 | #ifdef FOSSIL_ENABLE_TCL |
| 2093 | 2093 | { "tcl", 0, 0, 0, "off" }, |
| 2094 | 2094 | { "tcl-setup", 0, 40, 0, "" }, |
| 2095 | 2095 | #endif |
| 2096 | - { "unicode-glob", 0, 40, 1, "" }, | |
| 2096 | + { "th1-setup", 0, 40, 0, "" }, | |
| 2097 | 2097 | { "web-browser", 0, 32, 0, "" }, |
| 2098 | 2098 | { "white-foreground", 0, 0, 0, "off" }, |
| 2099 | 2099 | { 0,0,0,0,0 } |
| 2100 | 2100 | }; |
| 2101 | 2101 | |
| @@ -2179,10 +2179,16 @@ | ||
| 2179 | 2179 | ** |
| 2180 | 2180 | ** empty-dirs A comma or newline-separated list of pathnames. On |
| 2181 | 2181 | ** (versionable) update and checkout commands, if no file or directory |
| 2182 | 2182 | ** exists with that name, an empty directory will be |
| 2183 | 2183 | ** created. |
| 2184 | +** | |
| 2185 | +** encoding-glob The VALUE is a comma or newline-separated list of GLOB | |
| 2186 | +** (versionable) patterns specifying files that the "commit" command will | |
| 2187 | +** ignore when issuing warnings about text files that may | |
| 2188 | +** use another encoding than ASCII or UTF-8. Set to "*" | |
| 2189 | +** to disable encoding checking. | |
| 2184 | 2190 | ** |
| 2185 | 2191 | ** gdiff-command External command to run when performing a graphical |
| 2186 | 2192 | ** diff. If undefined, text diff will be used. |
| 2187 | 2193 | ** |
| 2188 | 2194 | ** gmerge-command A graphical merge conflict resolver command operating |
| @@ -2278,15 +2284,10 @@ | ||
| 2278 | 2284 | ** |
| 2279 | 2285 | ** th1-setup This is the setup script to be evaluated after creating |
| 2280 | 2286 | ** and initializing the TH1 interpreter. By default, this |
| 2281 | 2287 | ** is empty and no extra setup is performed. |
| 2282 | 2288 | ** |
| 2283 | -** unicode-glob The VALUE is a comma or newline-separated list of GLOB | |
| 2284 | -** (versionable) patterns specifying files that the "commit" command will | |
| 2285 | -** ignore when issuing warnings about text files that may | |
| 2286 | -** contain Unicode. Set to "*" to disable Unicode checking. | |
| 2287 | -** | |
| 2288 | 2289 | ** web-browser A shell command used to launch your preferred |
| 2289 | 2290 | ** web browser when given a URL as an argument. |
| 2290 | 2291 | ** Defaults to "start" on windows, "open" on Mac, |
| 2291 | 2292 | ** and "firefox" on Unix. |
| 2292 | 2293 | ** |
| 2293 | 2294 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2064,16 +2064,17 @@ | |
| 2064 | { "default-perms", 0, 16, 0, "u" }, |
| 2065 | { "diff-binary", 0, 0, 0, "on" }, |
| 2066 | { "diff-command", 0, 40, 0, "" }, |
| 2067 | { "dont-push", 0, 0, 0, "off" }, |
| 2068 | { "editor", 0, 32, 0, "" }, |
| 2069 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2070 | { "gmerge-command",0, 40, 0, "" }, |
| 2071 | { "https-login", 0, 0, 0, "off" }, |
| 2072 | { "ignore-glob", 0, 40, 1, "" }, |
| 2073 | { "empty-dirs", 0, 40, 1, "" }, |
| 2074 | { "http-port", 0, 16, 0, "8080" }, |
| 2075 | { "localauth", 0, 0, 0, "off" }, |
| 2076 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2077 | { "manifest", 0, 0, 1, "off" }, |
| 2078 | #ifdef FOSSIL_ENABLE_MARKDOWN |
| 2079 | { "markdown", 0, 0, 0, "off" }, |
| @@ -2083,19 +2084,18 @@ | |
| 2083 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2084 | { "proxy", 0, 32, 0, "off" }, |
| 2085 | { "relative-paths",0, 0, 0, "on" }, |
| 2086 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2087 | { "self-register", 0, 0, 0, "off" }, |
| 2088 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2089 | { "ssl-identity", 0, 40, 0, "" }, |
| 2090 | { "ssh-command", 0, 40, 0, "" }, |
| 2091 | { "th1-setup", 0, 40, 0, "" }, |
| 2092 | #ifdef FOSSIL_ENABLE_TCL |
| 2093 | { "tcl", 0, 0, 0, "off" }, |
| 2094 | { "tcl-setup", 0, 40, 0, "" }, |
| 2095 | #endif |
| 2096 | { "unicode-glob", 0, 40, 1, "" }, |
| 2097 | { "web-browser", 0, 32, 0, "" }, |
| 2098 | { "white-foreground", 0, 0, 0, "off" }, |
| 2099 | { 0,0,0,0,0 } |
| 2100 | }; |
| 2101 | |
| @@ -2179,10 +2179,16 @@ | |
| 2179 | ** |
| 2180 | ** empty-dirs A comma or newline-separated list of pathnames. On |
| 2181 | ** (versionable) update and checkout commands, if no file or directory |
| 2182 | ** exists with that name, an empty directory will be |
| 2183 | ** created. |
| 2184 | ** |
| 2185 | ** gdiff-command External command to run when performing a graphical |
| 2186 | ** diff. If undefined, text diff will be used. |
| 2187 | ** |
| 2188 | ** gmerge-command A graphical merge conflict resolver command operating |
| @@ -2278,15 +2284,10 @@ | |
| 2278 | ** |
| 2279 | ** th1-setup This is the setup script to be evaluated after creating |
| 2280 | ** and initializing the TH1 interpreter. By default, this |
| 2281 | ** is empty and no extra setup is performed. |
| 2282 | ** |
| 2283 | ** unicode-glob The VALUE is a comma or newline-separated list of GLOB |
| 2284 | ** (versionable) patterns specifying files that the "commit" command will |
| 2285 | ** ignore when issuing warnings about text files that may |
| 2286 | ** contain Unicode. Set to "*" to disable Unicode checking. |
| 2287 | ** |
| 2288 | ** web-browser A shell command used to launch your preferred |
| 2289 | ** web browser when given a URL as an argument. |
| 2290 | ** Defaults to "start" on windows, "open" on Mac, |
| 2291 | ** and "firefox" on Unix. |
| 2292 | ** |
| 2293 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2064,16 +2064,17 @@ | |
| 2064 | { "default-perms", 0, 16, 0, "u" }, |
| 2065 | { "diff-binary", 0, 0, 0, "on" }, |
| 2066 | { "diff-command", 0, 40, 0, "" }, |
| 2067 | { "dont-push", 0, 0, 0, "off" }, |
| 2068 | { "editor", 0, 32, 0, "" }, |
| 2069 | { "empty-dirs", 0, 40, 1, "" }, |
| 2070 | { "encoding-glob", 0, 40, 1, "" }, |
| 2071 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2072 | { "gmerge-command",0, 40, 0, "" }, |
| 2073 | { "http-port", 0, 16, 0, "8080" }, |
| 2074 | { "https-login", 0, 0, 0, "off" }, |
| 2075 | { "ignore-glob", 0, 40, 1, "" }, |
| 2076 | { "localauth", 0, 0, 0, "off" }, |
| 2077 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2078 | { "manifest", 0, 0, 1, "off" }, |
| 2079 | #ifdef FOSSIL_ENABLE_MARKDOWN |
| 2080 | { "markdown", 0, 0, 0, "off" }, |
| @@ -2083,19 +2084,18 @@ | |
| 2084 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2085 | { "proxy", 0, 32, 0, "off" }, |
| 2086 | { "relative-paths",0, 0, 0, "on" }, |
| 2087 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2088 | { "self-register", 0, 0, 0, "off" }, |
| 2089 | { "ssh-command", 0, 40, 0, "" }, |
| 2090 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2091 | { "ssl-identity", 0, 40, 0, "" }, |
| 2092 | #ifdef FOSSIL_ENABLE_TCL |
| 2093 | { "tcl", 0, 0, 0, "off" }, |
| 2094 | { "tcl-setup", 0, 40, 0, "" }, |
| 2095 | #endif |
| 2096 | { "th1-setup", 0, 40, 0, "" }, |
| 2097 | { "web-browser", 0, 32, 0, "" }, |
| 2098 | { "white-foreground", 0, 0, 0, "off" }, |
| 2099 | { 0,0,0,0,0 } |
| 2100 | }; |
| 2101 | |
| @@ -2179,10 +2179,16 @@ | |
| 2179 | ** |
| 2180 | ** empty-dirs A comma or newline-separated list of pathnames. On |
| 2181 | ** (versionable) update and checkout commands, if no file or directory |
| 2182 | ** exists with that name, an empty directory will be |
| 2183 | ** created. |
| 2184 | ** |
| 2185 | ** encoding-glob The VALUE is a comma or newline-separated list of GLOB |
| 2186 | ** (versionable) patterns specifying files that the "commit" command will |
| 2187 | ** ignore when issuing warnings about text files that may |
| 2188 | ** use another encoding than ASCII or UTF-8. Set to "*" |
| 2189 | ** to disable encoding checking. |
| 2190 | ** |
| 2191 | ** gdiff-command External command to run when performing a graphical |
| 2192 | ** diff. If undefined, text diff will be used. |
| 2193 | ** |
| 2194 | ** gmerge-command A graphical merge conflict resolver command operating |
| @@ -2278,15 +2284,10 @@ | |
| 2284 | ** |
| 2285 | ** th1-setup This is the setup script to be evaluated after creating |
| 2286 | ** and initializing the TH1 interpreter. By default, this |
| 2287 | ** is empty and no extra setup is performed. |
| 2288 | ** |
| 2289 | ** web-browser A shell command used to launch your preferred |
| 2290 | ** web browser when given a URL as an argument. |
| 2291 | ** Defaults to "start" on windows, "open" on Mac, |
| 2292 | ** and "firefox" on Unix. |
| 2293 | ** |
| 2294 |