Trond Norbye's Weblog

« Using Subversion... | Main | Presentation at the... »

http://blogs.sun.com/trond/date/20090419 Sunday April 19, 2009

Using CVS with pserver access with OpenGrok

Today I pushed two fixes into OpenGrok so that you may use OpenGrok on sources you checked out via the pserver protocol in CVS. From a performance perspective I would not recommend that you use this configuration, but it might be good enough for you if you just want to search your own projects.

With the latest development build of OpenGrok installed into /var/opengrok/bin and /var/tomcat6/webapps/source.war I was able to index and browse the PostgreSQL sources. I checked out PostgreSQL into /var/opengrok/source/pgsql, and executed the following commands:

trond@opensolaris> cd /var/opengrok
trond@opensolaris> java -jar bin/opengrok.jar -c /var/opengrok/bin/ctags \
                              -v -s /var/opengrok/source -d /var/opengrok/data -S -P \
                              -p /opengrok -n -r on -W /etc/opengrok/configuration.xml
trond@opensolaris> java -Xmx2g -jar bin/opengrok.jar -R /etc/opengrok/configuration.xml -U localhost:2424

Please let me know if you have problems getting this to work (or even better, admit that it is 2009 and move on to a more modern SCM system ;-) )

Comments:

Hi,

Thanks for this great feature! :-)

I tried this for my remote cvs repo. I can see the history for the file, but when I select two revisions for comparison, it doesn't give me the diffs.. Could you please look into this?

Thanks,
Vineeth

Posted by Vineeth Pillai on May 16, 2009 at 09:15 AM CEST #

Do you get any error messages or just no diffs? (Yeah I could test, but I don't have a cvs repository configured.. I live in 2009 ;-)

Posted by Trond Norbye on May 16, 2009 at 10:05 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.