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

RE: Post-commit hook export

From: Mike van Hoof <m.vhoof_at_scheepens.nl>
Date: Mon, 30 Jun 2008 15:41:16 +0200

Hi there,
 
i fixed it... with some help
 
the post-commit.bat file contains:
 
C:\Repositories\reponame\hooks\export.vbs %1 %2
 
AND export.vbs contains:
 
var1 = Replace(WScript.Arguments.Item(0), "\", "/")
var2 = WScript.Arguments.Item(1)
 
folderArray = Split(var1, "/")
Repository = UBound(folderArray)
 
Set shell = CreateObject("WScript.Shell")
shell.Run Unescape("%22") & "C:\Program Files\CollabNet Subversion
Server\svn.exe" & Unescape("%22") & " export file:///" & var1 &
"/trunk/www C:\Inetpub\wwwroot\mike\test\" & folderArray(Repository) & "
--username web --password web --force", 1, false
Set shell = Nothing
 
Hope it helps someone who is looking for the same!
 

Met vriendelijke groet,

Mike van Hoof

Scheepens reclame adviseurs
Post > Postbus 954, 5000 AZ, Tilburg
Bezoek > Sportweg 14, 5037 AC, Tilburg
Telefoon > 013 5950 900
Fax > 013 5950 901
e-mail > m.vhoof_at_scheepens.nl <blocked::mailto:m.vhoof_at_scheepens.nl>
internet > www.scheepens.nl <blocked::http://www.scheepens.nl/>

> Opvallend veelzijdig

 

________________________________

Van: Mike van Hoof
Verzonden: maandag 30 juni 2008 11:15
Aan: users_at_subversion.tigris.org
Onderwerp: Post-commit hook export

Hi,
 
i am trying to get a post-commit hook to work.
The current content in the script is:
 
#!/bin/sh
"C:\Program Files\CollabNet Subversion Server\svn" export
file:///$1/trunk/www C:\Inetpub\wwwroot\mike\test\ --username web
--password web --force
 
The next step will be that only the repository name is extracted from
the path, so that i can export to that subfolder.
 

Met vriendelijke groet,

Mike van Hoof

Scheepens reclame adviseurs
Post > Postbus 954, 5000 AZ, Tilburg
Bezoek > Sportweg 14, 5037 AC, Tilburg
Telefoon > 013 5950 900
Fax > 013 5950 901
e-mail > m.vhoof_at_scheepens.nl <blocked::mailto:m.vhoof_at_scheepens.nl>
internet > www.scheepens.nl <blocked::http://www.scheepens.nl/>

> Opvallend veelzijdig
Received on 2008-06-30 15:41:47 CEST

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.