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

hook script basics

From: Brian Krusic <brian_at_krusic.com>
Date: 2007-08-01 23:19:42 CEST

Hi All,

I've implemented a few hook scripts in the past; checking case,
forcing log messages and sending emails about the commits.

However it appears I just implemented this stuff w/o understanding it.

* problem *

I have a simple post-commit.bat file which contains commands I want
to call.

In my case the contents of the post commit is;

@echo off
C:\Progra~1\Subversion\bin\svn update --username foo --password bar --
no-auth-cache F:\Jobs\Cooljob

The F:\Jobs\Cooljobs is the local dir that sits on the repo server
itself as I checked out the repo on the same PC.

The username/pass is used for example only.

The file works if I exe it from a cli on the repo server but not when
I commit from another PC.

I expect it to work like so;

1 - User commits a file from some workstation.
2 - Repo executes the post commit which updates a checked out copy on
the server itself.

I'm doing some batch rendering hence why the checked out copy on the
server.

Bri-
Received on Wed Aug 1 23:18:52 2007

This is an archived mail posted to the Subversion Users mailing list.