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

Re: Require comments/messages on commit

From: Gregory Piņero <gregpinero_at_gmail.com>
Date: 2005-05-07 04:55:20 CEST

Peter,

That's works, thanks! I had to download a grep.exe and change your
path for that in the script.

How could I send the user an error message telling them they need a
comment? Any idea on that part?

Thanks,

Greg

On 5/6/05, Gregory Piņero <gregpinero@gmail.com> wrote:
> Thanks Peter,
>
> I'll give this a try. I'm still quite curious why the python commands
> aren't working.
>
> I'll let you know how your batch file goes.
>
> Greg
>
>
> On 5/6/05, Peter McNab <mcnab_p@melbpc.org.au > wrote:
> > Gregory Piņero wrote:
> >
> > >I'm still stuck on this. I renamed pre-commit.tmpl to pre-commit.bat
> > >and I replaced the contents with the two lines:
> > >
> > >echo "pre-commit.bat"
> > >pause
> > >
> > >I just want to see that the batch script is triggered. But when I
> > >check something in, nothing seems to happen. Any ideas?
> > >
> > >Thanks,
> > >
> > >Greg
> > >
> > >
> > >
> > >
> > Greg
> > The following batch file prevents commits without comments and logs the
> > attempts and successes to a file.
> >
> > @echo off
> > rem Add path to Subversion executable
> > set path=%path%;c:\Program Files\Subversion\bin
> > rem Add path to grep.exe
> > set path=%path%;c:\Program Files\Borland\Delphi7\Bin
> > Date /T >> D:\pre-commit.log
> > Time /T >> D:\pre-commit.log
> > echo %CMDCMDLINE% >> D:\pre-commit.log
> > SVNLOOK.exe log -t "%2" "%1" | grep.exe "[a-zA-Z0-9]" > nul || exit 1
> > echo Commit Permitted >> D:\pre-commit.log
> > exit 0
> >
> >
> > Peter
> >
> > ---------------------------------------------------------------------
> > 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 Sat May 7 04:57:14 2005

This is an archived mail posted to the Subversion Users mailing list.