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

Re: Hook scrip - post-commit

From: <kfogel_at_collab.net>
Date: 2005-02-18 17:58:07 CET

Enrico Straube <enrico.straube@cbb-software.com> writes:
> 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
> |
> | # POST-COMMIT HOOK
> | #
> | # 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"
> |
> `-----

Maybe

   http://subversion.tigris.org/faq.html#hook-environment

has some answers?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 18 18:20:40 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.