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

Are there anyone running Subversion server on Window NT?

From: Chien-Lung Wu <cwu_at_deltartp.com>
Date: 2003-05-05 16:18:09 CEST

Hi,

        I am running Suberversion server on Window NT; and it work well for
me to checkin/checout repositories.
However, I still can not get sending e-mail work when I commit any changes.

        Regarding the documentation, there is a "hook" to hook up
'commit-email.pl' when there is any change.
But I have several questions to let it work:

        Q1. How to "hook it up"?
              As I tried to hook it up, through the post-commit.

                        /**************** 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)
                        #
                        # Because the commit has already completed and
cannot be undone,
                        # the exit code of the hook program is ignored. The
hook program
                        # can use the `svnlook' utility to help it examine
the
                        # newly-committed tree.
                        #
                        # On a Unix system, the normal procedure is to have
`post-commit'
                        # invoke other programs to do the real work, though
it may do the
                        # work itself too.
                        #
                        # Note that `post-commit' must be executable by the
user(s) who will
                        # invoke it (typically the user httpd runs as), and
that user must
                        # have filesystem-level permission to access the
repository.
                        #
                        # On a Windows system, you should name the hook
program
                        # `post-commit.bat' or `post-commit.exe',
                        # but the basic idea is the same.
                        #
                        # Here is an example hook script, for a Unix /bin/sh
interpreter:

                        REPOS="$1"
                        REV="$2"
                        commit-email.pl "$REPOS" "$REV"
commit-watchers@example.org
                        #log-commit.py --repository "$REPOS" --revision
"$REV"

                        /***** end of post-commit ***/

                        Nothing happens when I checkin (commit) any change.
                        Do I miss something?
                        I am wondering that there exists any procedure to
let it work on Window NT.

                        Q2. Are there any version of commit-email.pl
working on Window NT?
                        The commit-email.pl is working on Unix/Linux
environment as I study the code. Are there any
                        version working on window NT? or how to configure it
so that it can work on Window?

                        Q3. Are there any way distinguish different users
(groups) when I setting the commit-email function?
                        For example, there are A, B, C, and D working in the
same project. Since some reasons, C's commit will send e-mail to A and D but
not B. Does Subversion can do like this way?

                        I believe that there are many people running
Subversion on Window system. Can anyone teach/show me how to solve the
commit-email issue. Appreciate your help. Thanks.

        Regards,

        Chien-Lung
                          

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 5 16:20:33 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.