* added 'force_project_delete'.

* added the pre-revprop-change hook and the post-revprop-change hook.
This commit is contained in:
2010-04-18 12:43:37 +00:00
parent b4fdd8f888
commit c02b59a9ca
16 changed files with 220 additions and 95 deletions

View File

@ -169,7 +169,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
wwwdir = @wwwdir@
cfg_DATA = codepot.ini codepot.sql codepot.a2ldap
cfg_SCRIPTS = start-commit pre-commit post-commit
cfg_SCRIPTS = start-commit pre-commit post-commit pre-revprop-change post-revprop-change
EXTRA_DIST = $(cfg_DATA) $(cfg_SCRIPTS)
all: all-am

View File

@ -136,6 +136,14 @@ file_dir = "@DEPOTDIR@/files"
;------------------------------------------------------------------------------
log_threshold = 0
;------------------------------------------------------------------------------
; When yes, a project member can delete a non-empty project containing
; wiki pages, file uploads, etc. An empty project can be deleted any time
; regardless of this option. A system administrator(sysadmin_userids) is
; allowed to delete a non-empty project also regardless of this option.
;------------------------------------------------------------------------------
force_project_delete = "no"
;------------------------------------------------------------------------------
; customized footer
;------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh
REPOBASE="`basename "${1}"`"
REV="${2}"
REVISION="${2}"
USER="${3}"
PROPNAME="${4}"
ACTION="${5}"
@ -9,5 +9,5 @@ ACTION="${5}"
# [STDIN] PROPVAL ** the old property value is passed via STDIN.
# does not care if logging has failed.
wget -q -O- "%API%/logRevpropChange/svn/${REPOBASE}/${REV}" 2>/dev/null
wget -q -O- "%API%/logCodeRevpropChange/svn/${REPOBASE}/${REVISION}/${USER}/${PROPNAME}/${ACTION}" 2>/dev/null
exit 0

View File

@ -1,7 +1,7 @@
#!/bin/sh
REPOBASE="`basename "${1}"`"
USER="${2}"
REVISION="${2}"
USER="${3}"
PROPNAME="${4}"
ACTION="${5}"