[viewvc-users] How get view=plaintext or view=source

David Biesack <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <1880544829.7389.1285017858117.JavaMail.httpd@localhost>
I'd like to use viewvc (version 1.1.2) to view source files in our CVS repo via a "permalink" that 1) is independent of the revision (i.e. works like view=co ; revision= is not needed) but which renders as a web page, not a download, with no-markup, no-annotate view of an arbitrary text files. I.e. show just the most recent text in the file.

That is, I'd like viewvc to emit an html stream which
"wraps" a source file in HTML <pre> blocks (or optionally in GeSHI [1] or other source formatter, based on the file extension). I don't want any other annotations or CVS decoration/CVS log content - I just want to see the source as it exists in CVS. I call this view=plaintext or view=source (which do not exist, of course). (For image types, it would be OK to display the image; for binary types like PDF, the co behavior is OK)

However, for some file types view=co, IE 8 on Windows will try to download and open the registered app for that file type, even if I use viewvc/repo/path/to/file?pathrev=mybranch&view=co&content-type=text/plain . I think this is a IE bug (which means it is not likely to get fixed); it does not happen with Chrome or Firefox. But unfortunately, I can't force the IE users to switch, so I can't use view=co .

So is there some way to get just the text from the specified resource, without actually doing a checkout 

1: http://qbnz.com/highlighter/

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

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.