Fossil

File History
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/tar.c

2018-07-15
19:56
Clarify the difference between fossil_fatal() and fossil_panic(). The fossil_panic() interface puts a message on the error log when generating webpages. Otherwise the two routines are identical. Convert some fossil_fatal() calls into fossil_panic() where appropriate. The goal here is to limit messages on the error log to things that require attention from the system administrator, or represent bugs. file: [2c6c9b81] check-in: [3f5ab717] user: drh branch: trunk, size: 25606
2018-04-06
12:01
Enhance the /tarball, /zip, and /sqlar pages so that the checkin name to be downloaded can be expressed as part of the URI, and without the need for query parameters. file: [6e64099b] check-in: [3e94c7ed] user: drh branch: trunk, size: 25606
2018-02-25
19:09
Add ETags cache control to the /tarball, /zip, and /sqlar pages. file: [d8393067] check-in: [f2492f3b] user: drh branch: etags-cache-control, size: 24315
2017-11-30
17:58
Refactor the symlink processing logic so that most of the file access routines take a new parameter indicating the conditions under which symlinks should and should not be followed. This should fix a few bugs related to symlink processing. Lots of testing required before merging to trunk. file: [69a1c432] check-in: [e7767de2] user: drh branch: symlink-refactor, size: 24284
2017-09-29
00:53
Add support for the "l" flag to the "manifest" setting to enable creation of a file "manifest.symlinks" which lists the names of all symlinks file: [e2c25fed] check-in: [8d6bdd1e] user: andygoth branch: enhanced-symlink, size: 24681
2017-08-05
04:17
Enable processing of versioned manifest setting when creating zips and tarballs outside of an open checkout directory file: [7f1a32be] check-in: [da23bec7] user: andygoth branch: trunk, size: 24098
2017-06-09
13:09
Update the /tarball and /zip pages to return status code 404 if given an unknown checkin to download. file: [50224642] check-in: [a10fc448] user: drh branch: trunk, size: 24049
2017-03-15
18:34
On the /tarball and /zip pages, use r= as the query parameter to select which check-in to download. The uuid= query parameter is still accepted as an alias for backwards compatibility. file: [17b09ed4] check-in: [ece33ee1] user: drh branch: trunk, size: 24008
2017-03-01
18:21
Remove unused local variables. file: [7d2471e3] check-in: [cb92c69c] user: drh branch: trunk, size: 23712
2017-02-28
19:47
Fix the tarball and ZIP archive generators so that the use the display hash to populate the manifest.uuid file. file: [ccd15955] check-in: [9a8986b7] user: drh branch: fossil-2.0, size: 23727
2016-10-04
19:06
Fix harmless compiler warnings. file: [8cfe3f2e] check-in: [3f06618c] user: mistachkin branch: trunk, size: 23811
2016-09-23
02:27
Merge updates from trunk. file: [684d2f84] check-in: [09343661] user: mistachkin branch: jan-manifest-tags, size: 23807
2016-09-15
19:42
Fix typo in comment. file: [f6dbb518] check-in: [adffcf5b] user: mistachkin branch: trunk, size: 22627
04:12
Even more consistency. file: [2c0535c6] check-in: [e5cbf41c] user: mistachkin branch: tarAndZip, size: 22617
04:01
Make it easier to debug the ZIP web page. Enhance consistency between the Tarball and ZIP web pages. file: [cb2f593d] check-in: [b9458762] user: mistachkin branch: tarAndZip, size: 22536
2016-08-03
01:18
Merge with trunk; resolved tar and zip generation to handle include/exclude globs. file: [cb304374] check-in: [de9e7651] user: jan branch: jan-manifest-tags, size: 23716
2016-06-17
12:38
Fix a typo in the built-in documentation for the "tarball" command. file: [3d8ec6d4] check-in: [e0da91e9] user: drh branch: trunk, size: 22536
2016-06-15
08:38
More consistancy in using <br /> and <hr /> HTML tags file: [2c940b41] check-in: [bd559ff0] user: jan.nijtmans branch: trunk, size: 22537
2016-06-10
12:46
Add the --include and --exclude options to the tarball and zip commands and the in= and ex= query parameters to the /tarball and /zip webpages. file: [2f7b5923] check-in: [ef449a11] user: drh branch: trunk, size: 22533
2016-03-12
22:02
Remove support for miniz because the upstream project appears to be unmaintained. UPDATE: The miniz project is still being maintained and this branch is a dead-end. file: [f92ef7b6] check-in: [b9f31fe1] user: mistachkin branch: removeMiniz, size: 19464
2016-01-04
00:22
Fix: Extract filename for manifest.tags. file: [ecbf6a51] check-in: [185669ce] user: jan branch: jan-manifest-tags, size: 20204
2016-01-03
23:55
Add manifest.tags to tarballs when appropriate, and decouple manifest and manifest.uuid. file: [227b6155] check-in: [80ceedbd] user: jan branch: jan-manifest-tags, size: 20167
2015-02-28
10:11
replaced 'checkin' with 'check-in' in code-comment, inline command help-text, SQL-statement comment, fatal error messages and some non-functional webpage-content file: [9d67347c] check-in: [7c30266a] user: michai branch: ml-jb-doc-typos, size: 19566
2015-02-14
14:55
Added the referred_from_login() function and use it to enhance the /zip and /tarball pages so that they show a download button to click if the referrer page was /login. file: [d3a332c8] check-in: [bcebe55e] user: drh branch: login-enhancements, size: 19562
12:24
When the user is "nobody", make the g.anon permission vector for "anonymous" available in addition to g.perm. Hyperlinks to pages that would be available to anonymous are shown rather than suppressed. When permission is denied and control jumps to login_needed() a new flag shows whether or not logging in as "anonymous" would help. Work in progress. file: [dc2ecf7d] check-in: [2f50d427] user: drh branch: login-enhancements, size: 19223
2015-02-10
08:24
Speedup handling of checked-out files: When multiple information about a file is requested (size, mtime, permission flags) only call stat() once. file: [99b559d2] check-in: [dd94e596] user: jan.nijtmans branch: trunk, size: 19213
2014-09-23
16:02
When generating the "manifest" file in a checkout because "fossil setting manifest" is turned on, add an extra line of text to the end of the file to prevent the file from being interpreted as a valid control artifact in case the complete source tree is imported into another unrelated Fossil project. file: [0a4c8e09] check-in: [1dd4be80] user: drh branch: trunk, size: 19250
2014-08-23
06:08
Add miniz as a compile-time feature, leaving zlib as the default compression library. All makefiles should build. The DMC and PellesCGMake makefiles are not yet supported with miniz. Also, when using miniz, OpenSSL support for zlib is disabled in the MinGW makefile. file: [fea3c7f9] check-in: [c693a336] user: mistachkin branch: optionalMiniz, size: 19216
2014-08-19
16:52
"the zip file patch" from Baruch. file: [8f24bfc7] check-in: [26ecec6c] user: stephan branch: miniz, size: 19115
2014-08-18
17:13
Replaced zlib usage with local copy of miniz. Seems to work. file: [980fed13] check-in: [579ae389] user: stephan branch: miniz, size: 19114
2014-08-05
17:27
Updates to the "help" text for the tarball command. Add hyperlinks for accessing content on the /cachestat webpage. file: [15033d1c] check-in: [b6a5023f] user: drh branch: trunk, size: 19114
2014-07-31
21:13
/zip now ignores the .zip extension, analog to how /tar does. Minor doc improvements in /zip and /tar from the ML. file: [0b574a48] check-in: [e0199bfc] user: stephan branch: trunk, size: 18797
2014-07-30
15:40
Call verify_all_options() on most of fossil CLI commands.    - Skip all the test-* commands for now (may be unnecessary)    - Skip sha1sum, md5sum and artifact because they can take "-" as argument and verify_all_options() would call fatal. Need to handle those differently...    - Command with subcommands that have their options are remaining: branch, bisect, cache, configuration, json, sql, stash, tag, ticket, user, wiki. (not sure how to handle those yet..) file: [68a15a9a] check-in: [a426154b] user: mgagnon branch: verify-all-options, size: 18668
2014-04-25
21:11
Add a cache that will save /zip and /tarball objects and reissue them from cache when requested a second time. The "fossil cache" command is used to control the cache. Turned off by default and must be enabled using "fossil cache init". file: [21d0c0bc] check-in: [450b62ff] user: drh branch: trunk, size: 18601
2014-03-23
17:14
Added some text to the /tar help, per ML suggestion. file: [dac0efd3] check-in: [7ba06f15] user: stephan branch: trunk, size: 18388
2014-03-09
00:15
Add the ability to restrict CPU-intensive web pages when the server load average gets too high. This feature is turned off by default. file: [5dec7d3f] check-in: [5e26a1b9] user: drh branch: trunk, size: 18178
2014-01-11
19:11
Fix a harmless valgrind warning in the tarball generator. file: [4fd4440b] check-in: [64fc6d15] user: drh branch: trunk, size: 18160
2013-12-22
10:21
According to RFC 1952, MTIME=0 means no time stamp is available file: [d8f62d16] check-in: [51889695] user: jan.nijtmans branch: trunk, size: 18162
2013-10-11
08:36
Make sure that EVERY source file includes "config.h" before any other system includes. This is the first step in making fossil compile for Win64 using MinGW. file: [7e83fb52] check-in: [c30cd93b] user: jan.nijtmans branch: trunk, size: 18161
2013-10-04
09:30
Better error-message in case of "manifest file is malformed" file: [20ce2d11] check-in: [1eb438d6] user: jan.nijtmans branch: pending-review, size: 18161
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [ed1d0b8c] check-in: [9f6abc59] user: jan.nijtmans branch: msvc-broken, size: 18157
2012-08-08
13:22
When using /zip or /tarball without a UUID, use "trunk" instead of "tip" as the default. Ticket [300fc543b24250e256] file: [2ccfdb90] check-in: [eb0933ca] user: drh branch: trunk, size: 18158
12:41
If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip"). Ticket [300fc543b24250e256867]. file: [ec3cf144] check-in: [8f002216] user: drh branch: trunk, size: 18156
2012-06-29
15:59
Update to the latest SQLite4 that requires converting preprocessor macro prefixes from "SQLITE_" to "SQLITE4_". file: [3cbddc6f] check-in: [0328d681] user: drh branch: sqlite4, size: 18179
2012-06-27
12:30
Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. file: [0586de90] check-in: [68239127] user: drh branch: sqlite4, size: 18178
2012-06-11
17:33
merge trunk again... (previous merge was not from latest trunk from fossil-scm.org) file: [29d6c7af] check-in: [7a57ab64] user: mgagnon branch: mgagnon_fix, size: 18195
2012-04-11
16:37
Sorry - failed to tap ctrl-x s before that last commit :/. file: [f286bf17] check-in: [ad162862] user: stephan branch: trunk, size: 18153
16:33
Second half of the tarball fix (CLI mode, i missed that one). file: [bde842b6] check-in: [b79d2b77] user: stephan branch: trunk, size: 18153
16:28
Fixed: /tarball accepted non-checkin rids (but of course could not generate a tarfile from them). Bug report from Justin Gedge on the mailing list. file: [df94c8b7] check-in: [f982e376] user: stephan branch: trunk, size: 18066
2012-03-29
14:54
Add vim modline everywhere file: [45f9d748] check-in: [a496d8e8] user: mgagnon branch: mgagnon_fix, size: 18096
2012-02-01
12:09
Doc change only: documented -R/--repository for zip/tar commands. file: [c3c2ce39] check-in: [a84aadad] user: stephan branch: trunk, size: 18054
2011-11-03
17:31
Break up the command-line commands into commonly-use and auxiliary commands and only show the commonly-used ones with "fossil help". Add a new command "fossil commands" to show auxiliary and test commands. file: [8c729ae1] check-in: [841772c8] user: drh branch: trunk, size: 18031
2011-09-28
11:35
Use the check-in time as the timestamp for zlib compression on tarballs, os that every tarball for the same check-in is identical. file: [3e0bdccc] check-in: [3e141b79] user: drh branch: trunk, size: 18030
2011-09-14
17:45
Refactored g.okXXX perms flags to g.perm.XXX. file: [a673fd8b] check-in: [34b4dec0] user: stephan branch: stephan-hack, size: 17980
2011-09-08
11:59
Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support.    Fix renaming of symlinks when merging (via new function symlink_copy()).    Rename create_symlink() to symlink_create(). file: [0ea241f0] check-in: [8a0c5469] user: dmitry branch: symlinks, size: 17977
2011-08-25
11:42
Introduce constants for internal permissions (executable/symlink). file: [3a400c77] check-in: [f6daee3e] user: dmitry branch: symlinks, size: 17972
2011-08-24
20:01
Support symlinks in tarballs. file: [60587607] check-in: [72e3bbd0] user: dmitry branch: symlinks, size: 17939
2011-08-14
07:21
Merge trunk into ben-testing, adjusting for versionable settings. file: [bcc55316] check-in: [246ac307] user: ben branch: ben-testing, size: 17342
2011-08-12
12:13
Fix harmless compiler warnings in tar.c. file: [e6854480] check-in: [073725ae] user: drh branch: trunk, size: 17322
2011-08-04
15:54
Merge trunk into ben-testing file: [471b8f0f] check-in: [3eb07708] user: ben branch: ben-testing, size: 17264
2011-07-24
19:47
Use a Blob object rather than a custom printf function in order to construct the PAX header for tarballs. file: [de7c9f3c] check-in: [02ce8b4a] user: drh branch: ge-tarfix, size: 17244
00:36
Improvements to tar generation. Uses the format documented in Posix.1-2008 to handle long file names and UTF-8. file: [dabd31f4] check-in: [2ef37b3b] user: ge branch: ge-tarfix, size: 18483
2011-06-02
19:38
Merge versionable settings and empty-dirs setting from versionable-settings branch file: [dec86046] check-in: [30ebed19] user: ben branch: ben-testing, size: 10133
2011-06-01
22:32
In contexts where only a check-out makes since, only resolve tags or branch names into check-outs, not events or other artifacts. Ticket [5f611295e3c2a8]. file: [c4609547] check-in: [2a013f02] user: drh branch: trunk, size: 10113
2011-05-31
12:52
Always use the alternate-form flag "#" to control the number of input bytes to printf conversions like %t, %h, and %q. Do not use precision in those cases since precision limits the number of output characters, not the number of input characters. Ticket [8967ea1df4f51af]. file: [4bf7db1d] check-in: [e5e6ca46] user: drh branch: trunk, size: 10101
2011-05-27
12:03
Do not use strcmp() for comparison since the sort order can vary by locale. Use fossil_strcmp() instead. Ticket [3f0216560679fd41]. file: [7a18f7a8] check-in: [32ad9a15] user: drh branch: trunk, size: 10102
2011-05-21
16:18
Slightly hacky way of putting versioned properties in .fossil-settings dir. Version ignore-glob, binary-glob, crnl-glob and manifest. Glob splitting allows line breaks as well as spaces and commas. file: [f6495999] check-in: [56b75c76] user: ben branch: bens-expr, size: 10115
2011-04-08
17:09
Fix copy-paste issues with the header comment for the tarball generator. file: [7a0649e7] check-in: [e5609b76] user: drh branch: trunk, size: 10095
2011-03-17
15:33
When generating a tarball, remove the complete ".tar.gz" suffix from the filename to create the top-level directory name, not just the ".gz" part. file: [2732f788] check-in: [9ca5bbf8] user: drh branch: trunk, size: 10099
2011-03-14
12:16
Put two blank pages at the end of a generated TAR file. Ticket [b767f47cdefef12]. file: [11eda37a] check-in: [a5ebf2f5] user: drh branch: trunk, size: 9809
2011-03-09
15:45
Change the tarball generator to use the USTAR tar format. file: [da3b2104] check-in: [1b7777b9] user: drh branch: trunk, size: 9743
02:23
Add the ability to deliver compressed tarballs in addition to ZIP archives. file: [88500321] check-in: [d5d676f0] user: drh branch: trunk, size: 9104 Added