Re: [viewvc-users] /tmp filling up with tempfile.*.tmp; annotate pdf's?
Karl Berry <[email protected]> Wed, 29 Aug 2012 23:07:18 GMT
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the quick reply.
No, the SIGTERM handler doesn't appear to do what I thought it would,
so it's already been removed from ViewVC's trunk code.
Aside: So viewvc can't catch SIGTERM to remove the temp files?
I'm surprised. But if I knew more I probably wouldn't be :).
ViewVC could probably stand to have a pair of
configuration switches, something like the following:
I like it.
# show links to content views (markup, annotate, diff) for files which
# not human-readable (so-called binary files)?
view_binary_files = 1
Not that it matters for my purposes, but I would consider making the
default be zero. I know it would be an incompatible change, but think
of all the wasted network bandwidth that would be saved :).
Annotating/etc. binary files can't possibly be useful, as far as I can
imagine.
# list of MIME content types (with support for fnmatch-style glob
# characters) which are considered human-readable.
viewable_mime_types = text/*, application/xml
This would be workable, but I'd feel safer specifying the non-viewable
mime types. I'd start with application/pdf and application/octet-stream
and see how things went. That way I'd know that nothing else I didn't
know about was affected.
Mime types of "text" files can get pretty random, in my experience, and
I'd rather err on the side of having useless links than omitting useful
ones.
What do you think? Do you suspect that this would meet your need?
Yes, anything along these lines would be great.
Thanks again,
Karl
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3002027
To unsubscribe from this discussion, e-mail: [[email protected]].