You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Garrett Fitzgerald <sa...@gmail.com> on 2006/08/12 00:11:47 UTC

Windows hooks and shadow folders

I'm trying to implement Shadow Folder functionality with a post-commit
hook doing an SVN Update. Not elegant, but it should work.

When I run the batch file manually, it works, but it doesn't fire when
I do a commit. I named the file repospath\hooks\post-commit.bat, and
it contains the following line:

"c:\program files\subversion\bin\svn" update z:\ShadowFolderName

SVNService is set to log in as me, if that's relevant. Both SYSTEM and
I seem to have read/write/execute to anything I'm likely to need.

Any thoughts? Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Windows hooks and shadow folders

Posted by Garrett Fitzgerald <sa...@gmail.com>.
On 8/11/06, Jeff Marder <je...@yahoo.com> wrote:
> Is the hook not executing at all or is it just the svn update that's
> failing?

Well, it appears to be executing: I stuck a call to Notepad in it, and
I got a hidden copy of notepad in my Task Manager. :-)

> I assume that
> with the drive letter 'z' it's a mapped network drive. I'm not familiar with
> running Subversion on Windows, but if it's running as a service without a
> user interactively logged in then network drive mappings will not be
> available. Mapped drives are per user and not per machine. You might try
> using a UNC path instead. Hope this helps.

*headdesk* Yes, it helped - it was the missing UNC path. Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Windows hooks and shadow folders

Posted by Jeff Marder <je...@yahoo.com>.
Is the hook not executing at all or is it just the svn update that's failing? If the hook is executing are you able to get any useful output like an error message? You may also want to check that drive path. I assume that with the drive letter 'z' it's a mapped network drive. I'm not familiar with running Subversion on Windows, but if it's running as a service without a user interactively logged in then network drive mappings will not be available. Mapped drives are per user and not per machine. You might try using a UNC path instead. Hope this helps.

Jeff

----- Original Message ----
From: Garrett Fitzgerald <sa...@gmail.com>
To: users@subversion.tigris.org
Sent: Friday, August 11, 2006 8:11:47 PM
Subject: Windows hooks and shadow folders

I'm trying to implement Shadow Folder functionality with a post-commit
hook doing an SVN Update. Not elegant, but it should work.

When I run the batch file manually, it works, but it doesn't fire when
I do a commit. I named the file repospath\hooks\post-commit.bat, and
it contains the following line:

"c:\program files\subversion\bin\svn" update z:\ShadowFolderName

SVNService is set to log in as me, if that's relevant. Both SYSTEM and
I seem to have read/write/execute to anything I'm likely to need.

Any thoughts? Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org