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

RE: Svnsync - switching source and mirror

From: Bailey, Darragh <dbailey_at_hp.com>
Date: Tue, 2 Feb 2010 17:56:19 +0000

Some typo's in my mail that I didn't spot the first time

> 5) Synchronise the repositories
> svnsync synchronize --username svnsync
> svn+ssh://svnsync@remote/var/svn/mirror
> 6) Put the local repo into read-only mode temporarily and
> repeat step 6 (since otherwise it would read-only for many hours)
> Do this by setting at the top of the scripts
> /var/svn/master/hooks/{pre-commit,pre-revprop-change}
> echo "Repository temporarily read only contact blah if this
> is an issue"
> exit 1

Start of 6 should have read
"6) Put the local repo into read-only mode temporarily and repeat step 5"

> 7) Add post-commit and post-rev-changes to forward and future
> changes to the master repository to the
> /var/svn/master/hooks/post-commit
> /usr/local/bin/svnsync synchronize --username svnsync
> svn+ssh://svnsync@remote/var/svn/mirror &
> /var/svn/master/hooks/post-rev-change
> REV="$2"
> /usr/local/bin/svnsync copy-revprops --username svnsync
> svn+ssh://svnsync@remote/var/svn/mirror $REV &

End of step 7 should have been remove the read-only changes made in step 6 from the local master. Otherwise, as I'm sure someone will point out, you won't be able to commit to the master.

Darragh Bailey
Systems Software Engineer
Hewlett Packard Galway Ltd.
Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
Registered Number: 361933 
Received on 2010-02-02 18:57:40 CET

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.