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

Re: Syntax help for pre-commit hook

From: Phil <plabonte_at_gmail.com>
Date: 2006-04-13 21:55:42 CEST

I take it back it does work. Thanks alot!!!!!!

On 4/13/06, Phil <plabonte@gmail.com> wrote:
>
> I tried it and it did not work.
>
> I have subversion installed on a linux box and I put in the correct path's
> for svnlook and sed... any change we can chat again on Monday to see how to
> make this work?
>
>
> On 4/12/06, Phil <plabonte@gmail.com> wrote:
> >
> > Thanks I will try it out and let you know if it worked...
> > That SED line looks very complicated... almost every symbol on the
> > keyboard other than the numbers and letters... :)
> >
> > Thanks
> >
> >
> > On 4/12/06, Ryan Schmidt <subversion-2006Q1@ryandesign.com> wrote:
> > >
> > > On Apr 12, 2006, at 19:20, Phil wrote:
> > >
> > > > I need help with the syntax for a pre commit hook script.
> > > > I want to check that svn:need-lock is set on files before the are
> > > > commited.
> > > >
> > > > I looked at the default pre-commit hook but I am not much of a
> > > > programmer and I cannot figure out the syntax for what I want to
> > > > accomplish.
> > >
> > > I wrote the attached script for you which seems to work, assuming you
> > > have a Unix-like server. You'll need to configure the paths to the
> > > svnlook and sed executables. Unfortunately I'm not one enough with
> > > sed to understand why, but the way I used sed only seems to work with
> > > GNU sed, not BSD sed. Outrageous theories about this are gladly
> > > accepted. If you have a Windows server, then someone will first have
> > > to convert this shell script to something that runs on Windows.
> > >
> > >
> > >
> > >
> > >
> >
>
Received on Thu Apr 13 22:09:39 2006

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.