Fossil SCM
Support the --repolist command line option for the 'winsrv' sub-command.
Commit
a0b33ab4d46047e4cc1943c42e82174d71c6b2ea
Parent
c8ed137ae760919…
1 file changed
+6
+6
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -647,10 +647,14 @@ | ||
| 647 | 647 | ** |
| 648 | 648 | ** Enables automatic login if the --localauth option is present |
| 649 | 649 | ** and the "localauth" setting is off and the connection is from |
| 650 | 650 | ** localhost. |
| 651 | 651 | ** |
| 652 | +** --repolist | |
| 653 | +** | |
| 654 | +** If REPOSITORY is directory, URL "/" lists all repositories. | |
| 655 | +** | |
| 652 | 656 | ** --scgi |
| 653 | 657 | ** |
| 654 | 658 | ** Create an SCGI server instead of an HTTP server |
| 655 | 659 | ** |
| 656 | 660 | ** |
| @@ -704,10 +708,11 @@ | ||
| 704 | 708 | const char *zNotFound = find_option("notfound", 0, 1); |
| 705 | 709 | const char *zFileGlob = find_option("files", 0, 1); |
| 706 | 710 | const char *zLocalAuth = find_option("localauth", 0, 0); |
| 707 | 711 | const char *zRepository = find_repository_option(); |
| 708 | 712 | int useSCGI = find_option("scgi", 0, 0)!=0; |
| 713 | + int allowRepoList = find_option("repolist",0,0)!=0; | |
| 709 | 714 | Blob binPath; |
| 710 | 715 | |
| 711 | 716 | verify_all_options(); |
| 712 | 717 | if( g.argc==4 ){ |
| 713 | 718 | zSvcName = g.argv[3]; |
| @@ -750,10 +755,11 @@ | ||
| 750 | 755 | /* Build the fully-qualified path to the service binary file. */ |
| 751 | 756 | blob_zero(&binPath); |
| 752 | 757 | blob_appendf(&binPath, "\"%s\" server", g.nameOfExe); |
| 753 | 758 | if( zPort ) blob_appendf(&binPath, " --port %s", zPort); |
| 754 | 759 | if( useSCGI ) blob_appendf(&binPath, " --scgi"); |
| 760 | + if( allowRepoList ) blob_appendf(&binPath, " --repolist"); | |
| 755 | 761 | if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound); |
| 756 | 762 | if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob); |
| 757 | 763 | if( zLocalAuth ) blob_append(&binPath, " --localauth", -1); |
| 758 | 764 | blob_appendf(&binPath, " \"%s\"", g.zRepositoryName); |
| 759 | 765 | /* Create the service. */ |
| 760 | 766 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -647,10 +647,14 @@ | |
| 647 | ** |
| 648 | ** Enables automatic login if the --localauth option is present |
| 649 | ** and the "localauth" setting is off and the connection is from |
| 650 | ** localhost. |
| 651 | ** |
| 652 | ** --scgi |
| 653 | ** |
| 654 | ** Create an SCGI server instead of an HTTP server |
| 655 | ** |
| 656 | ** |
| @@ -704,10 +708,11 @@ | |
| 704 | const char *zNotFound = find_option("notfound", 0, 1); |
| 705 | const char *zFileGlob = find_option("files", 0, 1); |
| 706 | const char *zLocalAuth = find_option("localauth", 0, 0); |
| 707 | const char *zRepository = find_repository_option(); |
| 708 | int useSCGI = find_option("scgi", 0, 0)!=0; |
| 709 | Blob binPath; |
| 710 | |
| 711 | verify_all_options(); |
| 712 | if( g.argc==4 ){ |
| 713 | zSvcName = g.argv[3]; |
| @@ -750,10 +755,11 @@ | |
| 750 | /* Build the fully-qualified path to the service binary file. */ |
| 751 | blob_zero(&binPath); |
| 752 | blob_appendf(&binPath, "\"%s\" server", g.nameOfExe); |
| 753 | if( zPort ) blob_appendf(&binPath, " --port %s", zPort); |
| 754 | if( useSCGI ) blob_appendf(&binPath, " --scgi"); |
| 755 | if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound); |
| 756 | if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob); |
| 757 | if( zLocalAuth ) blob_append(&binPath, " --localauth", -1); |
| 758 | blob_appendf(&binPath, " \"%s\"", g.zRepositoryName); |
| 759 | /* Create the service. */ |
| 760 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -647,10 +647,14 @@ | |
| 647 | ** |
| 648 | ** Enables automatic login if the --localauth option is present |
| 649 | ** and the "localauth" setting is off and the connection is from |
| 650 | ** localhost. |
| 651 | ** |
| 652 | ** --repolist |
| 653 | ** |
| 654 | ** If REPOSITORY is directory, URL "/" lists all repositories. |
| 655 | ** |
| 656 | ** --scgi |
| 657 | ** |
| 658 | ** Create an SCGI server instead of an HTTP server |
| 659 | ** |
| 660 | ** |
| @@ -704,10 +708,11 @@ | |
| 708 | const char *zNotFound = find_option("notfound", 0, 1); |
| 709 | const char *zFileGlob = find_option("files", 0, 1); |
| 710 | const char *zLocalAuth = find_option("localauth", 0, 0); |
| 711 | const char *zRepository = find_repository_option(); |
| 712 | int useSCGI = find_option("scgi", 0, 0)!=0; |
| 713 | int allowRepoList = find_option("repolist",0,0)!=0; |
| 714 | Blob binPath; |
| 715 | |
| 716 | verify_all_options(); |
| 717 | if( g.argc==4 ){ |
| 718 | zSvcName = g.argv[3]; |
| @@ -750,10 +755,11 @@ | |
| 755 | /* Build the fully-qualified path to the service binary file. */ |
| 756 | blob_zero(&binPath); |
| 757 | blob_appendf(&binPath, "\"%s\" server", g.nameOfExe); |
| 758 | if( zPort ) blob_appendf(&binPath, " --port %s", zPort); |
| 759 | if( useSCGI ) blob_appendf(&binPath, " --scgi"); |
| 760 | if( allowRepoList ) blob_appendf(&binPath, " --repolist"); |
| 761 | if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound); |
| 762 | if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob); |
| 763 | if( zLocalAuth ) blob_append(&binPath, " --localauth", -1); |
| 764 | blob_appendf(&binPath, " \"%s\"", g.zRepositoryName); |
| 765 | /* Create the service. */ |
| 766 |