Fossil SCM
[202edc2c1c]: Make 'th1-setup' a textarea in settings UI.
Commit
cec85224c146f902213e68230b61315bc0f5f78e
Parent
cba5a0b9885426a…
6 files changed
+49
-47
+49
-47
+49
-47
+13
-4
+13
-4
+13
-4
M
src/db.c
+49
-47
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2099,66 +2099,68 @@ | ||
| 2099 | 2099 | */ |
| 2100 | 2100 | #if INTERFACE |
| 2101 | 2101 | struct stControlSettings { |
| 2102 | 2102 | char const *name; /* Name of the setting */ |
| 2103 | 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | - int width; /* Width of display. 0 for boolean values */ | |
| 2104 | + int width; /* Width of display. 0 for boolean values. */ | |
| 2105 | 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | + int forceTextArea; /* Force using a text area for display? */ | |
| 2106 | 2107 | char const *def; /* Default value */ |
| 2107 | 2108 | }; |
| 2108 | 2109 | #endif /* INTERFACE */ |
| 2109 | 2110 | struct stControlSettings const ctrlSettings[] = { |
| 2110 | - { "access-log", 0, 0, 0, "off" }, | |
| 2111 | - { "allow-symlinks",0, 0, 1, "off" }, | |
| 2112 | - { "auto-captcha", "autocaptcha", 0, 0, "on" }, | |
| 2113 | - { "auto-hyperlink",0, 0, 0, "on", }, | |
| 2114 | - { "auto-shun", 0, 0, 0, "on" }, | |
| 2115 | - { "autosync", 0, 0, 0, "on" }, | |
| 2116 | - { "binary-glob", 0, 40, 1, "" }, | |
| 2117 | - { "clearsign", 0, 0, 0, "off" }, | |
| 2118 | -#if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || defined(__APPLE__) | |
| 2119 | - { "case-sensitive",0, 0, 0, "off" }, | |
| 2111 | + { "access-log", 0, 0, 0, 0, "off" }, | |
| 2112 | + { "allow-symlinks", 0, 0, 1, 0, "off" }, | |
| 2113 | + { "auto-captcha", "autocaptcha", 0, 0, 0, "on" }, | |
| 2114 | + { "auto-hyperlink", 0, 0, 0, 0, "on", }, | |
| 2115 | + { "auto-shun", 0, 0, 0, 0, "on" }, | |
| 2116 | + { "autosync", 0, 0, 0, 0, "on" }, | |
| 2117 | + { "binary-glob", 0, 40, 1, 0, "" }, | |
| 2118 | + { "clearsign", 0, 0, 0, 0, "off" }, | |
| 2119 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || \ | |
| 2120 | + defined(__APPLE__) | |
| 2121 | + { "case-sensitive", 0, 0, 0, 0, "off" }, | |
| 2120 | 2122 | #else |
| 2121 | - { "case-sensitive",0, 0, 0, "on" }, | |
| 2123 | + { "case-sensitive", 0, 0, 0, 0, "on" }, | |
| 2122 | 2124 | #endif |
| 2123 | - { "clean-glob", 0, 40, 1, "" }, | |
| 2124 | - { "crnl-glob", 0, 40, 1, "" }, | |
| 2125 | - { "default-perms", 0, 16, 0, "u" }, | |
| 2126 | - { "diff-binary", 0, 0, 0, "on" }, | |
| 2127 | - { "diff-command", 0, 40, 0, "" }, | |
| 2128 | - { "dont-push", 0, 0, 0, "off" }, | |
| 2129 | - { "editor", 0, 32, 0, "" }, | |
| 2130 | - { "empty-dirs", 0, 40, 1, "" }, | |
| 2131 | - { "encoding-glob", 0, 40, 1, "" }, | |
| 2132 | - { "gdiff-command", 0, 40, 0, "gdiff" }, | |
| 2133 | - { "gmerge-command",0, 40, 0, "" }, | |
| 2134 | - { "http-port", 0, 16, 0, "8080" }, | |
| 2135 | - { "https-login", 0, 0, 0, "off" }, | |
| 2136 | - { "ignore-glob", 0, 40, 1, "" }, | |
| 2137 | - { "keep-glob", 0, 40, 1, "" }, | |
| 2138 | - { "localauth", 0, 0, 0, "off" }, | |
| 2139 | - { "main-branch", 0, 40, 0, "trunk" }, | |
| 2140 | - { "manifest", 0, 0, 1, "off" }, | |
| 2141 | - { "max-upload", 0, 25, 0, "250000" }, | |
| 2142 | - { "mtime-changes", 0, 0, 0, "on" }, | |
| 2143 | - { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, | |
| 2144 | - { "proxy", 0, 32, 0, "off" }, | |
| 2145 | - { "relative-paths",0, 0, 0, "on" }, | |
| 2146 | - { "repo-cksum", 0, 0, 0, "on" }, | |
| 2147 | - { "self-register", 0, 0, 0, "off" }, | |
| 2148 | - { "ssh-command", 0, 40, 0, "" }, | |
| 2149 | - { "ssl-ca-location",0, 40, 0, "" }, | |
| 2150 | - { "ssl-identity", 0, 40, 0, "" }, | |
| 2125 | + { "clean-glob", 0, 40, 1, 0, "" }, | |
| 2126 | + { "crnl-glob", 0, 40, 1, 0, "" }, | |
| 2127 | + { "default-perms", 0, 16, 0, 0, "u" }, | |
| 2128 | + { "diff-binary", 0, 0, 0, 0, "on" }, | |
| 2129 | + { "diff-command", 0, 40, 0, 0, "" }, | |
| 2130 | + { "dont-push", 0, 0, 0, 0, "off" }, | |
| 2131 | + { "editor", 0, 32, 0, 0, "" }, | |
| 2132 | + { "empty-dirs", 0, 40, 1, 0, "" }, | |
| 2133 | + { "encoding-glob", 0, 40, 1, 0, "" }, | |
| 2134 | + { "gdiff-command", 0, 40, 0, 0, "gdiff" }, | |
| 2135 | + { "gmerge-command", 0, 40, 0, 0, "" }, | |
| 2136 | + { "http-port", 0, 16, 0, 0, "8080" }, | |
| 2137 | + { "https-login", 0, 0, 0, 0, "off" }, | |
| 2138 | + { "ignore-glob", 0, 40, 1, 0, "" }, | |
| 2139 | + { "keep-glob", 0, 40, 1, 0, "" }, | |
| 2140 | + { "localauth", 0, 0, 0, 0, "off" }, | |
| 2141 | + { "main-branch", 0, 40, 0, 0, "trunk" }, | |
| 2142 | + { "manifest", 0, 0, 1, 0, "off" }, | |
| 2143 | + { "max-upload", 0, 25, 0, 0, "250000" }, | |
| 2144 | + { "mtime-changes", 0, 0, 0, 0, "on" }, | |
| 2145 | + { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, | |
| 2146 | + { "proxy", 0, 32, 0, 0, "off" }, | |
| 2147 | + { "relative-paths", 0, 0, 0, 0, "on" }, | |
| 2148 | + { "repo-cksum", 0, 0, 0, 0, "on" }, | |
| 2149 | + { "self-register", 0, 0, 0, 0, "off" }, | |
| 2150 | + { "ssh-command", 0, 40, 0, 0, "" }, | |
| 2151 | + { "ssl-ca-location", 0, 40, 0, 0, "" }, | |
| 2152 | + { "ssl-identity", 0, 40, 0, 0, "" }, | |
| 2151 | 2153 | #ifdef FOSSIL_ENABLE_TCL |
| 2152 | - { "tcl", 0, 0, 0, "off" }, | |
| 2153 | - { "tcl-setup", 0, 40, 0, "" }, | |
| 2154 | + { "tcl", 0, 0, 0, 0, "off" }, | |
| 2155 | + { "tcl-setup", 0, 40, 0, 1, "" }, | |
| 2154 | 2156 | #endif |
| 2155 | - { "th1-setup", 0, 40, 0, "" }, | |
| 2156 | - { "th1-uri-regexp",0, 40, 0, "" }, | |
| 2157 | - { "web-browser", 0, 32, 0, "" }, | |
| 2158 | - { "white-foreground", 0, 0, 0, "off" }, | |
| 2159 | - { 0,0,0,0,0 } | |
| 2157 | + { "th1-setup", 0, 40, 0, 1, "" }, | |
| 2158 | + { "th1-uri-regexp", 0, 40, 0, 0, "" }, | |
| 2159 | + { "web-browser", 0, 32, 0, 0, "" }, | |
| 2160 | + { "white-foreground", 0, 0, 0, 0, "off" }, | |
| 2161 | + { 0,0,0,0,0,0 } | |
| 2160 | 2162 | }; |
| 2161 | 2163 | |
| 2162 | 2164 | /* |
| 2163 | 2165 | ** COMMAND: settings |
| 2164 | 2166 | ** COMMAND: unset* |
| 2165 | 2167 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2099,66 +2099,68 @@ | |
| 2099 | */ |
| 2100 | #if INTERFACE |
| 2101 | struct stControlSettings { |
| 2102 | char const *name; /* Name of the setting */ |
| 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | int width; /* Width of display. 0 for boolean values */ |
| 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | char const *def; /* Default value */ |
| 2107 | }; |
| 2108 | #endif /* INTERFACE */ |
| 2109 | struct stControlSettings const ctrlSettings[] = { |
| 2110 | { "access-log", 0, 0, 0, "off" }, |
| 2111 | { "allow-symlinks",0, 0, 1, "off" }, |
| 2112 | { "auto-captcha", "autocaptcha", 0, 0, "on" }, |
| 2113 | { "auto-hyperlink",0, 0, 0, "on", }, |
| 2114 | { "auto-shun", 0, 0, 0, "on" }, |
| 2115 | { "autosync", 0, 0, 0, "on" }, |
| 2116 | { "binary-glob", 0, 40, 1, "" }, |
| 2117 | { "clearsign", 0, 0, 0, "off" }, |
| 2118 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || defined(__APPLE__) |
| 2119 | { "case-sensitive",0, 0, 0, "off" }, |
| 2120 | #else |
| 2121 | { "case-sensitive",0, 0, 0, "on" }, |
| 2122 | #endif |
| 2123 | { "clean-glob", 0, 40, 1, "" }, |
| 2124 | { "crnl-glob", 0, 40, 1, "" }, |
| 2125 | { "default-perms", 0, 16, 0, "u" }, |
| 2126 | { "diff-binary", 0, 0, 0, "on" }, |
| 2127 | { "diff-command", 0, 40, 0, "" }, |
| 2128 | { "dont-push", 0, 0, 0, "off" }, |
| 2129 | { "editor", 0, 32, 0, "" }, |
| 2130 | { "empty-dirs", 0, 40, 1, "" }, |
| 2131 | { "encoding-glob", 0, 40, 1, "" }, |
| 2132 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2133 | { "gmerge-command",0, 40, 0, "" }, |
| 2134 | { "http-port", 0, 16, 0, "8080" }, |
| 2135 | { "https-login", 0, 0, 0, "off" }, |
| 2136 | { "ignore-glob", 0, 40, 1, "" }, |
| 2137 | { "keep-glob", 0, 40, 1, "" }, |
| 2138 | { "localauth", 0, 0, 0, "off" }, |
| 2139 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2140 | { "manifest", 0, 0, 1, "off" }, |
| 2141 | { "max-upload", 0, 25, 0, "250000" }, |
| 2142 | { "mtime-changes", 0, 0, 0, "on" }, |
| 2143 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2144 | { "proxy", 0, 32, 0, "off" }, |
| 2145 | { "relative-paths",0, 0, 0, "on" }, |
| 2146 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2147 | { "self-register", 0, 0, 0, "off" }, |
| 2148 | { "ssh-command", 0, 40, 0, "" }, |
| 2149 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2150 | { "ssl-identity", 0, 40, 0, "" }, |
| 2151 | #ifdef FOSSIL_ENABLE_TCL |
| 2152 | { "tcl", 0, 0, 0, "off" }, |
| 2153 | { "tcl-setup", 0, 40, 0, "" }, |
| 2154 | #endif |
| 2155 | { "th1-setup", 0, 40, 0, "" }, |
| 2156 | { "th1-uri-regexp",0, 40, 0, "" }, |
| 2157 | { "web-browser", 0, 32, 0, "" }, |
| 2158 | { "white-foreground", 0, 0, 0, "off" }, |
| 2159 | { 0,0,0,0,0 } |
| 2160 | }; |
| 2161 | |
| 2162 | /* |
| 2163 | ** COMMAND: settings |
| 2164 | ** COMMAND: unset* |
| 2165 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2099,66 +2099,68 @@ | |
| 2099 | */ |
| 2100 | #if INTERFACE |
| 2101 | struct stControlSettings { |
| 2102 | char const *name; /* Name of the setting */ |
| 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | int width; /* Width of display. 0 for boolean values. */ |
| 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | int forceTextArea; /* Force using a text area for display? */ |
| 2107 | char const *def; /* Default value */ |
| 2108 | }; |
| 2109 | #endif /* INTERFACE */ |
| 2110 | struct stControlSettings const ctrlSettings[] = { |
| 2111 | { "access-log", 0, 0, 0, 0, "off" }, |
| 2112 | { "allow-symlinks", 0, 0, 1, 0, "off" }, |
| 2113 | { "auto-captcha", "autocaptcha", 0, 0, 0, "on" }, |
| 2114 | { "auto-hyperlink", 0, 0, 0, 0, "on", }, |
| 2115 | { "auto-shun", 0, 0, 0, 0, "on" }, |
| 2116 | { "autosync", 0, 0, 0, 0, "on" }, |
| 2117 | { "binary-glob", 0, 40, 1, 0, "" }, |
| 2118 | { "clearsign", 0, 0, 0, 0, "off" }, |
| 2119 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || \ |
| 2120 | defined(__APPLE__) |
| 2121 | { "case-sensitive", 0, 0, 0, 0, "off" }, |
| 2122 | #else |
| 2123 | { "case-sensitive", 0, 0, 0, 0, "on" }, |
| 2124 | #endif |
| 2125 | { "clean-glob", 0, 40, 1, 0, "" }, |
| 2126 | { "crnl-glob", 0, 40, 1, 0, "" }, |
| 2127 | { "default-perms", 0, 16, 0, 0, "u" }, |
| 2128 | { "diff-binary", 0, 0, 0, 0, "on" }, |
| 2129 | { "diff-command", 0, 40, 0, 0, "" }, |
| 2130 | { "dont-push", 0, 0, 0, 0, "off" }, |
| 2131 | { "editor", 0, 32, 0, 0, "" }, |
| 2132 | { "empty-dirs", 0, 40, 1, 0, "" }, |
| 2133 | { "encoding-glob", 0, 40, 1, 0, "" }, |
| 2134 | { "gdiff-command", 0, 40, 0, 0, "gdiff" }, |
| 2135 | { "gmerge-command", 0, 40, 0, 0, "" }, |
| 2136 | { "http-port", 0, 16, 0, 0, "8080" }, |
| 2137 | { "https-login", 0, 0, 0, 0, "off" }, |
| 2138 | { "ignore-glob", 0, 40, 1, 0, "" }, |
| 2139 | { "keep-glob", 0, 40, 1, 0, "" }, |
| 2140 | { "localauth", 0, 0, 0, 0, "off" }, |
| 2141 | { "main-branch", 0, 40, 0, 0, "trunk" }, |
| 2142 | { "manifest", 0, 0, 1, 0, "off" }, |
| 2143 | { "max-upload", 0, 25, 0, 0, "250000" }, |
| 2144 | { "mtime-changes", 0, 0, 0, 0, "on" }, |
| 2145 | { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, |
| 2146 | { "proxy", 0, 32, 0, 0, "off" }, |
| 2147 | { "relative-paths", 0, 0, 0, 0, "on" }, |
| 2148 | { "repo-cksum", 0, 0, 0, 0, "on" }, |
| 2149 | { "self-register", 0, 0, 0, 0, "off" }, |
| 2150 | { "ssh-command", 0, 40, 0, 0, "" }, |
| 2151 | { "ssl-ca-location", 0, 40, 0, 0, "" }, |
| 2152 | { "ssl-identity", 0, 40, 0, 0, "" }, |
| 2153 | #ifdef FOSSIL_ENABLE_TCL |
| 2154 | { "tcl", 0, 0, 0, 0, "off" }, |
| 2155 | { "tcl-setup", 0, 40, 0, 1, "" }, |
| 2156 | #endif |
| 2157 | { "th1-setup", 0, 40, 0, 1, "" }, |
| 2158 | { "th1-uri-regexp", 0, 40, 0, 0, "" }, |
| 2159 | { "web-browser", 0, 32, 0, 0, "" }, |
| 2160 | { "white-foreground", 0, 0, 0, 0, "off" }, |
| 2161 | { 0,0,0,0,0,0 } |
| 2162 | }; |
| 2163 | |
| 2164 | /* |
| 2165 | ** COMMAND: settings |
| 2166 | ** COMMAND: unset* |
| 2167 |
M
src/db.c
+49
-47
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2099,66 +2099,68 @@ | ||
| 2099 | 2099 | */ |
| 2100 | 2100 | #if INTERFACE |
| 2101 | 2101 | struct stControlSettings { |
| 2102 | 2102 | char const *name; /* Name of the setting */ |
| 2103 | 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | - int width; /* Width of display. 0 for boolean values */ | |
| 2104 | + int width; /* Width of display. 0 for boolean values. */ | |
| 2105 | 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | + int forceTextArea; /* Force using a text area for display? */ | |
| 2106 | 2107 | char const *def; /* Default value */ |
| 2107 | 2108 | }; |
| 2108 | 2109 | #endif /* INTERFACE */ |
| 2109 | 2110 | struct stControlSettings const ctrlSettings[] = { |
| 2110 | - { "access-log", 0, 0, 0, "off" }, | |
| 2111 | - { "allow-symlinks",0, 0, 1, "off" }, | |
| 2112 | - { "auto-captcha", "autocaptcha", 0, 0, "on" }, | |
| 2113 | - { "auto-hyperlink",0, 0, 0, "on", }, | |
| 2114 | - { "auto-shun", 0, 0, 0, "on" }, | |
| 2115 | - { "autosync", 0, 0, 0, "on" }, | |
| 2116 | - { "binary-glob", 0, 40, 1, "" }, | |
| 2117 | - { "clearsign", 0, 0, 0, "off" }, | |
| 2118 | -#if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || defined(__APPLE__) | |
| 2119 | - { "case-sensitive",0, 0, 0, "off" }, | |
| 2111 | + { "access-log", 0, 0, 0, 0, "off" }, | |
| 2112 | + { "allow-symlinks", 0, 0, 1, 0, "off" }, | |
| 2113 | + { "auto-captcha", "autocaptcha", 0, 0, 0, "on" }, | |
| 2114 | + { "auto-hyperlink", 0, 0, 0, 0, "on", }, | |
| 2115 | + { "auto-shun", 0, 0, 0, 0, "on" }, | |
| 2116 | + { "autosync", 0, 0, 0, 0, "on" }, | |
| 2117 | + { "binary-glob", 0, 40, 1, 0, "" }, | |
| 2118 | + { "clearsign", 0, 0, 0, 0, "off" }, | |
| 2119 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || \ | |
| 2120 | + defined(__APPLE__) | |
| 2121 | + { "case-sensitive", 0, 0, 0, 0, "off" }, | |
| 2120 | 2122 | #else |
| 2121 | - { "case-sensitive",0, 0, 0, "on" }, | |
| 2123 | + { "case-sensitive", 0, 0, 0, 0, "on" }, | |
| 2122 | 2124 | #endif |
| 2123 | - { "clean-glob", 0, 40, 1, "" }, | |
| 2124 | - { "crnl-glob", 0, 40, 1, "" }, | |
| 2125 | - { "default-perms", 0, 16, 0, "u" }, | |
| 2126 | - { "diff-binary", 0, 0, 0, "on" }, | |
| 2127 | - { "diff-command", 0, 40, 0, "" }, | |
| 2128 | - { "dont-push", 0, 0, 0, "off" }, | |
| 2129 | - { "editor", 0, 32, 0, "" }, | |
| 2130 | - { "empty-dirs", 0, 40, 1, "" }, | |
| 2131 | - { "encoding-glob", 0, 40, 1, "" }, | |
| 2132 | - { "gdiff-command", 0, 40, 0, "gdiff" }, | |
| 2133 | - { "gmerge-command",0, 40, 0, "" }, | |
| 2134 | - { "http-port", 0, 16, 0, "8080" }, | |
| 2135 | - { "https-login", 0, 0, 0, "off" }, | |
| 2136 | - { "ignore-glob", 0, 40, 1, "" }, | |
| 2137 | - { "keep-glob", 0, 40, 1, "" }, | |
| 2138 | - { "localauth", 0, 0, 0, "off" }, | |
| 2139 | - { "main-branch", 0, 40, 0, "trunk" }, | |
| 2140 | - { "manifest", 0, 0, 1, "off" }, | |
| 2141 | - { "max-upload", 0, 25, 0, "250000" }, | |
| 2142 | - { "mtime-changes", 0, 0, 0, "on" }, | |
| 2143 | - { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, | |
| 2144 | - { "proxy", 0, 32, 0, "off" }, | |
| 2145 | - { "relative-paths",0, 0, 0, "on" }, | |
| 2146 | - { "repo-cksum", 0, 0, 0, "on" }, | |
| 2147 | - { "self-register", 0, 0, 0, "off" }, | |
| 2148 | - { "ssh-command", 0, 40, 0, "" }, | |
| 2149 | - { "ssl-ca-location",0, 40, 0, "" }, | |
| 2150 | - { "ssl-identity", 0, 40, 0, "" }, | |
| 2125 | + { "clean-glob", 0, 40, 1, 0, "" }, | |
| 2126 | + { "crnl-glob", 0, 40, 1, 0, "" }, | |
| 2127 | + { "default-perms", 0, 16, 0, 0, "u" }, | |
| 2128 | + { "diff-binary", 0, 0, 0, 0, "on" }, | |
| 2129 | + { "diff-command", 0, 40, 0, 0, "" }, | |
| 2130 | + { "dont-push", 0, 0, 0, 0, "off" }, | |
| 2131 | + { "editor", 0, 32, 0, 0, "" }, | |
| 2132 | + { "empty-dirs", 0, 40, 1, 0, "" }, | |
| 2133 | + { "encoding-glob", 0, 40, 1, 0, "" }, | |
| 2134 | + { "gdiff-command", 0, 40, 0, 0, "gdiff" }, | |
| 2135 | + { "gmerge-command", 0, 40, 0, 0, "" }, | |
| 2136 | + { "http-port", 0, 16, 0, 0, "8080" }, | |
| 2137 | + { "https-login", 0, 0, 0, 0, "off" }, | |
| 2138 | + { "ignore-glob", 0, 40, 1, 0, "" }, | |
| 2139 | + { "keep-glob", 0, 40, 1, 0, "" }, | |
| 2140 | + { "localauth", 0, 0, 0, 0, "off" }, | |
| 2141 | + { "main-branch", 0, 40, 0, 0, "trunk" }, | |
| 2142 | + { "manifest", 0, 0, 1, 0, "off" }, | |
| 2143 | + { "max-upload", 0, 25, 0, 0, "250000" }, | |
| 2144 | + { "mtime-changes", 0, 0, 0, 0, "on" }, | |
| 2145 | + { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, | |
| 2146 | + { "proxy", 0, 32, 0, 0, "off" }, | |
| 2147 | + { "relative-paths", 0, 0, 0, 0, "on" }, | |
| 2148 | + { "repo-cksum", 0, 0, 0, 0, "on" }, | |
| 2149 | + { "self-register", 0, 0, 0, 0, "off" }, | |
| 2150 | + { "ssh-command", 0, 40, 0, 0, "" }, | |
| 2151 | + { "ssl-ca-location", 0, 40, 0, 0, "" }, | |
| 2152 | + { "ssl-identity", 0, 40, 0, 0, "" }, | |
| 2151 | 2153 | #ifdef FOSSIL_ENABLE_TCL |
| 2152 | - { "tcl", 0, 0, 0, "off" }, | |
| 2153 | - { "tcl-setup", 0, 40, 0, "" }, | |
| 2154 | + { "tcl", 0, 0, 0, 0, "off" }, | |
| 2155 | + { "tcl-setup", 0, 40, 0, 1, "" }, | |
| 2154 | 2156 | #endif |
| 2155 | - { "th1-setup", 0, 40, 0, "" }, | |
| 2156 | - { "th1-uri-regexp",0, 40, 0, "" }, | |
| 2157 | - { "web-browser", 0, 32, 0, "" }, | |
| 2158 | - { "white-foreground", 0, 0, 0, "off" }, | |
| 2159 | - { 0,0,0,0,0 } | |
| 2157 | + { "th1-setup", 0, 40, 0, 1, "" }, | |
| 2158 | + { "th1-uri-regexp", 0, 40, 0, 0, "" }, | |
| 2159 | + { "web-browser", 0, 32, 0, 0, "" }, | |
| 2160 | + { "white-foreground", 0, 0, 0, 0, "off" }, | |
| 2161 | + { 0,0,0,0,0,0 } | |
| 2160 | 2162 | }; |
| 2161 | 2163 | |
| 2162 | 2164 | /* |
| 2163 | 2165 | ** COMMAND: settings |
| 2164 | 2166 | ** COMMAND: unset* |
| 2165 | 2167 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2099,66 +2099,68 @@ | |
| 2099 | */ |
| 2100 | #if INTERFACE |
| 2101 | struct stControlSettings { |
| 2102 | char const *name; /* Name of the setting */ |
| 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | int width; /* Width of display. 0 for boolean values */ |
| 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | char const *def; /* Default value */ |
| 2107 | }; |
| 2108 | #endif /* INTERFACE */ |
| 2109 | struct stControlSettings const ctrlSettings[] = { |
| 2110 | { "access-log", 0, 0, 0, "off" }, |
| 2111 | { "allow-symlinks",0, 0, 1, "off" }, |
| 2112 | { "auto-captcha", "autocaptcha", 0, 0, "on" }, |
| 2113 | { "auto-hyperlink",0, 0, 0, "on", }, |
| 2114 | { "auto-shun", 0, 0, 0, "on" }, |
| 2115 | { "autosync", 0, 0, 0, "on" }, |
| 2116 | { "binary-glob", 0, 40, 1, "" }, |
| 2117 | { "clearsign", 0, 0, 0, "off" }, |
| 2118 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || defined(__APPLE__) |
| 2119 | { "case-sensitive",0, 0, 0, "off" }, |
| 2120 | #else |
| 2121 | { "case-sensitive",0, 0, 0, "on" }, |
| 2122 | #endif |
| 2123 | { "clean-glob", 0, 40, 1, "" }, |
| 2124 | { "crnl-glob", 0, 40, 1, "" }, |
| 2125 | { "default-perms", 0, 16, 0, "u" }, |
| 2126 | { "diff-binary", 0, 0, 0, "on" }, |
| 2127 | { "diff-command", 0, 40, 0, "" }, |
| 2128 | { "dont-push", 0, 0, 0, "off" }, |
| 2129 | { "editor", 0, 32, 0, "" }, |
| 2130 | { "empty-dirs", 0, 40, 1, "" }, |
| 2131 | { "encoding-glob", 0, 40, 1, "" }, |
| 2132 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2133 | { "gmerge-command",0, 40, 0, "" }, |
| 2134 | { "http-port", 0, 16, 0, "8080" }, |
| 2135 | { "https-login", 0, 0, 0, "off" }, |
| 2136 | { "ignore-glob", 0, 40, 1, "" }, |
| 2137 | { "keep-glob", 0, 40, 1, "" }, |
| 2138 | { "localauth", 0, 0, 0, "off" }, |
| 2139 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2140 | { "manifest", 0, 0, 1, "off" }, |
| 2141 | { "max-upload", 0, 25, 0, "250000" }, |
| 2142 | { "mtime-changes", 0, 0, 0, "on" }, |
| 2143 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2144 | { "proxy", 0, 32, 0, "off" }, |
| 2145 | { "relative-paths",0, 0, 0, "on" }, |
| 2146 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2147 | { "self-register", 0, 0, 0, "off" }, |
| 2148 | { "ssh-command", 0, 40, 0, "" }, |
| 2149 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2150 | { "ssl-identity", 0, 40, 0, "" }, |
| 2151 | #ifdef FOSSIL_ENABLE_TCL |
| 2152 | { "tcl", 0, 0, 0, "off" }, |
| 2153 | { "tcl-setup", 0, 40, 0, "" }, |
| 2154 | #endif |
| 2155 | { "th1-setup", 0, 40, 0, "" }, |
| 2156 | { "th1-uri-regexp",0, 40, 0, "" }, |
| 2157 | { "web-browser", 0, 32, 0, "" }, |
| 2158 | { "white-foreground", 0, 0, 0, "off" }, |
| 2159 | { 0,0,0,0,0 } |
| 2160 | }; |
| 2161 | |
| 2162 | /* |
| 2163 | ** COMMAND: settings |
| 2164 | ** COMMAND: unset* |
| 2165 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2099,66 +2099,68 @@ | |
| 2099 | */ |
| 2100 | #if INTERFACE |
| 2101 | struct stControlSettings { |
| 2102 | char const *name; /* Name of the setting */ |
| 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | int width; /* Width of display. 0 for boolean values. */ |
| 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | int forceTextArea; /* Force using a text area for display? */ |
| 2107 | char const *def; /* Default value */ |
| 2108 | }; |
| 2109 | #endif /* INTERFACE */ |
| 2110 | struct stControlSettings const ctrlSettings[] = { |
| 2111 | { "access-log", 0, 0, 0, 0, "off" }, |
| 2112 | { "allow-symlinks", 0, 0, 1, 0, "off" }, |
| 2113 | { "auto-captcha", "autocaptcha", 0, 0, 0, "on" }, |
| 2114 | { "auto-hyperlink", 0, 0, 0, 0, "on", }, |
| 2115 | { "auto-shun", 0, 0, 0, 0, "on" }, |
| 2116 | { "autosync", 0, 0, 0, 0, "on" }, |
| 2117 | { "binary-glob", 0, 40, 1, 0, "" }, |
| 2118 | { "clearsign", 0, 0, 0, 0, "off" }, |
| 2119 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || \ |
| 2120 | defined(__APPLE__) |
| 2121 | { "case-sensitive", 0, 0, 0, 0, "off" }, |
| 2122 | #else |
| 2123 | { "case-sensitive", 0, 0, 0, 0, "on" }, |
| 2124 | #endif |
| 2125 | { "clean-glob", 0, 40, 1, 0, "" }, |
| 2126 | { "crnl-glob", 0, 40, 1, 0, "" }, |
| 2127 | { "default-perms", 0, 16, 0, 0, "u" }, |
| 2128 | { "diff-binary", 0, 0, 0, 0, "on" }, |
| 2129 | { "diff-command", 0, 40, 0, 0, "" }, |
| 2130 | { "dont-push", 0, 0, 0, 0, "off" }, |
| 2131 | { "editor", 0, 32, 0, 0, "" }, |
| 2132 | { "empty-dirs", 0, 40, 1, 0, "" }, |
| 2133 | { "encoding-glob", 0, 40, 1, 0, "" }, |
| 2134 | { "gdiff-command", 0, 40, 0, 0, "gdiff" }, |
| 2135 | { "gmerge-command", 0, 40, 0, 0, "" }, |
| 2136 | { "http-port", 0, 16, 0, 0, "8080" }, |
| 2137 | { "https-login", 0, 0, 0, 0, "off" }, |
| 2138 | { "ignore-glob", 0, 40, 1, 0, "" }, |
| 2139 | { "keep-glob", 0, 40, 1, 0, "" }, |
| 2140 | { "localauth", 0, 0, 0, 0, "off" }, |
| 2141 | { "main-branch", 0, 40, 0, 0, "trunk" }, |
| 2142 | { "manifest", 0, 0, 1, 0, "off" }, |
| 2143 | { "max-upload", 0, 25, 0, 0, "250000" }, |
| 2144 | { "mtime-changes", 0, 0, 0, 0, "on" }, |
| 2145 | { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, |
| 2146 | { "proxy", 0, 32, 0, 0, "off" }, |
| 2147 | { "relative-paths", 0, 0, 0, 0, "on" }, |
| 2148 | { "repo-cksum", 0, 0, 0, 0, "on" }, |
| 2149 | { "self-register", 0, 0, 0, 0, "off" }, |
| 2150 | { "ssh-command", 0, 40, 0, 0, "" }, |
| 2151 | { "ssl-ca-location", 0, 40, 0, 0, "" }, |
| 2152 | { "ssl-identity", 0, 40, 0, 0, "" }, |
| 2153 | #ifdef FOSSIL_ENABLE_TCL |
| 2154 | { "tcl", 0, 0, 0, 0, "off" }, |
| 2155 | { "tcl-setup", 0, 40, 0, 1, "" }, |
| 2156 | #endif |
| 2157 | { "th1-setup", 0, 40, 0, 1, "" }, |
| 2158 | { "th1-uri-regexp", 0, 40, 0, 0, "" }, |
| 2159 | { "web-browser", 0, 32, 0, 0, "" }, |
| 2160 | { "white-foreground", 0, 0, 0, 0, "off" }, |
| 2161 | { 0,0,0,0,0,0 } |
| 2162 | }; |
| 2163 | |
| 2164 | /* |
| 2165 | ** COMMAND: settings |
| 2166 | ** COMMAND: unset* |
| 2167 |
M
src/db.c
+49
-47
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -2099,66 +2099,68 @@ | ||
| 2099 | 2099 | */ |
| 2100 | 2100 | #if INTERFACE |
| 2101 | 2101 | struct stControlSettings { |
| 2102 | 2102 | char const *name; /* Name of the setting */ |
| 2103 | 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | - int width; /* Width of display. 0 for boolean values */ | |
| 2104 | + int width; /* Width of display. 0 for boolean values. */ | |
| 2105 | 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | + int forceTextArea; /* Force using a text area for display? */ | |
| 2106 | 2107 | char const *def; /* Default value */ |
| 2107 | 2108 | }; |
| 2108 | 2109 | #endif /* INTERFACE */ |
| 2109 | 2110 | struct stControlSettings const ctrlSettings[] = { |
| 2110 | - { "access-log", 0, 0, 0, "off" }, | |
| 2111 | - { "allow-symlinks",0, 0, 1, "off" }, | |
| 2112 | - { "auto-captcha", "autocaptcha", 0, 0, "on" }, | |
| 2113 | - { "auto-hyperlink",0, 0, 0, "on", }, | |
| 2114 | - { "auto-shun", 0, 0, 0, "on" }, | |
| 2115 | - { "autosync", 0, 0, 0, "on" }, | |
| 2116 | - { "binary-glob", 0, 40, 1, "" }, | |
| 2117 | - { "clearsign", 0, 0, 0, "off" }, | |
| 2118 | -#if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || defined(__APPLE__) | |
| 2119 | - { "case-sensitive",0, 0, 0, "off" }, | |
| 2111 | + { "access-log", 0, 0, 0, 0, "off" }, | |
| 2112 | + { "allow-symlinks", 0, 0, 1, 0, "off" }, | |
| 2113 | + { "auto-captcha", "autocaptcha", 0, 0, 0, "on" }, | |
| 2114 | + { "auto-hyperlink", 0, 0, 0, 0, "on", }, | |
| 2115 | + { "auto-shun", 0, 0, 0, 0, "on" }, | |
| 2116 | + { "autosync", 0, 0, 0, 0, "on" }, | |
| 2117 | + { "binary-glob", 0, 40, 1, 0, "" }, | |
| 2118 | + { "clearsign", 0, 0, 0, 0, "off" }, | |
| 2119 | +#if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || \ | |
| 2120 | + defined(__APPLE__) | |
| 2121 | + { "case-sensitive", 0, 0, 0, 0, "off" }, | |
| 2120 | 2122 | #else |
| 2121 | - { "case-sensitive",0, 0, 0, "on" }, | |
| 2123 | + { "case-sensitive", 0, 0, 0, 0, "on" }, | |
| 2122 | 2124 | #endif |
| 2123 | - { "clean-glob", 0, 40, 1, "" }, | |
| 2124 | - { "crnl-glob", 0, 40, 1, "" }, | |
| 2125 | - { "default-perms", 0, 16, 0, "u" }, | |
| 2126 | - { "diff-binary", 0, 0, 0, "on" }, | |
| 2127 | - { "diff-command", 0, 40, 0, "" }, | |
| 2128 | - { "dont-push", 0, 0, 0, "off" }, | |
| 2129 | - { "editor", 0, 32, 0, "" }, | |
| 2130 | - { "empty-dirs", 0, 40, 1, "" }, | |
| 2131 | - { "encoding-glob", 0, 40, 1, "" }, | |
| 2132 | - { "gdiff-command", 0, 40, 0, "gdiff" }, | |
| 2133 | - { "gmerge-command",0, 40, 0, "" }, | |
| 2134 | - { "http-port", 0, 16, 0, "8080" }, | |
| 2135 | - { "https-login", 0, 0, 0, "off" }, | |
| 2136 | - { "ignore-glob", 0, 40, 1, "" }, | |
| 2137 | - { "keep-glob", 0, 40, 1, "" }, | |
| 2138 | - { "localauth", 0, 0, 0, "off" }, | |
| 2139 | - { "main-branch", 0, 40, 0, "trunk" }, | |
| 2140 | - { "manifest", 0, 0, 1, "off" }, | |
| 2141 | - { "max-upload", 0, 25, 0, "250000" }, | |
| 2142 | - { "mtime-changes", 0, 0, 0, "on" }, | |
| 2143 | - { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, | |
| 2144 | - { "proxy", 0, 32, 0, "off" }, | |
| 2145 | - { "relative-paths",0, 0, 0, "on" }, | |
| 2146 | - { "repo-cksum", 0, 0, 0, "on" }, | |
| 2147 | - { "self-register", 0, 0, 0, "off" }, | |
| 2148 | - { "ssh-command", 0, 40, 0, "" }, | |
| 2149 | - { "ssl-ca-location",0, 40, 0, "" }, | |
| 2150 | - { "ssl-identity", 0, 40, 0, "" }, | |
| 2125 | + { "clean-glob", 0, 40, 1, 0, "" }, | |
| 2126 | + { "crnl-glob", 0, 40, 1, 0, "" }, | |
| 2127 | + { "default-perms", 0, 16, 0, 0, "u" }, | |
| 2128 | + { "diff-binary", 0, 0, 0, 0, "on" }, | |
| 2129 | + { "diff-command", 0, 40, 0, 0, "" }, | |
| 2130 | + { "dont-push", 0, 0, 0, 0, "off" }, | |
| 2131 | + { "editor", 0, 32, 0, 0, "" }, | |
| 2132 | + { "empty-dirs", 0, 40, 1, 0, "" }, | |
| 2133 | + { "encoding-glob", 0, 40, 1, 0, "" }, | |
| 2134 | + { "gdiff-command", 0, 40, 0, 0, "gdiff" }, | |
| 2135 | + { "gmerge-command", 0, 40, 0, 0, "" }, | |
| 2136 | + { "http-port", 0, 16, 0, 0, "8080" }, | |
| 2137 | + { "https-login", 0, 0, 0, 0, "off" }, | |
| 2138 | + { "ignore-glob", 0, 40, 1, 0, "" }, | |
| 2139 | + { "keep-glob", 0, 40, 1, 0, "" }, | |
| 2140 | + { "localauth", 0, 0, 0, 0, "off" }, | |
| 2141 | + { "main-branch", 0, 40, 0, 0, "trunk" }, | |
| 2142 | + { "manifest", 0, 0, 1, 0, "off" }, | |
| 2143 | + { "max-upload", 0, 25, 0, 0, "250000" }, | |
| 2144 | + { "mtime-changes", 0, 0, 0, 0, "on" }, | |
| 2145 | + { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, | |
| 2146 | + { "proxy", 0, 32, 0, 0, "off" }, | |
| 2147 | + { "relative-paths", 0, 0, 0, 0, "on" }, | |
| 2148 | + { "repo-cksum", 0, 0, 0, 0, "on" }, | |
| 2149 | + { "self-register", 0, 0, 0, 0, "off" }, | |
| 2150 | + { "ssh-command", 0, 40, 0, 0, "" }, | |
| 2151 | + { "ssl-ca-location", 0, 40, 0, 0, "" }, | |
| 2152 | + { "ssl-identity", 0, 40, 0, 0, "" }, | |
| 2151 | 2153 | #ifdef FOSSIL_ENABLE_TCL |
| 2152 | - { "tcl", 0, 0, 0, "off" }, | |
| 2153 | - { "tcl-setup", 0, 40, 0, "" }, | |
| 2154 | + { "tcl", 0, 0, 0, 0, "off" }, | |
| 2155 | + { "tcl-setup", 0, 40, 0, 1, "" }, | |
| 2154 | 2156 | #endif |
| 2155 | - { "th1-setup", 0, 40, 0, "" }, | |
| 2156 | - { "th1-uri-regexp",0, 40, 0, "" }, | |
| 2157 | - { "web-browser", 0, 32, 0, "" }, | |
| 2158 | - { "white-foreground", 0, 0, 0, "off" }, | |
| 2159 | - { 0,0,0,0,0 } | |
| 2157 | + { "th1-setup", 0, 40, 0, 1, "" }, | |
| 2158 | + { "th1-uri-regexp", 0, 40, 0, 0, "" }, | |
| 2159 | + { "web-browser", 0, 32, 0, 0, "" }, | |
| 2160 | + { "white-foreground", 0, 0, 0, 0, "off" }, | |
| 2161 | + { 0,0,0,0,0,0 } | |
| 2160 | 2162 | }; |
| 2161 | 2163 | |
| 2162 | 2164 | /* |
| 2163 | 2165 | ** COMMAND: settings |
| 2164 | 2166 | ** COMMAND: unset* |
| 2165 | 2167 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2099,66 +2099,68 @@ | |
| 2099 | */ |
| 2100 | #if INTERFACE |
| 2101 | struct stControlSettings { |
| 2102 | char const *name; /* Name of the setting */ |
| 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | int width; /* Width of display. 0 for boolean values */ |
| 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | char const *def; /* Default value */ |
| 2107 | }; |
| 2108 | #endif /* INTERFACE */ |
| 2109 | struct stControlSettings const ctrlSettings[] = { |
| 2110 | { "access-log", 0, 0, 0, "off" }, |
| 2111 | { "allow-symlinks",0, 0, 1, "off" }, |
| 2112 | { "auto-captcha", "autocaptcha", 0, 0, "on" }, |
| 2113 | { "auto-hyperlink",0, 0, 0, "on", }, |
| 2114 | { "auto-shun", 0, 0, 0, "on" }, |
| 2115 | { "autosync", 0, 0, 0, "on" }, |
| 2116 | { "binary-glob", 0, 40, 1, "" }, |
| 2117 | { "clearsign", 0, 0, 0, "off" }, |
| 2118 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || defined(__APPLE__) |
| 2119 | { "case-sensitive",0, 0, 0, "off" }, |
| 2120 | #else |
| 2121 | { "case-sensitive",0, 0, 0, "on" }, |
| 2122 | #endif |
| 2123 | { "clean-glob", 0, 40, 1, "" }, |
| 2124 | { "crnl-glob", 0, 40, 1, "" }, |
| 2125 | { "default-perms", 0, 16, 0, "u" }, |
| 2126 | { "diff-binary", 0, 0, 0, "on" }, |
| 2127 | { "diff-command", 0, 40, 0, "" }, |
| 2128 | { "dont-push", 0, 0, 0, "off" }, |
| 2129 | { "editor", 0, 32, 0, "" }, |
| 2130 | { "empty-dirs", 0, 40, 1, "" }, |
| 2131 | { "encoding-glob", 0, 40, 1, "" }, |
| 2132 | { "gdiff-command", 0, 40, 0, "gdiff" }, |
| 2133 | { "gmerge-command",0, 40, 0, "" }, |
| 2134 | { "http-port", 0, 16, 0, "8080" }, |
| 2135 | { "https-login", 0, 0, 0, "off" }, |
| 2136 | { "ignore-glob", 0, 40, 1, "" }, |
| 2137 | { "keep-glob", 0, 40, 1, "" }, |
| 2138 | { "localauth", 0, 0, 0, "off" }, |
| 2139 | { "main-branch", 0, 40, 0, "trunk" }, |
| 2140 | { "manifest", 0, 0, 1, "off" }, |
| 2141 | { "max-upload", 0, 25, 0, "250000" }, |
| 2142 | { "mtime-changes", 0, 0, 0, "on" }, |
| 2143 | { "pgp-command", 0, 40, 0, "gpg --clearsign -o " }, |
| 2144 | { "proxy", 0, 32, 0, "off" }, |
| 2145 | { "relative-paths",0, 0, 0, "on" }, |
| 2146 | { "repo-cksum", 0, 0, 0, "on" }, |
| 2147 | { "self-register", 0, 0, 0, "off" }, |
| 2148 | { "ssh-command", 0, 40, 0, "" }, |
| 2149 | { "ssl-ca-location",0, 40, 0, "" }, |
| 2150 | { "ssl-identity", 0, 40, 0, "" }, |
| 2151 | #ifdef FOSSIL_ENABLE_TCL |
| 2152 | { "tcl", 0, 0, 0, "off" }, |
| 2153 | { "tcl-setup", 0, 40, 0, "" }, |
| 2154 | #endif |
| 2155 | { "th1-setup", 0, 40, 0, "" }, |
| 2156 | { "th1-uri-regexp",0, 40, 0, "" }, |
| 2157 | { "web-browser", 0, 32, 0, "" }, |
| 2158 | { "white-foreground", 0, 0, 0, "off" }, |
| 2159 | { 0,0,0,0,0 } |
| 2160 | }; |
| 2161 | |
| 2162 | /* |
| 2163 | ** COMMAND: settings |
| 2164 | ** COMMAND: unset* |
| 2165 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -2099,66 +2099,68 @@ | |
| 2099 | */ |
| 2100 | #if INTERFACE |
| 2101 | struct stControlSettings { |
| 2102 | char const *name; /* Name of the setting */ |
| 2103 | char const *var; /* Internal variable name used by db_set() */ |
| 2104 | int width; /* Width of display. 0 for boolean values. */ |
| 2105 | int versionable; /* Is this setting versionable? */ |
| 2106 | int forceTextArea; /* Force using a text area for display? */ |
| 2107 | char const *def; /* Default value */ |
| 2108 | }; |
| 2109 | #endif /* INTERFACE */ |
| 2110 | struct stControlSettings const ctrlSettings[] = { |
| 2111 | { "access-log", 0, 0, 0, 0, "off" }, |
| 2112 | { "allow-symlinks", 0, 0, 1, 0, "off" }, |
| 2113 | { "auto-captcha", "autocaptcha", 0, 0, 0, "on" }, |
| 2114 | { "auto-hyperlink", 0, 0, 0, 0, "on", }, |
| 2115 | { "auto-shun", 0, 0, 0, 0, "on" }, |
| 2116 | { "autosync", 0, 0, 0, 0, "on" }, |
| 2117 | { "binary-glob", 0, 40, 1, 0, "" }, |
| 2118 | { "clearsign", 0, 0, 0, 0, "off" }, |
| 2119 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__DARWIN__) || \ |
| 2120 | defined(__APPLE__) |
| 2121 | { "case-sensitive", 0, 0, 0, 0, "off" }, |
| 2122 | #else |
| 2123 | { "case-sensitive", 0, 0, 0, 0, "on" }, |
| 2124 | #endif |
| 2125 | { "clean-glob", 0, 40, 1, 0, "" }, |
| 2126 | { "crnl-glob", 0, 40, 1, 0, "" }, |
| 2127 | { "default-perms", 0, 16, 0, 0, "u" }, |
| 2128 | { "diff-binary", 0, 0, 0, 0, "on" }, |
| 2129 | { "diff-command", 0, 40, 0, 0, "" }, |
| 2130 | { "dont-push", 0, 0, 0, 0, "off" }, |
| 2131 | { "editor", 0, 32, 0, 0, "" }, |
| 2132 | { "empty-dirs", 0, 40, 1, 0, "" }, |
| 2133 | { "encoding-glob", 0, 40, 1, 0, "" }, |
| 2134 | { "gdiff-command", 0, 40, 0, 0, "gdiff" }, |
| 2135 | { "gmerge-command", 0, 40, 0, 0, "" }, |
| 2136 | { "http-port", 0, 16, 0, 0, "8080" }, |
| 2137 | { "https-login", 0, 0, 0, 0, "off" }, |
| 2138 | { "ignore-glob", 0, 40, 1, 0, "" }, |
| 2139 | { "keep-glob", 0, 40, 1, 0, "" }, |
| 2140 | { "localauth", 0, 0, 0, 0, "off" }, |
| 2141 | { "main-branch", 0, 40, 0, 0, "trunk" }, |
| 2142 | { "manifest", 0, 0, 1, 0, "off" }, |
| 2143 | { "max-upload", 0, 25, 0, 0, "250000" }, |
| 2144 | { "mtime-changes", 0, 0, 0, 0, "on" }, |
| 2145 | { "pgp-command", 0, 40, 0, 0, "gpg --clearsign -o " }, |
| 2146 | { "proxy", 0, 32, 0, 0, "off" }, |
| 2147 | { "relative-paths", 0, 0, 0, 0, "on" }, |
| 2148 | { "repo-cksum", 0, 0, 0, 0, "on" }, |
| 2149 | { "self-register", 0, 0, 0, 0, "off" }, |
| 2150 | { "ssh-command", 0, 40, 0, 0, "" }, |
| 2151 | { "ssl-ca-location", 0, 40, 0, 0, "" }, |
| 2152 | { "ssl-identity", 0, 40, 0, 0, "" }, |
| 2153 | #ifdef FOSSIL_ENABLE_TCL |
| 2154 | { "tcl", 0, 0, 0, 0, "off" }, |
| 2155 | { "tcl-setup", 0, 40, 0, 1, "" }, |
| 2156 | #endif |
| 2157 | { "th1-setup", 0, 40, 0, 1, "" }, |
| 2158 | { "th1-uri-regexp", 0, 40, 0, 0, "" }, |
| 2159 | { "web-browser", 0, 32, 0, 0, "" }, |
| 2160 | { "white-foreground", 0, 0, 0, 0, "off" }, |
| 2161 | { 0,0,0,0,0,0 } |
| 2162 | }; |
| 2163 | |
| 2164 | /* |
| 2165 | ** COMMAND: settings |
| 2166 | ** COMMAND: unset* |
| 2167 |
+13
-4
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1263,32 +1263,41 @@ | ||
| 1263 | 1263 | } else { |
| 1264 | 1264 | @ <br /> |
| 1265 | 1265 | } |
| 1266 | 1266 | } |
| 1267 | 1267 | } |
| 1268 | + @ <br /><input type="submit" name="submit" value="Apply Changes" /> | |
| 1268 | 1269 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1269 | 1270 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1270 | - if( pSet->width!=0 && !pSet->versionable){ | |
| 1271 | + if( pSet->width!=0 && !pSet->versionable && !pSet->forceTextArea ){ | |
| 1271 | 1272 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1272 | 1273 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1273 | 1274 | (char*)pSet->def, 0); |
| 1274 | 1275 | @ <br /> |
| 1275 | 1276 | } |
| 1277 | + } | |
| 1278 | + for(pSet=ctrlSettings; pSet->name!=0; pSet++){ | |
| 1279 | + if( pSet->width!=0 && !pSet->versionable && pSet->forceTextArea ){ | |
| 1280 | + @<b>%s(pSet->name)</b><br /> | |
| 1281 | + textarea_attribute("", /*rows*/ 3, /*cols*/ 50, pSet->name, | |
| 1282 | + pSet->var!=0 ? pSet->var : pSet->name, | |
| 1283 | + (char*)pSet->def, 0); | |
| 1284 | + @ <br /> | |
| 1285 | + } | |
| 1276 | 1286 | } |
| 1277 | 1287 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1278 | 1288 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | - int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; | |
| 1280 | - if( pSet->width!=0 && pSet->versionable){ | |
| 1289 | + if( pSet->width!=0 && pSet->versionable ){ | |
| 1290 | + int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; | |
| 1281 | 1291 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1282 | 1292 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1283 | 1293 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1284 | 1294 | (char*)pSet->def, hasVersionableValue); |
| 1285 | 1295 | @<br /> |
| 1286 | 1296 | } |
| 1287 | 1297 | } |
| 1288 | 1298 | @ </td></tr></table> |
| 1289 | - @ <p><input type="submit" name="submit" value="Apply Changes" /></p> | |
| 1290 | 1299 | @ </div></form> |
| 1291 | 1300 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1292 | 1301 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1293 | 1302 | @ If such a file is present, the corresponding field above is not |
| 1294 | 1303 | @ editable.</p><hr /><p> |
| 1295 | 1304 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,32 +1263,41 @@ | |
| 1263 | } else { |
| 1264 | @ <br /> |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1269 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1270 | if( pSet->width!=0 && !pSet->versionable){ |
| 1271 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1272 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1273 | (char*)pSet->def, 0); |
| 1274 | @ <br /> |
| 1275 | } |
| 1276 | } |
| 1277 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1278 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; |
| 1280 | if( pSet->width!=0 && pSet->versionable){ |
| 1281 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1282 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1283 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1284 | (char*)pSet->def, hasVersionableValue); |
| 1285 | @<br /> |
| 1286 | } |
| 1287 | } |
| 1288 | @ </td></tr></table> |
| 1289 | @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 1290 | @ </div></form> |
| 1291 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1292 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1293 | @ If such a file is present, the corresponding field above is not |
| 1294 | @ editable.</p><hr /><p> |
| 1295 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,32 +1263,41 @@ | |
| 1263 | } else { |
| 1264 | @ <br /> |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @ <br /><input type="submit" name="submit" value="Apply Changes" /> |
| 1269 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1270 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1271 | if( pSet->width!=0 && !pSet->versionable && !pSet->forceTextArea ){ |
| 1272 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1273 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1274 | (char*)pSet->def, 0); |
| 1275 | @ <br /> |
| 1276 | } |
| 1277 | } |
| 1278 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | if( pSet->width!=0 && !pSet->versionable && pSet->forceTextArea ){ |
| 1280 | @<b>%s(pSet->name)</b><br /> |
| 1281 | textarea_attribute("", /*rows*/ 3, /*cols*/ 50, pSet->name, |
| 1282 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1283 | (char*)pSet->def, 0); |
| 1284 | @ <br /> |
| 1285 | } |
| 1286 | } |
| 1287 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1288 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1289 | if( pSet->width!=0 && pSet->versionable ){ |
| 1290 | int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; |
| 1291 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1292 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1293 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1294 | (char*)pSet->def, hasVersionableValue); |
| 1295 | @<br /> |
| 1296 | } |
| 1297 | } |
| 1298 | @ </td></tr></table> |
| 1299 | @ </div></form> |
| 1300 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1301 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1302 | @ If such a file is present, the corresponding field above is not |
| 1303 | @ editable.</p><hr /><p> |
| 1304 |
+13
-4
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1263,32 +1263,41 @@ | ||
| 1263 | 1263 | } else { |
| 1264 | 1264 | @ <br /> |
| 1265 | 1265 | } |
| 1266 | 1266 | } |
| 1267 | 1267 | } |
| 1268 | + @ <br /><input type="submit" name="submit" value="Apply Changes" /> | |
| 1268 | 1269 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1269 | 1270 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1270 | - if( pSet->width!=0 && !pSet->versionable){ | |
| 1271 | + if( pSet->width!=0 && !pSet->versionable && !pSet->forceTextArea ){ | |
| 1271 | 1272 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1272 | 1273 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1273 | 1274 | (char*)pSet->def, 0); |
| 1274 | 1275 | @ <br /> |
| 1275 | 1276 | } |
| 1277 | + } | |
| 1278 | + for(pSet=ctrlSettings; pSet->name!=0; pSet++){ | |
| 1279 | + if( pSet->width!=0 && !pSet->versionable && pSet->forceTextArea ){ | |
| 1280 | + @<b>%s(pSet->name)</b><br /> | |
| 1281 | + textarea_attribute("", /*rows*/ 3, /*cols*/ 50, pSet->name, | |
| 1282 | + pSet->var!=0 ? pSet->var : pSet->name, | |
| 1283 | + (char*)pSet->def, 0); | |
| 1284 | + @ <br /> | |
| 1285 | + } | |
| 1276 | 1286 | } |
| 1277 | 1287 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1278 | 1288 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | - int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; | |
| 1280 | - if( pSet->width!=0 && pSet->versionable){ | |
| 1289 | + if( pSet->width!=0 && pSet->versionable ){ | |
| 1290 | + int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; | |
| 1281 | 1291 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1282 | 1292 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1283 | 1293 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1284 | 1294 | (char*)pSet->def, hasVersionableValue); |
| 1285 | 1295 | @<br /> |
| 1286 | 1296 | } |
| 1287 | 1297 | } |
| 1288 | 1298 | @ </td></tr></table> |
| 1289 | - @ <p><input type="submit" name="submit" value="Apply Changes" /></p> | |
| 1290 | 1299 | @ </div></form> |
| 1291 | 1300 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1292 | 1301 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1293 | 1302 | @ If such a file is present, the corresponding field above is not |
| 1294 | 1303 | @ editable.</p><hr /><p> |
| 1295 | 1304 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,32 +1263,41 @@ | |
| 1263 | } else { |
| 1264 | @ <br /> |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1269 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1270 | if( pSet->width!=0 && !pSet->versionable){ |
| 1271 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1272 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1273 | (char*)pSet->def, 0); |
| 1274 | @ <br /> |
| 1275 | } |
| 1276 | } |
| 1277 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1278 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; |
| 1280 | if( pSet->width!=0 && pSet->versionable){ |
| 1281 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1282 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1283 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1284 | (char*)pSet->def, hasVersionableValue); |
| 1285 | @<br /> |
| 1286 | } |
| 1287 | } |
| 1288 | @ </td></tr></table> |
| 1289 | @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 1290 | @ </div></form> |
| 1291 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1292 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1293 | @ If such a file is present, the corresponding field above is not |
| 1294 | @ editable.</p><hr /><p> |
| 1295 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,32 +1263,41 @@ | |
| 1263 | } else { |
| 1264 | @ <br /> |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @ <br /><input type="submit" name="submit" value="Apply Changes" /> |
| 1269 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1270 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1271 | if( pSet->width!=0 && !pSet->versionable && !pSet->forceTextArea ){ |
| 1272 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1273 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1274 | (char*)pSet->def, 0); |
| 1275 | @ <br /> |
| 1276 | } |
| 1277 | } |
| 1278 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | if( pSet->width!=0 && !pSet->versionable && pSet->forceTextArea ){ |
| 1280 | @<b>%s(pSet->name)</b><br /> |
| 1281 | textarea_attribute("", /*rows*/ 3, /*cols*/ 50, pSet->name, |
| 1282 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1283 | (char*)pSet->def, 0); |
| 1284 | @ <br /> |
| 1285 | } |
| 1286 | } |
| 1287 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1288 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1289 | if( pSet->width!=0 && pSet->versionable ){ |
| 1290 | int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; |
| 1291 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1292 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1293 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1294 | (char*)pSet->def, hasVersionableValue); |
| 1295 | @<br /> |
| 1296 | } |
| 1297 | } |
| 1298 | @ </td></tr></table> |
| 1299 | @ </div></form> |
| 1300 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1301 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1302 | @ If such a file is present, the corresponding field above is not |
| 1303 | @ editable.</p><hr /><p> |
| 1304 |
+13
-4
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1263,32 +1263,41 @@ | ||
| 1263 | 1263 | } else { |
| 1264 | 1264 | @ <br /> |
| 1265 | 1265 | } |
| 1266 | 1266 | } |
| 1267 | 1267 | } |
| 1268 | + @ <br /><input type="submit" name="submit" value="Apply Changes" /> | |
| 1268 | 1269 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1269 | 1270 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1270 | - if( pSet->width!=0 && !pSet->versionable){ | |
| 1271 | + if( pSet->width!=0 && !pSet->versionable && !pSet->forceTextArea ){ | |
| 1271 | 1272 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1272 | 1273 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1273 | 1274 | (char*)pSet->def, 0); |
| 1274 | 1275 | @ <br /> |
| 1275 | 1276 | } |
| 1277 | + } | |
| 1278 | + for(pSet=ctrlSettings; pSet->name!=0; pSet++){ | |
| 1279 | + if( pSet->width!=0 && !pSet->versionable && pSet->forceTextArea ){ | |
| 1280 | + @<b>%s(pSet->name)</b><br /> | |
| 1281 | + textarea_attribute("", /*rows*/ 3, /*cols*/ 50, pSet->name, | |
| 1282 | + pSet->var!=0 ? pSet->var : pSet->name, | |
| 1283 | + (char*)pSet->def, 0); | |
| 1284 | + @ <br /> | |
| 1285 | + } | |
| 1276 | 1286 | } |
| 1277 | 1287 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1278 | 1288 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | - int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; | |
| 1280 | - if( pSet->width!=0 && pSet->versionable){ | |
| 1289 | + if( pSet->width!=0 && pSet->versionable ){ | |
| 1290 | + int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; | |
| 1281 | 1291 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1282 | 1292 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1283 | 1293 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1284 | 1294 | (char*)pSet->def, hasVersionableValue); |
| 1285 | 1295 | @<br /> |
| 1286 | 1296 | } |
| 1287 | 1297 | } |
| 1288 | 1298 | @ </td></tr></table> |
| 1289 | - @ <p><input type="submit" name="submit" value="Apply Changes" /></p> | |
| 1290 | 1299 | @ </div></form> |
| 1291 | 1300 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1292 | 1301 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1293 | 1302 | @ If such a file is present, the corresponding field above is not |
| 1294 | 1303 | @ editable.</p><hr /><p> |
| 1295 | 1304 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,32 +1263,41 @@ | |
| 1263 | } else { |
| 1264 | @ <br /> |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1269 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1270 | if( pSet->width!=0 && !pSet->versionable){ |
| 1271 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1272 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1273 | (char*)pSet->def, 0); |
| 1274 | @ <br /> |
| 1275 | } |
| 1276 | } |
| 1277 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1278 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; |
| 1280 | if( pSet->width!=0 && pSet->versionable){ |
| 1281 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1282 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1283 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1284 | (char*)pSet->def, hasVersionableValue); |
| 1285 | @<br /> |
| 1286 | } |
| 1287 | } |
| 1288 | @ </td></tr></table> |
| 1289 | @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 1290 | @ </div></form> |
| 1291 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1292 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1293 | @ If such a file is present, the corresponding field above is not |
| 1294 | @ editable.</p><hr /><p> |
| 1295 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1263,32 +1263,41 @@ | |
| 1263 | } else { |
| 1264 | @ <br /> |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @ <br /><input type="submit" name="submit" value="Apply Changes" /> |
| 1269 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1270 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1271 | if( pSet->width!=0 && !pSet->versionable && !pSet->forceTextArea ){ |
| 1272 | entry_attribute(pSet->name, /*pSet->width*/ 25, pSet->name, |
| 1273 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1274 | (char*)pSet->def, 0); |
| 1275 | @ <br /> |
| 1276 | } |
| 1277 | } |
| 1278 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1279 | if( pSet->width!=0 && !pSet->versionable && pSet->forceTextArea ){ |
| 1280 | @<b>%s(pSet->name)</b><br /> |
| 1281 | textarea_attribute("", /*rows*/ 3, /*cols*/ 50, pSet->name, |
| 1282 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1283 | (char*)pSet->def, 0); |
| 1284 | @ <br /> |
| 1285 | } |
| 1286 | } |
| 1287 | @ </td><td style="width:50px;"></td><td valign="top"> |
| 1288 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 1289 | if( pSet->width!=0 && pSet->versionable ){ |
| 1290 | int hasVersionableValue = db_get_do_versionable(pSet->name, NULL)!=0; |
| 1291 | @<b>%s(pSet->name)</b> (v)<br /> |
| 1292 | textarea_attribute("", /*rows*/ 3, /*cols*/ 20, pSet->name, |
| 1293 | pSet->var!=0 ? pSet->var : pSet->name, |
| 1294 | (char*)pSet->def, hasVersionableValue); |
| 1295 | @<br /> |
| 1296 | } |
| 1297 | } |
| 1298 | @ </td></tr></table> |
| 1299 | @ </div></form> |
| 1300 | @ <p>Settings marked with (v) are 'versionable' and will be overridden |
| 1301 | @ by the contents of files named <tt>.fossil-settings/PROPERTY</tt>. |
| 1302 | @ If such a file is present, the corresponding field above is not |
| 1303 | @ editable.</p><hr /><p> |
| 1304 |