I'm using a custom set of scripts to transfer commits from one
repository to another. The scripts parse the output of `fossil whatis'
to grab the check-in comments and time stamps, extract the files with
`fossil zip', and re-commit everything to the target repository.

Recently, after updating the 7-Zip command line tool to the latest
version, I noted that the scripts were no longer handling empty files
contained in the fossil-generated zip archives properly (they showed
up as empty directories, instead of empty files).

7-Zip lists "D...." as the attributes for empty files in the
fossil-generated zips, and `zipinfo' on my FreeBSD web server lists
"drwxr-xr-x".

In the following code section, fossil seems to set 040755 =
"drwxr-xr-x" for empty files [line 156], but I think it should set
0100644 = "-rw-r--r--" instead, as for the default case [line 152]
(0100000 = regular file, 0040000 = directory):

http://fossil-scm.org/index.html/artifact/211de642fc72c1e93f9083f3affc85f3c8febe30?txt=1&ln=147-157

Being a Windows guy, I take the risk to completely make a fool of
myself, but if the *nix people also think this should be changed,
would you please consider fixing this?

Thanks,
--Florian
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to