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

AW: pre-commit hook

From: Hunkel, Manfred <M.Hunkel_at_t-systems.com>
Date: 2005-11-22 11:50:24 CET

| -----Ursprüngliche Nachricht-----
| Von: Annick Collet [mailto:Annick.Collet@eumetsat.int]
| Gesendet: Dienstag, 22. November 2005 11:25
| An: users@subversion.tigris.org
| Betreff: pre-commit hook
|
| Dear all,
|
| I'm trying a pre-commit script to enforce a log message like "[1234]"
| ( 4 digits numbers in brackets")
| I encountered problem with my grep command which does not actually what
| I want
| ..
| SVNLOOK log -t "$TXN" "$REPOS" | grep "[0-9999]" > dev/null || exit 1

        What about: grep '\[[0-9][0-9][0-9][0-9]\]'
        or use egrep to simplify further...
| ..
| Any idea ?
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
| For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 22 11:52:59 2005

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.