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

Re: hook-scripts & .bat files

From: Dominic Anello <danello_at_danky.com>
Date: 2004-09-09 20:01:11 CEST

On 2004-09-09 17:09:30 +1200, Steven Higgan wrote:
----8<----
> SET REPOS=
> SET REV=
> SET LOG=
> SET AUTHOR=
> SET TRAC_ENV=
>
> So how would I assign the value of LOG to be what svnlook returns?
>
> If I can get it right I might even be able to submit a patch to the
> dev list
> to provide examples of how us windows weenies can run hook scripts
> from bat
> files.

I don't have a Windows repository, so this isn't a svnlook example.
Also this will only work on XP and 2000 (maybe NT4, but not sure).

D:\src\trunk\product-doc>FOR /F "usebackq" %s IN (`svnversion .`) DO @SET REV=%s

D:\src\trunk\product-doc>echo %REV%
2061

  • application/pgp-signature attachment: stored
Received on Thu Sep 9 20:01:53 2004

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