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

Re: SVNSync

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-09-13 20:17:13 CEST

On 9/13/06, Sebastian Armbrust <flizebogen@googlemail.com> wrote:

Please keep this on the list, your last reply was just to me.

> 2006/9/13, Garrett Rooney <rooneg@electricjellyfish.net>:
> > On 9/13/06, Sebastian Armbrust <flizebogen@googlemail.com> wrote:
> > > I upgraded to subversion 1.4 (win32) and tested the new svnsync command.
> > >
> > > svnsync works well in mirroring new revisions but what about revprops?
> With
> > > the hook pre-revprop-change enabled users can change revprops. In my
> tests
> > > changed revprops of already mirrored revisions weren't updated at all.
> Is
> > > this wanted behaviour?
> >
> > Changed revprops of already mirrored revisions will not be updated,
> > you need to explicitly use the copy-revprops command to do it.
> > There's no way for svnsync to know that the revprops have been
> > tweaked, so it has to be handled at a higher level.
>
>
> i tried copy-revprops but neither it worked for a single revision nor can
> one specify all or do i need a parameter?

Can you please be more specific? What exactly did you do, and what
was the result?

> > As for users being able to change revprops, that's only if you allow
> > them to. I'd suggest writing a pre-revprop-change that limits that
> > ability to the user you run svnsync as, honestly, you should also
> > limit write access to that user, as if anyone else starts making
> > commits to the destination repos you're in trouble, since you'll lose
> > the ability to continue syncing to it.
> > -garrett
> >
>
>
> the hook pre-revprop-change is only enabled in rare cases by hand trough the
> admin. I wanted to use svnsync to mirror the repository from work to home
> but if svnsync doesn't work for all data i have to use another sync tool.
> The home copy is only used read-only.

I'm really not sure what you're worried about here. You only need to
enable the pre-revprop-change on your local read-only mirror. Yes, if
revprops are changed on the server you won't automagically get them
changed in your mirror. Sorry, those are the realities of mirroring
subversion repositories. There is NO WAY to determine that revprops
have been changed unless you have a post-revprop-change script on the
server record that information someplace. Any other means of getting
a read only mirror over the Subversion RA layer will have exactly the
same problem.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 13 20:17:51 2006

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.