Fossil SCM
The /zip and /tarball built-in help now makes clear that the VERSION/ part of the URL is optional to help avoid confusions like we're seeing in [forum:/forumpost/24c0eb271dbadcf0 | the forum post] that sparked this sequence of improvements.
Commit
4717db33f0033b48f7fd74194b203c02df0f8195b23de639a7c38fda15ac41e9
Parent
9eadac2026626b7…
2 files changed
+2
-2
+3
-3
+2
-2
| --- src/tar.c | ||
| +++ src/tar.c | ||
| @@ -704,17 +704,17 @@ | ||
| 704 | 704 | return zName; |
| 705 | 705 | } |
| 706 | 706 | |
| 707 | 707 | /* |
| 708 | 708 | ** WEBPAGE: tarball |
| 709 | -** URL: /tarball/VERSION/NAME.tar.gz | |
| 709 | +** URL: /tarball/[VERSION/]NAME.tar.gz | |
| 710 | 710 | ** |
| 711 | 711 | ** Generate a compressed tarball for the check-in specified by VERSION. |
| 712 | 712 | ** The tarball is called NAME.tar.gz and has a top-level directory called |
| 713 | 713 | ** NAME. |
| 714 | 714 | ** |
| 715 | -** Alternatively, the VERSION can be specified using the r= query parameter. | |
| 715 | +** The optional VERSION element defaults to "trunk" per the r= rules below. | |
| 716 | 716 | ** All of the following URLs are equivalent: |
| 717 | 717 | ** |
| 718 | 718 | ** /tarball/release/xyz.tar.gz |
| 719 | 719 | ** /tarball?r=release&name=xyz.tar.gz |
| 720 | 720 | ** /tarball/xyz.tar.gz?r=release |
| 721 | 721 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -704,17 +704,17 @@ | |
| 704 | return zName; |
| 705 | } |
| 706 | |
| 707 | /* |
| 708 | ** WEBPAGE: tarball |
| 709 | ** URL: /tarball/VERSION/NAME.tar.gz |
| 710 | ** |
| 711 | ** Generate a compressed tarball for the check-in specified by VERSION. |
| 712 | ** The tarball is called NAME.tar.gz and has a top-level directory called |
| 713 | ** NAME. |
| 714 | ** |
| 715 | ** Alternatively, the VERSION can be specified using the r= query parameter. |
| 716 | ** All of the following URLs are equivalent: |
| 717 | ** |
| 718 | ** /tarball/release/xyz.tar.gz |
| 719 | ** /tarball?r=release&name=xyz.tar.gz |
| 720 | ** /tarball/xyz.tar.gz?r=release |
| 721 |
| --- src/tar.c | |
| +++ src/tar.c | |
| @@ -704,17 +704,17 @@ | |
| 704 | return zName; |
| 705 | } |
| 706 | |
| 707 | /* |
| 708 | ** WEBPAGE: tarball |
| 709 | ** URL: /tarball/[VERSION/]NAME.tar.gz |
| 710 | ** |
| 711 | ** Generate a compressed tarball for the check-in specified by VERSION. |
| 712 | ** The tarball is called NAME.tar.gz and has a top-level directory called |
| 713 | ** NAME. |
| 714 | ** |
| 715 | ** The optional VERSION element defaults to "trunk" per the r= rules below. |
| 716 | ** All of the following URLs are equivalent: |
| 717 | ** |
| 718 | ** /tarball/release/xyz.tar.gz |
| 719 | ** /tarball?r=release&name=xyz.tar.gz |
| 720 | ** /tarball/xyz.tar.gz?r=release |
| 721 |
+3
-3
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -866,18 +866,18 @@ | ||
| 866 | 866 | ** WEBPAGE: sqlar |
| 867 | 867 | ** WEBPAGE: zip |
| 868 | 868 | ** |
| 869 | 869 | ** URLs: |
| 870 | 870 | ** |
| 871 | -** /zip/VERSION/NAME.zip | |
| 872 | -** /sqlar/VERSION/NAME.sqlar | |
| 871 | +** /zip/[VERSION/]NAME.zip | |
| 872 | +** /sqlar/[VERSION/]NAME.sqlar | |
| 873 | 873 | ** |
| 874 | 874 | ** Generate a ZIP Archive or an SQL Archive for the check-in specified by |
| 875 | 875 | ** VERSION. The archive is called NAME.zip or NAME.sqlar and has a top-level |
| 876 | 876 | ** directory called NAME. |
| 877 | 877 | ** |
| 878 | -** Alternatively, the VERSION can be specified using the r= query parameter. | |
| 878 | +** The optional VERSION element defaults to "trunk" per the r= rules below. | |
| 879 | 879 | ** All of the following URLs are equivalent: |
| 880 | 880 | ** |
| 881 | 881 | ** /zip/release/xyz.zip |
| 882 | 882 | ** /zip?r=release&name=xyz.zip |
| 883 | 883 | ** /zip/xyz.zip?r=release |
| 884 | 884 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -866,18 +866,18 @@ | |
| 866 | ** WEBPAGE: sqlar |
| 867 | ** WEBPAGE: zip |
| 868 | ** |
| 869 | ** URLs: |
| 870 | ** |
| 871 | ** /zip/VERSION/NAME.zip |
| 872 | ** /sqlar/VERSION/NAME.sqlar |
| 873 | ** |
| 874 | ** Generate a ZIP Archive or an SQL Archive for the check-in specified by |
| 875 | ** VERSION. The archive is called NAME.zip or NAME.sqlar and has a top-level |
| 876 | ** directory called NAME. |
| 877 | ** |
| 878 | ** Alternatively, the VERSION can be specified using the r= query parameter. |
| 879 | ** All of the following URLs are equivalent: |
| 880 | ** |
| 881 | ** /zip/release/xyz.zip |
| 882 | ** /zip?r=release&name=xyz.zip |
| 883 | ** /zip/xyz.zip?r=release |
| 884 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -866,18 +866,18 @@ | |
| 866 | ** WEBPAGE: sqlar |
| 867 | ** WEBPAGE: zip |
| 868 | ** |
| 869 | ** URLs: |
| 870 | ** |
| 871 | ** /zip/[VERSION/]NAME.zip |
| 872 | ** /sqlar/[VERSION/]NAME.sqlar |
| 873 | ** |
| 874 | ** Generate a ZIP Archive or an SQL Archive for the check-in specified by |
| 875 | ** VERSION. The archive is called NAME.zip or NAME.sqlar and has a top-level |
| 876 | ** directory called NAME. |
| 877 | ** |
| 878 | ** The optional VERSION element defaults to "trunk" per the r= rules below. |
| 879 | ** All of the following URLs are equivalent: |
| 880 | ** |
| 881 | ** /zip/release/xyz.zip |
| 882 | ** /zip?r=release&name=xyz.zip |
| 883 | ** /zip/xyz.zip?r=release |
| 884 |