[ Replying to an ancient bug.  Sorry for the late response: this must
have slipped through the cracks. ]

Tobias Fünky wrote on Fri, May 15, 2009 at 12:31:22 +0200:
> If svnsync would provide a command, which just fires the above mentioned 
> propdelete and -- more important -- provides documentation of this, it would
> give some benefit to stressed admins. 

As of 1.8, 'svnsync sync' takes a --steal-lock argument which handles
this transparently:

% svnsync h sync
⋮
  --disable-locking        : Disable built-in locking.  Use of this option can
                             corrupt the mirror unless you ensure that no other
                             instance of svnsync is running concurrently.
  --steal-lock             : Steal locks as necessary.  Use, with caution,
                             if your mirror repository contains stale locks
                             and is not being concurrently accessed by another
                             svnsync instance.

That said, perhaps the error message you got ("svnsync: Couldn't get
lock on destination repos after 10 attempts") should suggest the
--steal-lock option.

> Most important on this wish item are two lines of documentation at the right 
> place, which is 'svnadmin help'.

I don't think svnsync locks should be documented in svnadmin; they should
be documented in the documentation of svnsync and in this book section:
http://svnbook.red-bean.com/nightly/en/svn.advanced.locking.html#svn.advanced.locking.meanings

I've followed up on svnbook-dev@ about the latter.

Cheers,

Daniel

Reply via email to