You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ep...@apache.org on 2006/09/06 10:38:42 UTC

svn commit: r440656 - in /maven/continuum/branches/release-integration/continuum/continuum-release/src: main/java/org/apache/maven/continuum/release/ test/java/org/apache/maven/continuum/release/executors/ test/scm/ test/scm/conf/ test/scm/dav/ test/sc...

Author: epunzalan
Date: Wed Sep  6 01:38:40 2006
New Revision: 440656

URL: http://svn.apache.org/viewvc?view=rev&rev=440656
Log:
PR: CONTINUUM-727

at last, a working unit test

Added:
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/README.txt   (with props)
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/authz
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/passwd
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/svnserve.conf
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/dav/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/current
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/format
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/fs-type
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/0
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/1
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/2
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/0
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/1   (with props)
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/2   (with props)
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/readme.txt   (with props)
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/uuid
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/write-lock
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/format
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-commit.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-lock.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-revprop-change.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-unlock.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-commit.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-lock.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-revprop-change.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-unlock.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/start-commit.tmpl
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db-logs.lock
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db.lock
Modified:
    maven/continuum/branches/release-integration/continuum/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
    maven/continuum/branches/release-integration/continuum/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/PrepareReleaseTaskExecutorTest.java

Modified: maven/continuum/branches/release-integration/continuum/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java?view=diff&rev=440656&r1=440655&r2=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java (original)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/main/java/org/apache/maven/continuum/release/DefaultContinuumReleaseManager.java Wed Sep  6 01:38:40 2006
@@ -30,6 +30,7 @@
 import java.io.IOException;
 import java.util.Map;
 import java.util.Properties;
