[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: David Chapman <dcchapman_at_acm.org>
Date: Tue, 31 Jul 2012 23:08:46 -0700

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
Received on 2012-08-01 08:09:24 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.