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

Re: hook script basics

From: John Peacock <jpeacock_at_rowman.com>
Date: 2007-08-02 14:40:25 CEST

Brian Krusic wrote:
> Why isn't svn update working while as a post hook?

Probably because you are trying to update a network resource which the
Subversion service has no permission to update? Under Windows, services are
[typically] executed by special local accounts, which do not have access to any
networked (drive-mapped) resources. The batch file works as an ordinary user,
because you have the appropriate drive map and rights to use the remote
resource. The Subversion service cannot execute the same script because it
doesn't have the drive map and if you added the 'net map' to the script, the
service user would not have the rights in any case.

What I do for our Windows servers is to install Cywin's sshd (SSH daemon), and
then use SVN::Notify::Mirror:

        http://search.cpan.org/search?query=SVN-Notify-Mirror

which I wrote specifically to permit complex update rules in a post-commit
script (I use SVN::Notify::Config so that the script is the config file).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 2 14:38:45 2007

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.