+import java.util.HashMap;
 
 /**
  * @author Jason van Zyl
@@ -118,6 +119,11 @@
 
     public Map getPreparedReleases()
     {
+        if ( preparedReleases == null )
+        {
+            preparedReleases = new HashMap();
+        }
+
         return preparedReleases;
     }
 

Modified: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/PrepareReleaseTaskExecutorTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/PrepareReleaseTaskExecutorTest.java?view=diff&rev=440656&r1=440655&r2=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/PrepareReleaseTaskExecutorTest.java (original)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/PrepareReleaseTaskExecutorTest.java Wed Sep  6 01:38:40 2006
@@ -52,12 +52,14 @@
     public void testRelease()
         throws Exception
     {
-        File testProjectDir = new File( getBasedir(), "target/test-classes/scm-src" );
+        File testProjectDir = new File( getBasedir(), "target/test-classes/scm-src/trunk" );
         File workDir = new File( getBasedir(), "target/test-classes/work-dir" );
         workDir.mkdirs();
 
         ReleaseDescriptor descriptor = new ReleaseDescriptor();
-        descriptor.setScmSourceUrl( "scm:svn:file://localhost/" + testProjectDir.getAbsolutePath() );
+        descriptor.setInteractive( false );
+        descriptor.setScmSourceUrl( "scm:svn:file://localhost/" +
+            testProjectDir.getAbsolutePath().replace( '\\', '/' ) );
         descriptor.setWorkingDirectory( workDir.getAbsolutePath() );
 
         ScmRepository repository = getScmRepositorty( descriptor.getScmSourceUrl() );

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/README.txt
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/README.txt?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/README.txt (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/README.txt Wed Sep  6 01:38:40 2006
@@ -0,0 +1,5 @@
+This is a Subversion repository; use the 'svnadmin' tool to examine
+it.  Do not add, delete, or modify files here unless you know how
+to avoid corrupting the repository.
+
+Visit http://subversion.tigris.org/ for more information.

Propchange: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/authz
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/authz?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/authz (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/authz Wed Sep  6 01:38:40 2006
@@ -0,0 +1,21 @@
+### This file is an example authorization file for svnserve.
+### Its format is identical to that of mod_authz_svn authorization
+### files.
+### As shown below each section defines authorizations for the path and
+### (optional) repository specified by the section name.
+### The authorizations follow. An authorization line can refer to a
+### single user, to a group of users defined in a special [groups]
+### section, or to anyone using the '*' wildcard.  Each definition can
+### grant read ('r') access, read-write ('rw') access, or no access
+### ('').
+
+# [groups]
+# harry_and_sally = harry,sally
+
+# [/foo/bar]
+# harry = rw
+# * =
+
+# [repository:/baz/fuz]
+# @harry_and_sally = rw
+# * = r

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/passwd
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/passwd?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/passwd (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/passwd Wed Sep  6 01:38:40 2006
@@ -0,0 +1,8 @@
+### This file is an example password file for svnserve.
+### Its format is similar to that of svnserve.conf. As shown in the
+### example below it contains one section labelled [users].
+### The name and password for each user follow, one account per line.
+
+# [users]
+# harry = harryssecret
+# sally = sallyssecret

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/svnserve.conf
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/svnserve.conf?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/svnserve.conf (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/conf/svnserve.conf Wed Sep  6 01:38:40 2006
@@ -0,0 +1,30 @@
+### This file controls the configuration of the svnserve daemon, if you
+### use it to allow access to this repository.  (If you only allow
+### access through http: and/or file: URLs, then this file is
+### irrelevant.)
+
+### Visit http://subversion.tigris.org/ for more information.
+
+# [general]
+### These options control access to the repository for unauthenticated
+### and authenticated users.  Valid values are "write", "read",
+### and "none".  The sample settings below are the defaults.
+# anon-access = read
+# auth-access = write
+### The password-db option controls the location of the password
+### database file.  Unless you specify a path starting with a /,
+### the file's location is relative to the conf directory.
+### Uncomment the line below to use the default password file.
+# password-db = passwd
+### The authz-db option controls the location of the authorization
+### rules for path-based access control.  Unless you specify a path
+### starting with a /, the file's location is relative to the conf
+### directory.  If you don't specify an authz-db, no path-based access
+### control is done.
+### Uncomment the line below to use the default authorization file.
+# authz-db = authz
+### This option specifies the authentication realm of the repository.
+### If two repositories have the same authentication realm, they should
+### have the same password database, and vice versa.  The default realm
+### is repository's uuid.
+# realm = My First Repository

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/current
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/current?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/current (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/current Wed Sep  6 01:38:40 2006
@@ -0,0 +1 @@
+2 5 1

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/format
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/format?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/format (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/format Wed Sep  6 01:38:40 2006
@@ -0,0 +1 @@
+1

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/fs-type
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/fs-type?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/fs-type (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/fs-type Wed Sep  6 01:38:40 2006
@@ -0,0 +1 @@
+fsfs

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/0
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/0?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/0 (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/0 Wed Sep  6 01:38:40 2006
@@ -0,0 +1,5 @@
+K 8
+svn:date
+V 27
+2006-09-06T07:29:54.984375Z
+END

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/1
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/1?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/1 (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/1 Wed Sep  6 01:38:40 2006
@@ -0,0 +1,13 @@
+K 10
+svn:author
+V 4
+User
+K 8
+svn:date
+V 27
+2006-09-06T07:31:44.109375Z
+K 7
+svn:log
+V 8
+new file
+END

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/2
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/2?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/2 (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revprops/2 Wed Sep  6 01:38:40 2006
@@ -0,0 +1,13 @@
+K 10
+svn:author
+V 4
+User
+K 8
+svn:date
+V 27
+2006-09-06T08:23:37.671875Z
+K 7
+svn:log
+V 0
+
+END

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/0
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/0?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/0 (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/0 Wed Sep  6 01:38:40 2006
@@ -0,0 +1,11 @@
+PLAIN
+END
+ENDREP
+id: 0.0.r0/17
+type: dir
+count: 0
+text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
+cpath: /
+
+
+17 107

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/1
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/1?view=auto&rev=440656
==============================================================================
Binary file - no diff available.

Propchange: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/1
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/2
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/2?view=auto&rev=440656
==============================================================================
Binary file - no diff available.

Propchange: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/revs/2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/readme.txt
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/readme.txt?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/readme.txt (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/readme.txt Wed Sep  6 01:38:40 2006
@@ -0,0 +1 @@
+this file is here so that the resources plugin will copy this directory. It doesn't copy empty directories.

Propchange: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/transactions/readme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/uuid
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/uuid?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/uuid (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/uuid Wed Sep  6 01:38:40 2006
@@ -0,0 +1 @@
+edc627db-db88-0d49-b1b3-a930d7181127

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/write-lock
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/db/write-lock?view=auto&rev=440656
==============================================================================
    (empty)

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/format
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/format?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/format (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/format Wed Sep  6 01:38:40 2006
@@ -0,0 +1 @@
+3

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-commit.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-commit.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-commit.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-commit.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,51 @@
+#!/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)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# 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.
+# 
+# The hook program typically does not inherit the environment of
+# its parent process.  For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+REV="$2"
+
+commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
+log-commit.py --repository "$REPOS" --revision "$REV"

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-lock.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-lock.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-lock.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-lock.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# POST-LOCK HOOK
+#
+# The post-lock hook is run after a path is locked.  Subversion runs
+# this hook by invoking a program (script, executable, binary, etc.)
+# named 'post-lock' (for which this file is a template) with the 
+# following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] USER         (the user who created the lock)
+#
+# The paths that were just locked are passed to the hook via STDIN (as
+# of Subversion 1.2, only one path is passed per invocation, but the
+# plan is to pass all locked paths at once, so the hook program
+# should be written accordingly).
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# Because the lock has already been created 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-created lock.
+#
+# On a Unix system, the normal procedure is to have 'post-lock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-lock' 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-lock.bat' or 'post-lock.exe',
+# but the basic idea is the same.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+USER="$2"
+
+# Send email to interested parties, let them know a lock was created:
+mailer.py lock "$REPOS" "$USER" /path/to/mailer.conf

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-revprop-change.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-revprop-change.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-revprop-change.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-revprop-change.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# POST-REVPROP-CHANGE HOOK
+#
+# The post-revprop-change hook is invoked after a revision property
+# has been added, modified or deleted.  Subversion runs this hook by
+# invoking a program (script, executable, binary, etc.) named
+# 'post-revprop-change' (for which this file is a template), with the
+# following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] REV          (the revision that was tweaked)
+#   [3] USER         (the username of the person tweaking the property)
+#   [4] PROPNAME     (the property that was changed)
+#   [5] ACTION       (the property was 'A'dded, 'M'odified, or 'D'eleted)
+#
+#   [STDIN] PROPVAL  ** the old property value is passed via STDIN.
+#
+# Because the propchange 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
+# new property value.
+#
+# On a Unix system, the normal procedure is to have 'post-revprop-change'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-revprop-change' 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-revprop-change.bat' or 'post-revprop-change.exe',
+# but the basic idea is the same.
+# 
+# The hook program typically does not inherit the environment of
+# its parent process.  For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+REV="$2"
+USER="$3"
+PROPNAME="$4"
+ACTION="$5"
+
+propchange-email.pl "$REPOS" "$REV" "$USER" "$PROPNAME" watchers@example.org

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-unlock.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-unlock.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-unlock.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/post-unlock.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# POST-UNLOCK HOOK
+#
+# The post-unlock hook runs after a path is unlocked.  Subversion runs
+# this hook by invoking a program (script, executable, binary, etc.)
+# named 'post-unlock' (for which this file is a template) with the 
+# following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] USER         (the user who destroyed the lock)
+#
+# The paths that were just unlocked are passed to the hook via STDIN
+# (as of Subversion 1.2, only one path is passed per invocation, but
+# the plan is to pass all unlocked paths at once, so the hook program
+# should be written accordingly).
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# Because the lock has already been destroyed and cannot be undone,
+# the exit code of the hook program is ignored.
+#
+# On a Unix system, the normal procedure is to have 'post-unlock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'post-unlock' 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-unlock.bat' or 'post-unlock.exe',
+# but the basic idea is the same.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+USER="$2"
+
+# Send email to interested parties, let them know a lock was removed:
+mailer.py unlock "$REPOS" "$USER" /path/to/mailer.conf

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-commit.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-commit.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-commit.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-commit.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,70 @@
+#!/bin/sh
+
+# PRE-COMMIT HOOK
+#
+# The pre-commit hook is invoked before a Subversion txn is
+# committed.  Subversion runs this hook by invoking a program
+# (script, executable, binary, etc.) named 'pre-commit' (for which
+# this file is a template), with the following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] TXN-NAME     (the name of the txn about to be committed)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the txn is committed; but
+# if it exits with failure (non-zero), the txn is aborted, no commit
+# takes place, and STDERR is returned to the client.   The hook
+# program can use the 'svnlook' utility to help it examine the txn.
+#
+# On a Unix system, the normal procedure is to have 'pre-commit'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+#   ***  NOTE: THE HOOK PROGRAM MUST NOT MODIFY THE TXN, EXCEPT  ***
+#   ***  FOR REVISION PROPERTIES (like svn:log or svn:author).   ***
+#
+#   This is why we recommend using the read-only 'svnlook' utility.
+#   In the future, Subversion may enforce the rule that pre-commit
+#   hooks should not modify the versioned data in txns, or else come
+#   up with a mechanism to make it safe to do so (by informing the
+#   committing client of the changes).  However, right now neither
+#   mechanism is implemented, so hook writers just have to be careful.
+#
+# Note that 'pre-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
+# 'pre-commit.bat' or 'pre-commit.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process.  For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+TXN="$2"
+
+# Make sure that the log message contains some text.
+SVNLOOK=/usr/local/bin/svnlook
+$SVNLOOK log -t "$TXN" "$REPOS" | \
+   grep "[a-zA-Z0-9]" > /dev/null || exit 1
+
+# Check that the author of this commit has the rights to perform
+# the commit on the files and directories being modified.
+commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg || exit 1
+
+# All checks passed, so allow the commit.
+exit 0

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-lock.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-lock.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-lock.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-lock.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# PRE-LOCK HOOK
+#
+# The pre-lock hook is invoked before an exclusive lock is
+# created.  Subversion runs this hook by invoking a program 
+# (script, executable, binary, etc.) named 'pre-lock' (for which
+# this file is a template), with the following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] PATH         (the path in the repository about to be locked)
+#   [3] USER         (the user creating the lock)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the lock is created; but
+# if it exits with failure (non-zero), the lock action is aborted
+# and STDERR is returned to the client.
+
+# On a Unix system, the normal procedure is to have 'pre-lock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'pre-lock' 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
+# 'pre-lock.bat' or 'pre-lock.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+PATH="$2"
+USER="$3"
+
+# If a lock exists and is owned by a different person, don't allow it
+# to be stolen (e.g., with 'svn lock --force ...').
+
+# (Maybe this script could send email to the lock owner?)
+SVNLOOK=/usr/local/bin/svnlook
+GREP=/bin/grep
+SED=/bin/sed
+
+LOCK_OWNER=`$SVNLOOK lock "$REPOS" "$PATH" | \
+            $GREP '^Owner: ' | $SED 's/Owner: //'`
+
+# If we get no result from svnlook, there's no lock, allow the lock to
+# happen:
+if [ "$LOCK_OWNER" == "" ]; then
+  exit 0
+fi
+
+# If the person locking matches the lock's owner, allow the lock to
+# happen:
+if [ "$LOCK_OWNER" == "$USER" ]; then
+  exit 0
+fi
+
+# Otherwise, we've got an owner mismatch, so return failure:
+echo "Error: $PATH already locked by ${LOCK_OWNER}." 1>&2
+exit 1

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-revprop-change.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-revprop-change.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-revprop-change.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-revprop-change.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# PRE-REVPROP-CHANGE HOOK
+#
+# The pre-revprop-change hook is invoked before a revision property
+# is added, modified or deleted.  Subversion runs this hook by invoking
+# a program (script, executable, binary, etc.) named 'pre-revprop-change'
+# (for which this file is a template), with the following ordered
+# arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] REVISION     (the revision being tweaked)
+#   [3] USER         (the username of the person tweaking the property)
+#   [4] PROPNAME     (the property being set on the revision)
+#   [5] ACTION       (the property is being 'A'dded, 'M'odified, or 'D'eleted)
+#
+#   [STDIN] PROPVAL  ** the new property value is passed via STDIN.
+#
+# If the hook program exits with success, the propchange happens; but
+# if it exits with failure (non-zero), the propchange doesn't happen.
+# The hook program can use the 'svnlook' utility to examine the 
+# existing value of the revision property.
+#
+# WARNING: unlike other hooks, this hook MUST exist for revision
+# properties to be changed.  If the hook does not exist, Subversion 
+# will behave as if the hook were present, but failed.  The reason
+# for this is that revision properties are UNVERSIONED, meaning that
+# a successful propchange is destructive;  the old value is gone
+# forever.  We recommend the hook back up the old value somewhere.
+#
+# On a Unix system, the normal procedure is to have 'pre-revprop-change'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'pre-revprop-change' 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
+# 'pre-revprop-change.bat' or 'pre-revprop-change.exe',
+# but the basic idea is the same.
+#
+# The hook program typically does not inherit the environment of
+# its parent process.  For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+REV="$2"
+USER="$3"
+PROPNAME="$4"
+ACTION="$5"
+
+if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
+
+echo "Changing revision properties other than svn:log is prohibited" >&2
+exit 1

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-unlock.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-unlock.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-unlock.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/pre-unlock.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# PRE-UNLOCK HOOK
+#
+# The pre-unlock hook is invoked before an exclusive lock is
+# destroyed.  Subversion runs this hook by invoking a program 
+# (script, executable, binary, etc.) named 'pre-unlock' (for which
+# this file is a template), with the following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] PATH         (the path in the repository about to be unlocked)
+#   [3] USER         (the user destroying the lock)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the lock is destroyed; but
+# if it exits with failure (non-zero), the unlock action is aborted
+# and STDERR is returned to the client.
+
+# On a Unix system, the normal procedure is to have 'pre-unlock'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'pre-unlock' 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
+# 'pre-unlock.bat' or 'pre-unlock.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+PATH="$2"
+USER="$3"
+
+# If a lock is owned by a different person, don't allow it be broken.
+# (Maybe this script could send email to the lock owner?)
+
+SVNLOOK=/usr/local/bin/svnlook
+GREP=/bin/grep
+SED=/bin/sed
+
+LOCK_OWNER=`$SVNLOOK lock "$REPOS" "$PATH" | \
+            $GREP '^Owner: ' | $SED 's/Owner: //'`
+
+# If we get no result from svnlook, there's no lock, return success:
+if [ "$LOCK_OWNER" == "" ]; then
+  exit 0
+fi
+# If the person unlocking matches the lock's owner, return success:
+if [ "$LOCK_OWNER" == "$USER" ]; then
+  exit 0
+fi
+
+# Otherwise, we've got an owner mismatch, so return failure:
+echo "Error: $PATH locked by ${LOCK_OWNER}." 1>&2
+exit 1

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/start-commit.tmpl
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/start-commit.tmpl?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/start-commit.tmpl (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/hooks/start-commit.tmpl Wed Sep  6 01:38:40 2006
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# START-COMMIT HOOK
+#
+# The start-commit hook is invoked before a Subversion txn is created
+# in the process of doing a commit.  Subversion runs this hook
+# by invoking a program (script, executable, binary, etc.) named
+# 'start-commit' (for which this file is a template)
+# with the following ordered arguments:
+#
+#   [1] REPOS-PATH   (the path to this repository)
+#   [2] USER         (the authenticated user attempting to commit)
+#
+# The default working directory for the invocation is undefined, so
+# the program should set one explicitly if it cares.
+#
+# If the hook program exits with success, the commit continues; but
+# if it exits with failure (non-zero), the commit is stopped before
+# a Subversion txn is created, and STDERR is returned to the client.
+#
+# On a Unix system, the normal procedure is to have 'start-commit'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that 'start-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
+# 'start-commit.bat' or 'start-commit.exe',
+# but the basic idea is the same.
+# 
+# The hook program typically does not inherit the environment of
+# its parent process.  For example, a common problem is for the
+# PATH environment variable to not be set to its usual value, so
+# that subprograms fail to launch unless invoked via absolute path.
+# If you're having unexpected problems with a hook program, the
+# culprit may be unusual (or missing) environment variables.
+# 
+# Here is an example hook script, for a Unix /bin/sh interpreter.
+# For more examples and pre-written hooks, see those in
+# the Subversion repository at
+# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and
+# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/
+
+
+REPOS="$1"
+USER="$2"
+
+commit-allower.pl --repository "$REPOS" --user "$USER" || exit 1
+special-auth-check.py --user "$USER" --auth-level 3 || exit 1
+
+# All checks passed, so allow the commit.
+exit 0

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db-logs.lock
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db-logs.lock?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db-logs.lock (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db-logs.lock Wed Sep  6 01:38:40 2006
@@ -0,0 +1,3 @@
+This file is not used by Subversion 1.3.x or later.
+However, its existence is required for compatibility with
+Subversion 1.2.x or earlier.

Added: maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db.lock
URL: http://svn.apache.org/viewvc/maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db.lock?view=auto&rev=440656
==============================================================================
--- maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db.lock (added)
+++ maven/continuum/branches/release-integration/continuum/continuum-release/src/test/scm/locks/db.lock Wed Sep  6 01:38:40 2006
@@ -0,0 +1,3 @@
+This file is not used by Subversion 1.3.x or later.
+However, its existence is required for compatibility with
+Subversion 1.2.x or earlier.