Fossil SCM
Add the --external-baseline option to the "fossil ui" command, to force the initial page to use the exbase query parameter.
Commit
145ca85de9314ca16dadd17057f1f3fc18657c1a28cfff6eb9f19ec31c1cb7d4
Parent
16799dba71d9810…
1 file changed
+6
+6
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3175,10 +3175,11 @@ | ||
| 3175 | 3175 | ** --ckout-alias NAME Treat URIs of the form /doc/NAME/... as if they were |
| 3176 | 3176 | ** /doc/ckout/... |
| 3177 | 3177 | ** --create Create a new REPOSITORY if it does not already exist |
| 3178 | 3178 | ** --errorlog FILE Append HTTP error messages to FILE |
| 3179 | 3179 | ** --extroot DIR Document root for the /ext extension mechanism |
| 3180 | +** --external-baseline DIR External baseline for the initial /ckout page. | |
| 3180 | 3181 | ** --files GLOBLIST Comma-separated list of glob patterns for static files |
| 3181 | 3182 | ** --fossilcmd PATH The pathname of the "fossil" executable on the remote |
| 3182 | 3183 | ** system when REPOSITORY is remote. |
| 3183 | 3184 | ** --localauth Enable automatic login for requests from localhost |
| 3184 | 3185 | ** --localhost Listen on 127.0.0.1 only (always true for "ui") |
| @@ -3250,10 +3251,11 @@ | ||
| 3250 | 3251 | const char *zInitPage = 0; /* Start on this page. --page option */ |
| 3251 | 3252 | int findServerArg = 2; /* argv index for find_server_repository() */ |
| 3252 | 3253 | char *zRemote = 0; /* Remote host on which to run "fossil ui" */ |
| 3253 | 3254 | const char *zJsMode; /* The --jsmode parameter */ |
| 3254 | 3255 | const char *zFossilCmd =0; /* Name of "fossil" binary on remote system */ |
| 3256 | + const char *zExBase; /* Value for --external-baseline */ | |
| 3255 | 3257 | |
| 3256 | 3258 | |
| 3257 | 3259 | #if USE_SEE |
| 3258 | 3260 | db_setup_for_saved_encryption_key(); |
| 3259 | 3261 | #endif |
| @@ -3286,13 +3288,17 @@ | ||
| 3286 | 3288 | g.useLocalauth = find_option("localauth", 0, 0)!=0; |
| 3287 | 3289 | Th_InitTraceLog(); |
| 3288 | 3290 | zPort = find_option("port", "P", 1); |
| 3289 | 3291 | isUiCmd = g.argv[1][0]=='u'; |
| 3290 | 3292 | if( isUiCmd ){ |
| 3293 | + zExBase = find_option("external-baseline", 0, 1); | |
| 3291 | 3294 | zInitPage = find_option("page", "p", 1); |
| 3292 | 3295 | if( zInitPage && zInitPage[0]=='/' ) zInitPage++; |
| 3293 | 3296 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 3297 | + if( zExBase && zInitPage==0 ){ | |
| 3298 | + zInitPage = mprintf("ckout?exbase=%T", zExBase); | |
| 3299 | + } | |
| 3294 | 3300 | } |
| 3295 | 3301 | zNotFound = find_option("notfound", 0, 1); |
| 3296 | 3302 | allowRepoList = find_option("repolist",0,0)!=0; |
| 3297 | 3303 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 3298 | 3304 | zAltBase = find_option("baseurl", 0, 1); |
| 3299 | 3305 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3175,10 +3175,11 @@ | |
| 3175 | ** --ckout-alias NAME Treat URIs of the form /doc/NAME/... as if they were |
| 3176 | ** /doc/ckout/... |
| 3177 | ** --create Create a new REPOSITORY if it does not already exist |
| 3178 | ** --errorlog FILE Append HTTP error messages to FILE |
| 3179 | ** --extroot DIR Document root for the /ext extension mechanism |
| 3180 | ** --files GLOBLIST Comma-separated list of glob patterns for static files |
| 3181 | ** --fossilcmd PATH The pathname of the "fossil" executable on the remote |
| 3182 | ** system when REPOSITORY is remote. |
| 3183 | ** --localauth Enable automatic login for requests from localhost |
| 3184 | ** --localhost Listen on 127.0.0.1 only (always true for "ui") |
| @@ -3250,10 +3251,11 @@ | |
| 3250 | const char *zInitPage = 0; /* Start on this page. --page option */ |
| 3251 | int findServerArg = 2; /* argv index for find_server_repository() */ |
| 3252 | char *zRemote = 0; /* Remote host on which to run "fossil ui" */ |
| 3253 | const char *zJsMode; /* The --jsmode parameter */ |
| 3254 | const char *zFossilCmd =0; /* Name of "fossil" binary on remote system */ |
| 3255 | |
| 3256 | |
| 3257 | #if USE_SEE |
| 3258 | db_setup_for_saved_encryption_key(); |
| 3259 | #endif |
| @@ -3286,13 +3288,17 @@ | |
| 3286 | g.useLocalauth = find_option("localauth", 0, 0)!=0; |
| 3287 | Th_InitTraceLog(); |
| 3288 | zPort = find_option("port", "P", 1); |
| 3289 | isUiCmd = g.argv[1][0]=='u'; |
| 3290 | if( isUiCmd ){ |
| 3291 | zInitPage = find_option("page", "p", 1); |
| 3292 | if( zInitPage && zInitPage[0]=='/' ) zInitPage++; |
| 3293 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 3294 | } |
| 3295 | zNotFound = find_option("notfound", 0, 1); |
| 3296 | allowRepoList = find_option("repolist",0,0)!=0; |
| 3297 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 3298 | zAltBase = find_option("baseurl", 0, 1); |
| 3299 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -3175,10 +3175,11 @@ | |
| 3175 | ** --ckout-alias NAME Treat URIs of the form /doc/NAME/... as if they were |
| 3176 | ** /doc/ckout/... |
| 3177 | ** --create Create a new REPOSITORY if it does not already exist |
| 3178 | ** --errorlog FILE Append HTTP error messages to FILE |
| 3179 | ** --extroot DIR Document root for the /ext extension mechanism |
| 3180 | ** --external-baseline DIR External baseline for the initial /ckout page. |
| 3181 | ** --files GLOBLIST Comma-separated list of glob patterns for static files |
| 3182 | ** --fossilcmd PATH The pathname of the "fossil" executable on the remote |
| 3183 | ** system when REPOSITORY is remote. |
| 3184 | ** --localauth Enable automatic login for requests from localhost |
| 3185 | ** --localhost Listen on 127.0.0.1 only (always true for "ui") |
| @@ -3250,10 +3251,11 @@ | |
| 3251 | const char *zInitPage = 0; /* Start on this page. --page option */ |
| 3252 | int findServerArg = 2; /* argv index for find_server_repository() */ |
| 3253 | char *zRemote = 0; /* Remote host on which to run "fossil ui" */ |
| 3254 | const char *zJsMode; /* The --jsmode parameter */ |
| 3255 | const char *zFossilCmd =0; /* Name of "fossil" binary on remote system */ |
| 3256 | const char *zExBase; /* Value for --external-baseline */ |
| 3257 | |
| 3258 | |
| 3259 | #if USE_SEE |
| 3260 | db_setup_for_saved_encryption_key(); |
| 3261 | #endif |
| @@ -3286,13 +3288,17 @@ | |
| 3288 | g.useLocalauth = find_option("localauth", 0, 0)!=0; |
| 3289 | Th_InitTraceLog(); |
| 3290 | zPort = find_option("port", "P", 1); |
| 3291 | isUiCmd = g.argv[1][0]=='u'; |
| 3292 | if( isUiCmd ){ |
| 3293 | zExBase = find_option("external-baseline", 0, 1); |
| 3294 | zInitPage = find_option("page", "p", 1); |
| 3295 | if( zInitPage && zInitPage[0]=='/' ) zInitPage++; |
| 3296 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 3297 | if( zExBase && zInitPage==0 ){ |
| 3298 | zInitPage = mprintf("ckout?exbase=%T", zExBase); |
| 3299 | } |
| 3300 | } |
| 3301 | zNotFound = find_option("notfound", 0, 1); |
| 3302 | allowRepoList = find_option("repolist",0,0)!=0; |
| 3303 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 3304 | zAltBase = find_option("baseurl", 0, 1); |
| 3305 |