Is user m2 connecting directly to the slave?

On Tue, Jul 7, 2009 at 12:00 AM, Ami <[email protected]> wrote:

>
> Darren,
>
> I am still not able to get it work. To clarify I want only changes
> made by "sync_user" to be committed to the slave. Change made by any
> other user including m2, should be REJECTED.
>
> I changed the script you suggested to:
> IF "%3" == "sync_user"  GOTO OK
> exit 1
> :OK
> exit 0
>
> But the changes still get committed when i commit using user m2 :(. Is
> there a way I can write some value to the tortoise commit window, to
> know what exactly is happening?
>
> Some more enviroment info:
> 1) I am using VisualSVn Server 1.7.1 & committing changes using
> Tortoise SVN 1.6.1 on Windows 2003.
> 2) Currently Master & Slave are setup on the same machine, 2 separate
> repositories as I am checking out the feasibility.
>
> Regards
> Ami
>
>
>
> On Jul 6, 8:40 pm, Darren McDaniel <[email protected]> wrote:
> > 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