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

svnperms svnlook problem

From: <MCaron_at_primetherapeutics.com>
Date: 2007-10-22 19:25:19 CEST

Hello,
I'm testing the svnperms.py pre-commit hook script. I've got it to work,
but only if I comment out the svnlook command in the pre-commit script.
The svnlook part is in the pre-commit.tmpl and I am assuming that it is
there for a reason, but I'm not exactly sure why. This is the code - it
always exits here and does not continue to the svnperms.py that follows.
I've run svnlook on a command line and I get the message "svnlook: No
such transaction". Maybe that's because when I run it the transaction
number is not valid. If I put debugging statements in the script to see
the output of svnlook, it is blank - even if I take out the grep. svnlook
is executable by anyone. If I comment this out, the svnperms.py is
executed and performs its function as desired.

REPOS="$1"
TXN="$2"
## Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook
$SVNLOOK log -t $TXN $REPOS | \
  grep "[a-zA-Z0-9]" > /dev/null || exit 1

1. Why is the svnlook needed?
2. Why doesn't this work (why is it exiting here)?
3. Do I need svnlook with this pre-commit hook?

Thanks,

Mark Caron
Sr. Systems Engineer
IT-Middleware Team
Prime Therapeutics
651-414-1585

txirmx01.primetherapeutics.com made the following annotations
---------------------------------------------------------------------
CONFIDENTIALITY NOTICE:
This E-Mail is intended only for the use of the individual or entity to which it is addressed. This communication including any attachments may contain information that may be privileged, confidential and is exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying is strictly prohibited. If you believe you have received this E-Mail in error, please notify the sender immediately by E-Mail or by calling 1- (800) 858-0723 and delete the original message and any backups from your computer system. All personal messages express views solely of the sender, which are not to be attributed to Prime Therapeutics LLC or any of its affiliated organizations and may not be distributed without this disclaimer. If you have any questions concerning this message, please contact the sender. Thank you for your cooperation.
---------------------------------------------------------------------
Received on Mon Oct 22 19:26:16 2007

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.