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

Re: revprop change notifications (was: svn commit: rev 5289 ...)

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-03-14 05:27:41 CET

On Thu, Mar 13, 2003 at 10:16:35PM -0600, cmpilato@collab.net wrote:
>...
> I know we weren't planning to use a tempfile, but why exactly would
> this not work, again?
>
> tmp_dir = (the not yet existent)apr_dir_temp_get();
> path = svn_io_open_unique_file(tmp_dir, "svn-ps", "tmp")
> write(path, old_value)
>
> Pass PATH to the post-revprop-change hook as a cmd-line arg (with
> REPOS, PROPNAME, etc). The hook reads from PATH, does its thing, and
> then the repos layer unlinks PATH.

That would work, as long as SVN was doing it. I was thinking about the case
where the pre- creates a tempfile, hoping that the post- would read it.

I hope that we wouldn't have to use a tempfile, but we might have to, to
deal properly with binary properties. Some shells/scripting languages might
not deal very well with binary on stdin.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 14 05:26:06 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.