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

RE: Re: svnperms svnlook problem

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: 2007-10-24 21:16:25 CEST

 

> -----Original Message-----
> From: Erik Huelsmann [mailto:ehuels@gmail.com]

> > 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.
>
> The svnlook code is there as an example. Just calling out to
> svnperms.py is fine if you don't desire the log message to be
> a non-empty string.
>
> HTH,
>
>
> Erik.

About the original question #2 about what happens here:
I'm not a bash pro, but it appears your error is due to two things.
First, the SVNLOOK command parameters are reversed, thus causing the
error. Second, There is an "or" statement in play, so if you get a
non-zero exit code (failure), the second test occurs (exit 1) which will
cause your exit at that line. The "grep" was never the issue.

>
> >
> > 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.
> >
> ---------------------------------------------------------------------
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 24 21:16:46 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.