On Mar 21, 2017, at 5:49 PM, Martin Vahi wrote:
>
> I tried to commit the batch of small files
> individually. No luck:
The error tells you why:
> ...facebook.html
> contains long lines. Use --no-warnings or the "binary-glob" setting to
> disable this warning.
>Commit anyhow (a=all/y/N)?
So either:
1. Say “yes” or “all” to the query
2. Give --no-warnings with the commit command
3. Add an *.html rule to your binary-glob setting to make it skip the “looks
like UTF-8 text” check during the commit.
That check exists because Fossil is primarily meant to store text, and the
exceptions are generally easy to match with binary-glob rules (e.g. *.png).
Fossil is warning that you may be committing something you didn’t mean to
commit, like an executable.
The only reason it thinks these long-line HTML files are “binary” is that the
“looks like UTF-8” heuristic doesn’t scan the entire file looking for newlines
and such. It gives up after a certain number of bytes checked, since proper
text files rarely have very long lines. But, all heuristics are imperfect by
definition, which is why there are workarounds.
Fossil will store and reliably retrieve binary data. This is one of those “are
you sure you want to do that?” things, not a “you’re an idiot if you do that”
things.
Fossil is second-guessing you only because binary files defeat many features of
Fossil:
1. Many binary file types are also compressed, so that as little as one bit
changed in the raw data format could potentially change every byte in the
output file format, utterly defeating Fossil’s delta compression algorithm. If
you’re storing bitmaps, therefore, store Windows BMPs in preference to PNG or
JPEG. If you need PNG or JPEG outputs, generate them from the stored BMPs as
part of the build process.
Bonus: this lets you change things like color space or transparency rules
without re-storing all the bitmap files, simply by changing the conversion
script.
(Incidentally, “uncompressed” bitmap formats like TIFF can also be a problem
because they may contain metadata that changes with each save, like timestamps
and GUIDs. In one test I did here, changing one pixel in a TIFF image caused
something like 10 kB of deltas in the resulting TIFF!)
2. Most binary file formats can’t be displayed in Fossil UI unless it’s one of
a small number of well-known web file formats. There may be an alternative
file format that will avoid these problems and still solve the same problem,
such as SVG instead of Adobe Illustrator format, or Markdown over PDF. (And
plain-text SVG over compressed SVGZ to avoid problem #1. Let Fossil compress
your data, so it can see inside the file.)
3. A “fossil diff” command can’t do anything useful with binary data.
4. Fossil can usually merge two changes to a single text file automatically,
without user intervention, and when it can’t, it writes conflict data to disk
to help you merge the files manually. Fossil can’t help you at all if two
users edit a binary file at the same time unless the changes are
well-separated, and they’ll only be so if you avoid problem #1 above.
Again, none of this prevents you from storing binary files in Fossil. They
just give you…encouragement…to use some equivalent text based file format
instead.
> I received a spam email that used my own subject
These emails are typically similar enough that spam filters learn about them
pretty quickly. About once every few months, whoever is doing this changes the
emails enough to start slipping them through the filters again.
It’s possible that info is outdated, since I haven’t seen such spam since
changing our company email servers over to a provider with a reputation for
strong spam filtering with a low false positive rate.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users