Fossil SCM

For the "fossil server" command, set the HTTP_SERVER_HAD_REPOSITORY and HTTP_SERVER_HAD_CHECKOUT flags just as they would have been with the "fossil ui" command.

drh 2015-12-27 18:49 trunk
Commit e4e09884778787f3e7a5dfd6acc90148d33eb68f
1 file changed +4 -4
+4 -4
--- src/main.c
+++ src/main.c
@@ -2507,13 +2507,13 @@
25072507
zBrowser, zIpAddr, zInitPage);
25082508
}else{
25092509
zBrowserCmd = mprintf("%s http://localhost:%%d/%s &",
25102510
zBrowser, zInitPage);
25112511
}
2512
- if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2513
- if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
25142512
}
2513
+ if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2514
+ if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
25152515
db_close(1);
25162516
if( cgi_http_server(iPort, mxPort, zBrowserCmd, zIpAddr, flags) ){
25172517
fossil_fatal("unable to listen on TCP socket %d", iPort);
25182518
}
25192519
g.sslNotAvailable = 1;
@@ -2540,13 +2540,13 @@
25402540
zBrowser, zIpAddr, zInitPage);
25412541
}else{
25422542
zBrowserCmd = mprintf("%s http://localhost:%%d/%s &",
25432543
zBrowser, zInitPage);
25442544
}
2545
- if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2546
- if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
25472545
}
2546
+ if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2547
+ if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
25482548
db_close(1);
25492549
if( allowRepoList ){
25502550
flags |= HTTP_SERVER_REPOLIST;
25512551
}
25522552
if( win32_http_service(iPort, zNotFound, zFileGlob, flags) ){
25532553
--- src/main.c
+++ src/main.c
@@ -2507,13 +2507,13 @@
2507 zBrowser, zIpAddr, zInitPage);
2508 }else{
2509 zBrowserCmd = mprintf("%s http://localhost:%%d/%s &",
2510 zBrowser, zInitPage);
2511 }
2512 if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2513 if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
2514 }
 
 
2515 db_close(1);
2516 if( cgi_http_server(iPort, mxPort, zBrowserCmd, zIpAddr, flags) ){
2517 fossil_fatal("unable to listen on TCP socket %d", iPort);
2518 }
2519 g.sslNotAvailable = 1;
@@ -2540,13 +2540,13 @@
2540 zBrowser, zIpAddr, zInitPage);
2541 }else{
2542 zBrowserCmd = mprintf("%s http://localhost:%%d/%s &",
2543 zBrowser, zInitPage);
2544 }
2545 if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2546 if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
2547 }
 
 
2548 db_close(1);
2549 if( allowRepoList ){
2550 flags |= HTTP_SERVER_REPOLIST;
2551 }
2552 if( win32_http_service(iPort, zNotFound, zFileGlob, flags) ){
2553
--- src/main.c
+++ src/main.c
@@ -2507,13 +2507,13 @@
2507 zBrowser, zIpAddr, zInitPage);
2508 }else{
2509 zBrowserCmd = mprintf("%s http://localhost:%%d/%s &",
2510 zBrowser, zInitPage);
2511 }
 
 
2512 }
2513 if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2514 if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
2515 db_close(1);
2516 if( cgi_http_server(iPort, mxPort, zBrowserCmd, zIpAddr, flags) ){
2517 fossil_fatal("unable to listen on TCP socket %d", iPort);
2518 }
2519 g.sslNotAvailable = 1;
@@ -2540,13 +2540,13 @@
2540 zBrowser, zIpAddr, zInitPage);
2541 }else{
2542 zBrowserCmd = mprintf("%s http://localhost:%%d/%s &",
2543 zBrowser, zInitPage);
2544 }
 
 
2545 }
2546 if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2547 if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
2548 db_close(1);
2549 if( allowRepoList ){
2550 flags |= HTTP_SERVER_REPOLIST;
2551 }
2552 if( win32_http_service(iPort, zNotFound, zFileGlob, flags) ){
2553

Keyboard Shortcuts

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