[Zope-CVS] CVS: RepoUtils - postcommit.py:2.2
Ken Manheimer
klm at zope.com
Sat Dec 13 13:28:52 EST 2003
Update of /cvs-repository/RepoUtils
In directory cvs.zope.org:/tmp/cvs-serv1086
Modified Files:
postcommit.py
Log Message:
Name main routine "cvs_postcommit", since the argument parsing is
probably cvs specific.
(If it turns out that svn uses the same (brain-dead) argument format,
cvs_postcommit and a to-be-made sv_postcommit will both be
degeneratively trivial wrappers, otherwise they may translate the
args to a common format and call a common base routine.)
=== RepoUtils/postcommit.py 2.1.1.1 => 2.2 ===
--- RepoUtils/postcommit.py:2.1.1.1 Sat Dec 13 11:50:44 2003
+++ RepoUtils/postcommit.py Sat Dec 13 13:28:51 2003
@@ -3,9 +3,17 @@
Table-guided checkin notifications with diffs and symlink maintenance, all
from tables maintained as part of the repository bookkeeping.
+Notifications are routed according to traffic_table.py in the bookkeeping
+directory, and symlink management is according to checkin of a file named
+'repolinks', using adjustlinks.py. The actual work happens in a separate,
+disconnected process to avoid CVS lock self-contention and also avoid delaying
+people's checkin activities.
+
This is intended to be made available for import to the custom repository
bookkeeping scripts by inclusion in the repository host's python site-packages
-directory."""
+directory.
+
+See the value of POSTCOMMIT_ACTIONS_OPTIONS for usage details."""
# DEFAULTS:
@@ -22,7 +30,7 @@
MAIL_CMD = "/usr/lib/sendmail -t -f %s"
-postcommit_actions_options = """
+POSTCOMMIT_ACTIONS_OPTIONS = """
Options:
--verbose - operate in verbose mode, with output to OUTPUT_LOG in the
@@ -91,11 +99,11 @@
sVv_re = re.compile("(.*),([^,]+),([^,]+)")
-def postcommit_main(args,
- cvsmaster="cvs-admin at wherever",
- ldap_host=None, ldap_port=389,
- ldap_search_base=None,
- ldap_filter_list_template=None):
+def cvs_postcommit(args,
+ cvsmaster="cvs-admin at wherever",
+ ldap_host=None, ldap_port=389,
+ ldap_search_base=None,
+ ldap_filter_list_template=None):
"""Grok the args and process accordingly.
- cvsmaster: email address of an address to receive malfunction reports,
More information about the Zope-CVS
mailing list