User Tools

Site Tools


logfile20070626
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


logfile20070626 [2015/06/09 15:23] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +<code>
 +tux:/home/svn/hooks# apt-get install subversion-tools
 +Reading Package Lists... Done
 +Building Dependency Tree... Done
 +The following extra packages will be installed:
 +  libconfig-inifiles-perl liburi-perl python2.3-subversion
 +Suggested packages:
 +  libwww-perl
 +The following NEW packages will be installed:
 +  libconfig-inifiles-perl liburi-perl python2.3-subversion subversion-tools
 +0 upgraded, 4 newly installed, 0 to remove and 14 not upgraded.
 +Need to get 1340kB of archives.
 +After unpacking 4477kB of additional disk space will be used.
 +Do you want to continue? Yn?
 +Get:1 http://ftp3.nrc.ca oldstable/main liburi-perl 1.35-1 87.8kB?
 +Get:2 http://ftp3.nrc.ca oldstable/main python2.3-subversion 1.1.4-2 1130kB?
 +Get:3 http://ftp3.nrc.ca oldstable/main libconfig-inifiles-perl 2.38-3 49.7kB?
 +Get:4 http://ftp3.nrc.ca oldstable/main subversion-tools 1.1.4-2 71.9kB?
 +Fetched 1340kB in 7s (182kB/s)
 +Selecting previously deselected package liburi-perl.
 +(Reading database ... 31375 files and directories currently installed.)
 +Unpacking liburi-perl (from .../liburi-perl_1.35-1_all.deb) ...
 +Selecting previously deselected package python2.3-subversion.
 +Unpacking python2.3-subversion (from .../python2.3-subversion_1.1.4-2_i386.deb) ...
 +Selecting previously deselected package libconfig-inifiles-perl.
 +Unpacking libconfig-inifiles-perl (from .../libconfig-inifiles-perl_2.38-3_all.deb) ...
 +Selecting previously deselected package subversion-tools.
 +Unpacking subversion-tools (from .../subversion-tools_1.1.4-2_all.deb) ...
 +Setting up liburi-perl (1.35-1) ...
 +Setting up python2.3-subversion (1.1.4-2) ...
 +
 +Setting up libconfig-inifiles-perl (2.38-3) ...
 +Setting up subversion-tools (1.1.4-2) ...
 +tux:/home/svn/hooks# cp post-commit.tmpl post-commit
 +tux:/home/svn/hooks# vim post-commit
 +tux:/home/svn/hooks# chmod +x post-commit
 +tux:/home/svn/hooks# cat 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)
 +#
 +# 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.
 +#
 +# Here is an example hook script, for a Unix /bin/sh interpreter:
 +
 +REPOS="$1"
 +REV="$2"
 +
 +/usr/lib/subversion/hook-scripts/commit-email.pl "$REPOS" "$REV" oclug-www@lists.oclug.on.ca
 +</code>
 +
 +
  
logfile20070626.txt · Last modified: 2015/06/09 15:23 by 127.0.0.1