Bazaar support in OpenGrok
I have just added support for Bazaar repositories in OpenGrok, and thought that I should give you a warning before you start to use it...
First of all I would like to say that I have never used Bazaar in a real project, so I might have done everything totally wrong.
I am not aware of a API that lets me access Bazaar from Java, so I just created a small class that wraps the command line interface. This is the same way the Mercurial support is implemented, and most of the projects available at http://src.opensolaris.org/source use that back-end. Wrapping the binary do have a runtime-penalty, and that is the startup-cost of the binary. To reduce the number of times the binary is executed, OpenGrok already have a cache-layer for the history log (the cache-layer is not used if you try to get history information for a directory).
The biggest problem with Bazaar is that the bzr log -v command is unbelievable slow, and that is the command I need to run to get the history information (I need the files in the changeset). When I tried it on my computer, it used 13 MINUTES on the Bazaar source code itself. I got the repository with the following command:
$ bzr branch http://bazaar-vcs.org/bzr/bzr.dev bzr.dev
As a comparison hg log -v used ~ 2 secs on:
$ hg clone ssh://anon@hg.opensolaris.org/hg/onnv/onnv-gate
I would therefore not recommend that you use the Bazaar support on an OpenGrok server that serves multiple users. If you use it yourself, you should avoid accessing the directory history if you don't need it ;-)
Posted at 03:30PM Mar 17, 2008 by trond in OpenGrok | Comments[0]
OpenGrok v0.6 is out
I am glad to announce the release of OpenGrok 0.6. This release contains a lot of bug-fixes and some new features. Please see http://src.opensolaris.org/source/history/opengrok/trunk/ for the full change history, and for the list of contributors. The following is just a summary.
New Features:
Posted at 10:41AM Mar 12, 2008 by trond in OpenGrok | Comments[0]
OpenGrok and SMF
I have had SMF controlling my OpenGrok server for a long time, but up until today I have always performed the SMF management as root.
When I upgraded my server today I decided to try to figure out what I needed to do in order to create a new profile that I could use to start and stop OpenGrok, and it turned out to be quite easy.
The first thing you need to do is to create the authorizations and the profile by adding them to /etc/security/auth_attr and /etc/security/prof_attr:
/etc/security/auth_attr: solaris.smf.value.opengrok:::Change OpenGrok value properties:: solaris.smf.manage.opengrok:::Manage OpenGrok service states:: /etc/security/prof_attr: OpenGrok Administration::::auths=solaris.smf.manage.opengrok,solaris.smf.value.opengrok
The next thing you should do is to add this profile to the users you trust by updating /etc/user_attr
username::::profiles=OpenGrok Administration
(If you don't trust them that much you could give them just one of the authorizations)
You should now be ready to import the OpenGrok SMF description file (tools/smf/opengrok.xml in the OpenGrok source repository) and modify the environment-section to match your local configuration. (Note: you need the one I committed in changeset 228:175ea847bf89)
Import the service by executing the following command:
# svccfg import /path/to/opengrok.xml
Users should now be able to start and stop the service as long as they have the appropriate authorizations.
Posted at 02:20PM Jan 24, 2008 by trond in OpenGrok | Comments[0]
OpenGrok v0.4 Released
After 9 month of waiting since the last release of OpenGrok one should expect a major update, but that is not the case.
The reason for not releasing it as 0.3.2 is that this version contains the following new features:
Posted at 02:29PM Dec 08, 2006 by trond in OpenGrok | Comments[0]
OpenGrok source repository
I am glad to announce that the OpenGrok source code is available in a Mercurial repository on the OpenSolaris website. You may grab a copy with the following command:
hg clone ssh://anon@hg.opensolaris.org/hg/opengrok/trunk/
Posted at 09:10AM Dec 07, 2006 by trond in OpenGrok | Comments[0]