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

RE: Pre-revprop-change shows no user

From: mhoertzsch <m.hoertzsch_at_t-online.de>
Date: Tue, 22 Jul 2008 00:19:04 -0700 (PDT)

Hi,

this seems to be an issue, as USER is also not set in the start-commit hook
when using svnsync sync.
I have tried for the pre-revprop-change and start-commit hook with svn://
and http:// protocol,
as well with all kinds of variation of --username=xyz --sync-username=xyz
and http://username@svnhost, anything else in the hook can be printed, but
not the USER variable.
But authentication against the other host works with the above provided
username / password options.

I am not sure if this is a known issue or if someone should create one for
this.

regards,

Matthias

Roland Cruse-2 wrote:
>
> I stil do not know why "USER" is not being returned for the
> pre-revprop-change hook but I found a get around thanks to this link:
> http://dev.e-taxonomy.eu/trac/wiki/SVNMirroring
>
> Instead of this "USER=${3}" I did this USER=`whoami`. Then the script goes
> and verifies the user, which is "apache" in my case since I am doing this:
> "svnsync init http://svn-slave.1/chorus-proxy-sync
> file:///var/svn/repository/chorus_master "
>
> The link shows how to log in the hook scripts (make sure the hook can
> write to the log).
>
> Hope it helps someone.
>
>> -----Original Message-----
>> From: Roland Cruse [mailto:roland.cruse_at_vrs-soft.com]
>> Sent: Friday, July 18, 2008 2:15 PM
>> To: users_at_subversion.tigris.org
>> Subject: Pre-revprop-change shows no user
>>
>>
>> Hi
>>
>> My head is spinning. Can someone help out? Please.
>>
>> Trying to "init" a webdev dav slave repo which is set to
>> version 0. Both slave and master are accessible via their urls.
>>
>> I call this from the master:
>> svnsync init --sync-username svnsync --sync-password svnsync
>> http://svn-slave.1/foo-proxy-sync
>> file:///home/svnsync/repos/foo_master
>>
>> Which gives the: "Revprop change blocked by
>> pre-revprop-change hook " error
>>
>> The pre-revprop-change hook, on the slave, checks for the
>> correct user and, for debugging, echos out all the variables
>> handed to pre-revprop-change EXCEPT "user". Since "user" must
>> at least be there to check if it is allowed or not I am stuck.
>>
>> Any ideas?
>> Thanks so much.
>> Roland
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
>> For additional commands, e-mail: users-help_at_subversion.tigris.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>
>

-- 
View this message in context: http://www.nabble.com/more-svn-whoes-tp18511360p18583836.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-22 09:19:36 CEST

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.