Re: [viewvc-dev] Various patches for ViewVC

Виталий Филиппов <[email protected]> Wed, 20 May 2009 14:54:48 +0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.devel
Organization CustIS
Message-ID <[email protected]>
>> 2) Configurable charset support in annotate, diff, markup views, cvsdb
>> and logs
>
> Configurable how?  And is this source encoding specification with forced
> conversion to UTF-8 for output?

via viewvc.conf
[options]
encodings = utf-8:koi8-r:iso-8859-1
...it's a simple and stupid method :)
it just tries to decode string from all these encodings sequentially.
I wondered using enca (pyenca), but thought it would be too complex.

>> 9) Use of python libmagic bindings for determining file content-type
>
> Concerned about performance here, but interested in your approach.

I did not perform any measures, but on a "production" instance of ViewVC there wasn't any heavy performance degradation with libmagic...

>> 10) MIME type checking (configurable regexp) in markup/annotate (for not
>> annotating binary files as text ones)
>
> We had a recent lengthy conversation on-list here about MIME types and
> binary files and such ... I'm a little leery of adding more complexity in
> this area, but again, it's easier to evaluate an approach than to speak  
> in generalities.

Anyway, displaying annotations for binary files isn't good :)

>> 11) Shell scripts for ViewVC deployment on a Linux (tested on Debian)
>> version control server
>
> What's this?  /etc/init.d stuff for standalone.py or somesuch?

No, it installs ViewVC as an Apache2 virtual host, also it installs dependency packages, calls make-database to create database for ViewVC, rebuilds commit database for CVS and SVN repositories (only local), and installs commit hooks for them. Also it could install "asynchronous" hooks, in this case the hook writes the repository name (and revision in case of SVN) into a file, and then the script called from cron reads this file and updates the DB...
Also I doubt this feature needs to be in the trunk, I think it's kind of special one...


Also there are some new features since the initial letter:
- CVSnt ACL authorizer (I've already posted it to the bug found on your tracker)
- 'grp' authorizer which permits using different authorizers for different repositories (I think this feature is very important, though I don't know whether the "super-authorizer" is a good way doing this)
- Repository type selection in query form (CVS/SVN/All) without the need for selecting individual repositories
- Patches from query results

-- 
With best regards,
  Vitaliy Filippov

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2328603

To unsubscribe from this discussion, e-mail: [[email protected]].