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

RE: Commit hooks malfunctioning... Bug???

From: Dassi, Nasser <NDassi_at_141xm.com>
Date: 2005-01-21 17:51:56 CET

Thanks Simon for your help; actually, it is accessed locally (file:///).

The "bug?" may just be my misunderstanding; here it is, in the form of a
question for the Subversion Dev Team to give a crack at it:

Q: Is it possible for a HOOK (start/pre/post-commit) to access WC
Add/Delete commands (via "svn add" and "svn delete")?

Bkgnd: From this thread conversation with Simon Martel, it appears that
a HOOK *cannot* modify the working copy from which it was instantiated.
Running hook scripts *outside* of a WC "svn commit" command is not a
problem; but based on the WC's "commit" it seems to not execute
ADD/DELETE commands. "svn up" works fine from within a hook script,
though.

In the end, it may not be a "bug" but a limitation of architecture. If
so, then I will just schedule the hook script as a cron-job on the
machine.

Thanks.

- nasser

Nasser Dassi
Sr. Technical Programmer
=========================================
E: ndassi@141xm.com
=========================================

-----Original Message-----
From: Simon Comeau Martel [mailto:martelsc@videotron.ca]
Sent: Friday, January 21, 2005 11:22 AM
To: users@subversion.tigris.org
Cc: Dassi, Nasser
Subject: Re: Commit hooks malfunctioning...

Dassi, Nasser wrote:

> I am now truly curious why the step would execute when batch is called

> directly, but not when SVN COMMIT hooks are executed.

How are you accessing your repository? Via apache [http(s)://]?
svnserve [svn://]? locally [file:///]?

If you are accessing your repository via apache, you have to know that
the hook scripts are executed by the user runing apache (probably a
system account), and not by your local user. And that user probably
doesn't have the required permission to do a svn update on your working
copy (because it is owned by your local user).

Hope it's clearer this time...

Have a good day

--
Simon Comeau Martel
martelsc@videotron.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 21 17:56:34 2005

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.