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

Hook scrip - post-commit

From: Enrico Straube <enrico.straube_at_cbb-software.com>
Date: 2005-02-18 08:26:35 CET


I have a small perl script that incremental backup the repository from
the current revision to the last backuped revision. I can test that in
the shell and it works fine. But when I include that script in the
hook file "post-commit" than nothing will happened. The hook script
can be executed and has the same rights then the other files in the
repository. Also the perl script have the same rights. Here are the
hook script:

,----- [ post-commit ]
| #!/bin/sh
| #
| # The post-commit hook is invoked after a commit. Subversion runs
| # this hook by invoking a program (script, executable, binary, etc.)
| # named 'post-commit' (for which this file is a template) with the
| # following ordered arguments:
| #
| # [1] REPOS-PATH (the path to this repository)
| # [2] REV (the number of the revision just committed)
| #
| REPOS="$1"
| REV="$2"
| /usr/local/bin/backup-since-rev.pl "$REPOS" "$REV"

Any ideas?

Enrico Straube

  • application/pgp-signature attachment: stored
Received on Fri Feb 18 08:30:53 2005

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.