Fossil SCM

Support the --repolist command line option for the 'winsrv' sub-command.

mistachkin 2015-03-02 21:41 trunk
Commit a0b33ab4d46047e4cc1943c42e82174d71c6b2ea
1 file changed +6
--- src/winhttp.c
+++ src/winhttp.c
@@ -647,10 +647,14 @@
647647
**
648648
** Enables automatic login if the --localauth option is present
649649
** and the "localauth" setting is off and the connection is from
650650
** localhost.
651651
**
652
+** --repolist
653
+**
654
+** If REPOSITORY is directory, URL "/" lists all repositories.
655
+**
652656
** --scgi
653657
**
654658
** Create an SCGI server instead of an HTTP server
655659
**
656660
**
@@ -704,10 +708,11 @@
704708
const char *zNotFound = find_option("notfound", 0, 1);
705709
const char *zFileGlob = find_option("files", 0, 1);
706710
const char *zLocalAuth = find_option("localauth", 0, 0);
707711
const char *zRepository = find_repository_option();
708712
int useSCGI = find_option("scgi", 0, 0)!=0;
713
+ int allowRepoList = find_option("repolist",0,0)!=0;
709714
Blob binPath;
710715
711716
verify_all_options();
712717
if( g.argc==4 ){
713718
zSvcName = g.argv[3];
@@ -750,10 +755,11 @@
750755
/* Build the fully-qualified path to the service binary file. */
751756
blob_zero(&binPath);
752757
blob_appendf(&binPath, "\"%s\" server", g.nameOfExe);
753758
if( zPort ) blob_appendf(&binPath, " --port %s", zPort);
754759
if( useSCGI ) blob_appendf(&binPath, " --scgi");
760
+ if( allowRepoList ) blob_appendf(&binPath, " --repolist");
755761
if( zNotFound ) blob_appendf(&binPath, " --notfound \"%s\"", zNotFound);
756762
if( zFileGlob ) blob_appendf(&binPath, " --files-urlenc %T", zFileGlob);
757763
if( zLocalAuth ) blob_append(&binPath, " --localauth", -1);
758764
blob_appendf(&binPath, " \"%s\"", g.zRepositoryName);
759765
/* Create the service. */
760766
--- 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

Keyboard Shortcuts

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