Subversion: Difference between revisions
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
* '''All commits to a given repopath PATH, with details''' | * '''All commits to a given repopath PATH, with details''' | ||
** <code>svn log -d --xml | xml sel -t -c "//logentry[paths/path='PATH']" | ** <code>svn log -d --xml | xml sel -t -c "//logentry[paths/path='PATH']" | ||
==Hooks== | |||
===Pre-commit=== | |||
<pre>#!/bin/sh | |||
umask 0002 || exit 1 | |||
REPOS="$1" | |||
TXN="$2" | |||
# must use log messages you aloof little bitches | |||
svnlook log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" || { echo "Empty logfiles are disallowed." >&2 ; exit 1 ; }</pre> | |||
[[Category:Source Control]] | [[Category:Source Control]] | ||