[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: Bolstridge, Andrew <andy.bolstridge_at_intergraph.com>
Date: Thu, 9 Jul 2009 12:49:31 +0100

C:\Documents and Settings\Administrator>svn info file:///s:/RepoBackup

Path: RepoBackup

URL: file:///S:/RepoBackup

Repository Root: file:///S:/RepoBackup

Repository UUID: 67dea7ad-b5b9-8a43-a853-46f340e44d01

Revision: 309790

Node Kind: directory

Last Changed Author: mjones

Last Changed Rev: 309790

Last Changed Date: 2009-07-09 11:43:17 +0100 (Thu, 09 Jul 2009)

 

When run from a command line, as I say, the problem seems to be only
when the command is run inside the post-revprop-change hook. I doubt its
authentication as the backup doesn't have any, the network share is
always created and available (well, it was when I did the revprop
change).

 

I can run svnsync in a command line, but not in the hook.

 

 

 

From: Tony Sweeney [mailto:tsweeney_at_omnifone.com]
Sent: Thursday, July 09, 2009 12:26 PM
To: Bolstridge, Andrew; users_at_subversion.tigris.org
Subject: RE: svnsync in post-revprop-change

 

Andy,

 

what does 'svn info' make of the URL when run on the server?

 

Tony.

         

        
________________________________

        From: Bolstridge, Andrew [mailto:andy.bolstridge_at_intergraph.com]

        Sent: 09 July 2009 11:09
        To: users_at_subversion.tigris.org
        Subject: svnsync in post-revprop-change

        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:/ <file:///s:\>
RepoBackup

        svnsync -non-interactive copy-revprops file:///s:/RepoBackup %2
<file:///s:\RepoBackup%20%252>

        the first sync is to ensure all revisions are sync'ed before I
try to update the backup's revprop. There is a pre-revprop-change hook
on the backup repository to allow changes. Note that I can't use
svnserve or apache on the backup location, so I use the file protocol on
a network share. I can't change this.

        Andy Bolstridge
        Principal Application Engineer
        Intergraph UK Ltd
        SWINDON, Wiltshire, SN5 7XP. United Kingdon
        P +44(0)1793 492416 F 1+44 (0)1793 694999 M 1+44 (0)7977
256882
        andy.bolstridge_at_intergraph.com
<mailto:firstname.lastname_at_intergraph.com> , www.intergraph.co.uk
<http://www.intergraph.com>

        
        
______________________________________________________________________
        This email has been scanned by the MessageLabs Email Security
System.
        For more information please visit
http://www.messagelabs.com/email
        
______________________________________________________________________

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-09 13:51:38 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.