Blair,
Thanks, you are correct and I've corrected my syntax. However, now I'm
getting "svnlook: No such transaction". When I test the hook by
attempting a commit using TortoiseSVN, I just see 'pre-commit' hook failed
with error output: Then nothing following. I can see by using debugging
statements that it's failing at the svnlook and it's not getting to the
svnperms.py. If I comment out the svnlook, it does get to the svnperms.py
and I do get a message that I don't have permission to commit (which is
correct). If I execute the svnlook on a command line I get the "svnlook:
No such transaction".
OK, well I'm going to pick this up on Monday! Have a good weekend!
Mark Caron
Sr. Systems Engineer
IT-Middleware Team
Prime Therapeutics
651-414-1585
Blair Zajac <blair@orcaware.com> wrote on 10/26/2007 04:57:37 PM:
> MCaron@primetherapeutics.com wrote:
> >
> > Blair Zajac <blair@orcaware.com> wrote on 10/26/2007 04:32:20 PM:
> >
> > > MCaron@primetherapeutics.com wrote:
> > > >
> > > > Hello,
> > > >
> > > > I'm having problems with svnlook. I'm using it in a pre-commit
hook.
> > > > As a side-note, I had issues before because the template
> > > > (pre-commit.tmpl) had the $REPOS and $TXN parameters REVERSED in
the
> > > > svnlook command! Now I've got them in the right order, but I am
> > getting
> > > > this message:
> > > >
> > > > svnlook log -t /home/svn/repos/repos2 93-1
> > > > svnlook: Can't open file '93-1/format': No such file or directory
> > >
> > > The command line arguments are in the wrong order:
> > >
> > > $ svnlook log -t 93-1 /home/svn/repos/repos2
> > >
> > > Regards,
> > > Blair
> > >
> > > --
> > > Blair Zajac, Ph.D.
> > > http://www.orcaware.com/svn/
> >
> >
> > I don't think the parameters are in the wrong order. The template
does
> > have it wrong
> > ($TXN $REPOS) - it should be $REPOS $TXN. Here is the output from
> > svnlook help:
>
> The default pre-commit script created by 'svnadmin create' does haveit
in the
> correct order, it's REPOS followed by TXN.
>
> REPOS="$1"
> TXN="$2"
>
> The order of options doesn't matter, but the transaction must follow
> the -t. So
> these two are both correct and equivalent:
>
> $ svnlook log -t 93-1 /home/svn/repos/repos2 93-1
> $ svnlook log /home/svn/repos/repos2 -t 93-1
>
> And this is how you want to run it
>
> # Make sure that the log message contains some text.
> SVNLOOK=/usr/local/bin/svnlook
> $SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" > /dev/null || {
> echo "$0: no log message for txn $TXN" 1>&2
> exit 1
> }
>
> Blair
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
Prime Therapeutics 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 Sat Oct 27 00:37:28 2007