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

Re: svnsync in post-revprop-change

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 9 Jul 2009 08:24:29 -0400

On Thu, Jul 9, 2009 at 06:08, Bolstridge,
Andrew<andy.bolstridge_at_intergraph.com> wrote:
> Hi.
>
>         I have a potential bug in svn (1.6.3) when updating a revprop (log
> in this case). System: server is VisualSVN server 1.6.3, and client is
> TortoiseSVN using svn 1.6.3. I have the correct pre-revprop-change hook in
> the repository.
>
>         Now, the setup I have is that I’ve put a post-revprop-change hook in
> that calls svnsync to a backup server, so when a revprop is changed, the
> hook runs and syncs it to the server (so I always get my changes copied,
> svnsync won’t remember that a historic revprop has changed otherwise).
>
>          When I attempt the revprop change, the whole chain fails when
> running the sync. I get the error: “Unable to open an ra_local session to
> URL” (of the destination I’m trying to sync to).
>
> If I try the sync command on the command line, it works fine.
>
>         So – is it possible to get svnsync running in a post-revprop-change
> hook, or have I missed something simple?
>
> My hook is simple:
>
> svnsync –non-interactive sync  file:///s:/RepoBackup
>
> svnsync –non-interactive copy-revprops file:///s:/RepoBackup %2

Drive mappings only exist for the user who is logged-on interactively.
The account Apache (VisualSVN Server is still just Apache, right?) is
running under doesn't see that drive mapping at all. You need to use a
UNC path, and then the account Apache is running under has to have
full permissions on that remote location.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2369376

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-09 14:25:18 CEST

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.