Hi Andrei,
thanks for your reply, and to answer it:
i'm using trac 0.11 and the trac plugin from oforge(not trac-hacks)

* trac runs under the same user as svnserve
* svnlook and svnnotify are installed
* not using email notify
* trac-post-commit-hook is installed

trac.ini:
...
*[components]*
acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.htfile.htpasswdstore = enabled
acct_mgr.web_ui.accountmodule = enabled
svnpolicies.* = enabled
svnpolicies.plugins.* = enabled

...

*[svn]*
branches = trunk,branches/*
tags = tags/*

*[svnpolicies]*
# allow_revprop_changes.enabled = <inherited>
commands.enabled = true
# email.attachment = <inherited>
# email.enabled = <inherited>
email.list =
email.prefix =
email_commits.enabled = False
email_from_address =
# email_from_enabled = <inherited>
# email_subject_cx = <inherited>
log_message.enabled = false
log_message.minimum =
log_message.pattern =
readonly_repository.enabled = true
svn_property.enabled = true
svnlook = /usr/bin/svnlook
svnnotify = /usr/bin/svnnotify
svnpolicies_enabled = true
trac_post_hook = /usr/bin/trac-post-commit-hook

i put the SVN Repository Write Policy to read only just to check and i still
can do the commit(and i'm not supposed to with this).

svnpolicies.conf in /etc/svnpolicies (i didn't have it, so i created it,
restarted apache and svnserve, same results)
*[paths]*
python_path = /usr/local/lib/python2.5/site-packages
trac_base_dir = /var/trac



i think there's nothing more, thanks for your attention on this =)

On Thu, May 22, 2008 at 8:02 AM, Culapov Andrei <[EMAIL PROTECTED]>
wrote:

>
> Can you give more details please? like:
> *  what configurations do you have in trac.ini?
> * what configurations dou you have in /etc/svnpolicies/svnpolicies.conf
> * do you have svnlook and svnnotify installed?
> * if you use the email notification on commit,  do you have the trac
> smtp settings configured?
> * if you use the trac commands did you specified the path to the
> trac-post-commit-hook ?
> * the svn server runs under the same user as the trac was installed?
> the svn hook tries to open the trac environment and if it hasn't
> rights then you have problems
>
> here are the settings that we use
> trac.ini
> .....
> [svnpolicies]
> #general settings
> author_url_template = https://oforge.com/user/%s
> change_url_template = https://oforge.com/trac/%s/changeset/%s
> domain = oforge.com
> email.diff_limit = 5000
> svnlook = /usr/bin/svnlook
> svnnotify = /usr/bin/svnnotify
> # hook script that you can find in the
> trac_post_hook = /usr/local/bin/trac-post-commit-hook
> #enabled hooks
> allow_revprop_changes.enabled = true
> commands.enabled = true
> email.enabled = true
> email.list = [EMAIL PROTECTED]
> email.prefix = [oforge]
> email_from_address = [EMAIL PROTECTED]
> email_from_enabled = true
> email_subject_cx = true
> log_message.minimum = 10
> log_message.pattern = .*word$
> svn_property.enabled = true
> svnpolicies_enabled = true
> .....
>
>
> and
> /etc/svnpolicies/svnpolicies.conf
>
> [paths]
> python_path = /usr/local/lib/python2.4/site-packages
> trac_base_dir = /var/www/oforge/trac
>
> On Wed, May 21, 2008 at 10:36 PM, Pablo Fabregat
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I managed to get this plugin installed and it throws no errors... but
> when i do a commit, whatever policy i put, nothing happens, it just commits,
> and i can tell that the hook's being executed (it's in /usr/bin/svn-hook)
> because i edited that script to throw an error and, it does...
> >
> > i'm almost done with this! :O
> >
> > any ideas ?
> > thanks in advance!
> >
> >
> > --
> > Pablo Fabregat
> > http://www.pablofabregat.com.ar
> > >
>
> >
>


-- 
Pablo Fabregat
http://www.pablofabregat.com.ar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to