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

Re: SVNSYNC Error

From: Honeylyn O. Fukuoka <honeylyn_at_menue.com>
Date: Wed, 1 Aug 2012 14:16:02 +0800

Hi,

The repositories and the destination repositories are all running on
windows.
Im not really an expert on batch files/shell script development...That's
why Im asking for your help :(
I just followed what I was told to do here but I don't want to mess things
up.

Thanks,

Honey

On Wed, Aug 1, 2012 at 2:08 PM, David Chapman <dcchapman_at_acm.org> wrote:

> On 7/31/2012 10:28 PM, Honeylyn O. Fukuoka wrote:
>
>> Hi,
>> I created a .bat file with the following scripts but still didn't work:
>> 1. REPOS="$1"
>> REV="$2"
>> USER="$3"
>> PROPNAME="$4"
>> ACTION="$5"
>> if [ "$USER" = "svnsync" ]; then exit 0; fi
>> echo "Only the svnsync user can change revprops" >&2
>> exit 1
>> exit 0
>>
>> 2. REPOS="$1"
>> REV="$2"
>> USER="$3"
>> PROPNAME="$4"
>> ACTION="$5"
>>
>> if [ "$USER" = "svnsync" ]; then exit 0; fi
>> echo "Only the svnsync user can change revprops" >&2
>> exit0
>> 3. exit 0
>> Did I do something wrong?
>> Thanks,
>> Honey
>>
>>
> The first two scripts are for Unix/Linux; they are /bin/sh or /bin/bash
> scripts. They will not work on a Windows machine.
>
> The third should have worked on any type of machine, though if the
> destination repository is on Unix/Linux you will need to make the file
> executable and should change its ownership to match that of the other
> sample scripts in the hooks directory. For example, on my Linux-hosted
> repository, all scripts are owned by user apache, group apache.
>
> What platform is the destination repository (i.e. the backup) on? Is it
> Windows or Unix/Linux? You haven't told us anything about the machines you
> are running on; you mentioned ".bat files" but then tried scripts meant for
> Unix/Linux.
>
> Do NOT run any experiments with complicated scripts until you get a simple
> script running; if you can't get a single line "exit 0" script to work then
> none of the complicated scripts will work. In particular, if you are not
> an expert batch file/shell script developer, you shouldn't try anything
> fancy. You can really mess things up.
>
>
> --
> David Chapman dcchapman_at_acm.org
> Chapman Consulting -- San Jose, CA
> Software Development Done Right.
> www.chapman-consulting-sj.com
>
>

-- 
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*
Received on 2012-08-01 08:16: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.