[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: any "must-have" hooks to implement on svn server?

From: Waynn Lue <waynnlue_at_gmail.com>
Date: Sat, 19 Jul 2008 07:22:36 -0700

>
>
> * pre-commit: prevent committing a file whose name would be problematic on
> Windows (don't know a script that does this):
> * these filenames are illegal on Windows: CON, PRN, AUX, NUL, COM1 thru
> COM9, LPT1 thru LPT9, and any of these with any extension
> * a filename may not end with a period or space
> * a filename may not contain the characters < > : " / \ |
>

I'm actually looking for a more specific instance of this. There are files
that should exist in each developer's environment called dbsecret.php.inc
and reality.php.inc, and I want to make sure no one tries to check in a file
named that. This was my attempt in pre-commit to fix it, but it doesn't
seem to work. Any ideas?

$SVNLOOK changed -t "$TXN" "$REPOS" | \
   grep -E "dbsecret.php.inc|reality.php.inc" > /dev/null || exit 1

Waynn
Received on 2008-07-19 16:22:58 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.