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

TortoiseSVN do not accept xcopy within Hook Skripts

From: Marc Biebl <mbiebl_at_xrsystems.de>
Date: Wed, 16 Sep 2009 12:45:19 +0200

Dear Sir or Madam,

I'd like to make a copy of my working directory after a repository commit (TortoiseSVN Commit).

So I created a batch file named "post_commit.bat" and added it to TortoiseSVN as Hook Script (Type: Post-Commit).

The batch file just contains the following line:

xcopy C:\svn_working_copy \* C:\test /S /Y

This line causes that all files and subfolders from the "svn_working_copy" directory

will be copied in the "test" directory (without asking).

The batch script itself works fine.

But when it is called up as a hook-script by TortoiseSVN (right after a commit) it just won't work!

When I am using the "copy" command instead (of xcopy) the hook script works!

But as you know it is not possible to copy subfolders with the "copy" command.

Switching the Checkboxes "Wait for the script to finish" and "Hide the script while running"

in the TortoiseSVN settings (Hook Scripts) did not show any effect on the issue.

The problem occurs with all other Hook-Script-Types (pre-commit, post-update...) as well.

So I have 2 questions.

1. Is this problem a bug?

2. Do you know any other solutions for copying the svn_working_copy (with the subdirectories) in another directory within a hook script?

The version of my TortoiseSVN Client is 1.6.5, Build 16974 - 32 Bit.

If it is possible, send your answer to mbiebl_at_xrsystems.de, please.

Thank you for your help.

With best regards
_________________________________________

Marc Biebl

Junior Level Linux Professional (LPIC-1)

XR Systems
Gesellschaft für Einsatzplanung und Realisierung
betrieblicher Informationssysteme mbH (HRB München 84082)
Münchener Str. 14
D-85540 Haar b. München
fon +49 (89) 427231-0
fax +49 (89) 427231-70

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2395450

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-09-16 12:49:24 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.