862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
|
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
|
+
+
+
+
+
-
-
+
+
+
-
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
|
archive_cmd(ARCHIVE_SQLAR);
}
/*
** WEBPAGE: sqlar
** WEBPAGE: zip
**
** URLs:
**
** /zip/VERSION/NAME.zip
** /sqlar/VERSION/NAME.sqlar
**
** Generate a ZIP or SQL archive for the check-in specified by the "r"
** query parameter. Return the archive as the HTTP reply content.
** Generate a ZIP Archive or an SQL Archive for the check-in specified by
** VERSION. The archive is called NAME.zip or NAME.sqlar and has a top-level
** directory called NAME.
**
** If the NAME contains one "/" then the part before the "/" is taken
** as the TAG and the part after the "/" becomes the true name. Hence,
** the following URLs are all equivalent:
** Alternatively, the VERSION can be specified using the r= query parameter.
** All of the following URLs are equivalent:
**
** /sqlar/508c42a6398f8/download.sqlar
** /sqlar?r=508c42a6398f8&name=download.sqlar
** /sqlar/download.sqlar?r=508c42a6398f8
** /sqlar?name=508c42a6398f8/download.sqlar
** /zip/release/xyz.zip
** /zip?r=release&name=xyz.zip
** /zip/xyz.zip?r=release
** /zip?name=release/xyz.zip
**
** Query parameters:
**
** name=NAME The base name of the output file. The default
** value is a configuration parameter in the project
** settings. A prefix of the name, omitting the
** extension, is used as the top-most directory name.
** name=[CKIN/]NAME The optional CKIN component of the name= parameter
** identifies the check-in from which the archive is
** constructed. If CKIN is omitted and there is no
** r= query parameter, then use "trunk". NAME is the
** name of the download file. The top-level directory
** in the generated archive is called by NAME with the
** file extension removed.
**
** r=TAG The check-in that is turned into a ZIP archive.
** Defaults to "trunk". This query parameter used to
** be called "uuid" and the older "uuid" name is still
** accepted for backwards compatibility. If this
** query parameter is omitted, the latest "trunk"
** check-in is used.
** r=TAG TAG identifies the check-in that is turned into an
** SQL or ZIP archive. The default value is "trunk".
** If r= is omitted and if the name= query parameter
** contains one "/" character then the of part the
** name= value before the / becomes the TAG and the
** part of the name= value after the / is the download
** filename. If no check-in is specified by either
** name= or r=, then "trunk" is used.
**
** in=PATTERN Only include files that match the comma-separate
** list of GLOB patterns in PATTERN, as with ex=
**
** ex=PATTERN Omit any file that match PATTERN. PATTERN is a
** comma-separated list of GLOB patterns, where each
** pattern can optionally be quoted using ".." or '..'.
|