the "sync_user" IS the username you are limiting to rev-prop changes..  in
order to commit using m2 your script would need to be:

IF "%3" == "m2"  GOTO OK
exit 1
:OK
exit 0

On Mon, Jul 6, 2009 at 8:29 AM, Ami <[email protected]> wrote:

>
> Hi,
>
> I am trying to set up a master slave setup using VisualSVN server. I
> have set up the hooks & the replication is happening as expected.
>
> I wanted to prevent user from making changes to the slave directly,
> hence added the following to the Pre revision hook of the slave:
>
> IF "%3" == "sync_user" exit 0 exit 1
>
> This does not seem to work as I am able to commit files to the slave
> using a username m2. Can you please tell me where i am going wrong.
> How do i go abt debugging this?
>
> Regards
> Ami
>

Reply via email to