[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Running svnsync from post-commit hook

From: Marc Girod <mgirod_at_iona.com>
Date: 2007-08-27 12:41:33 CEST

Hello,

I searched the mail archive but couldn't find a suitable thread...
I am trying to implement the recommendations in:

  http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication

In particular, I try to invoke 'svnsync synchronize' in the
post-commit (and post-revprop-change) hook(s), and get into access
right issues:

- the hooks are run under the account of the committer: good for
  sending mail, but bad for running svnsync synchronize...
- I understand (now) that this is the reason for the '--username'
  option.
- However, I'd like to avoid having to give the '--password' one
- In any case, with or without these options, I get the following
  error:

$ svnsync synchronize svn+ssh://stengers/x1/svnroot/foo --username vobadm
svnsync: 'pre-revprop-change' hook failed with error output:
Only the vobadm user may change revision properties

Note however that this works:

$ sudo -u vobadm svnsync synchronize svn+ssh://stengers/x1/svnroot/foo
Committed revision 13.
Copied properties for revision 13.

I have tried to 'chown vobadm' and to 'chmod u+s' the svnsync binary,
but without success.

Can somebody point me to what I am doing wrong?
Thanks,
Marc

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 27 12:39:40 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.