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