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

Re: Update working copy from hook script

From: David Weintraub <qazwart_at_gmail.com>
Date: Sat, 7 Nov 2009 21:29:04 -0500

You realize the the hooks are executed on the server machine and not
the client. This means that hooks do not have access to the user's
working directory where the original "svn co" took place.

Are you, by chance, executing your script on the client's machine
logged in as the client? That may be why your script works, but not as
a hook script.

That's why there's the "svnlook" command. It allows you to examine
various files without having a working copy.

On Thu, Nov 5, 2009 at 12:00 PM, Tyler <tyler.badorrek_at_ngc.com> wrote:
> I'm trying to update a working copy by having svn update executed during a post-commit script after the repo has been committed to by another wc. I have a script that executes svn update, but it only works when I run it directly in the command line. It gets an error and stops when the hook script is called automatically by svn. I'm executing "SVNPATH/svn update fullPathToWC" but I'm not sure why it only works from command line.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414790
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2415498
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-08 03:30:15 CET

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.