[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: Tony Sweeney <tsweeney_at_omnifone.com>
Date: Thu, 9 Jul 2009 12:26:19 +0100

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:/RepoBackup

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

        

        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=2369351

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