Hello. I'm a new user to Subversion (Windows). The program works pretty
well for myself and the job where I am implementing it (a web design
business), but I have a problem. What I want to do is use the post commit
hook .bat file to check out a copy of the repository to a folder on another
machine (either network drive or UNC path), cleanup the repository and
unlock all files. With this we can have the mirror on a live (albeit
secure) site where clients could log in and check it out.
I wrote the .bat file and it runs fine manually ... but it does not work
when running with the hook. I know the hook is being called, as I did some
tests where it creates folders and files on C:\, which it does, but when it
comes to a network drive it won't do anything. The original bat file went
something like this (I forget off the top of my head if it is svn or
svnadmin):
mkdir C:\testone\
svn co http://acmegenericsite.com/repository location
\\networkmachine\intended_mirror
svn cleanup \\networkmachine\intended_mirror
svn update \\networkmachine\intended_mirror
mkdir C:\testtwo\
The folder creation works, but subversion won't even touch the network
drive. I've given Apache permissions on both machines to do whatever it
needs (e.g. a user with permissions on the specified folders, with the
network drive set to accept it), but that doesn't help. It also doesn't
change anything if I map the UNC path to X:\.
I had the grand idea later to do something different: I had subversion
create said local mirror on my C:\ and then use the bat file to xcopy it to
the network drive. Frustratingly, that doesn't work either. The copy
command works, but that only copies files in the directory itself, not in
the subdirectories. I know xcopy needs parameters to copy subdirectories,
but even those don't help in this situation. I've been working on this for
awhile and it is driving me crazy. If anyone has any possible solution, it
would be greatly appreciated.
Thank you.
-JD
Received on 2008-02-22 15:28:39 CET