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

RE: Moving locks from one repository to another

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: Mon, 3 Mar 2008 14:25:41 +0000

>> > I am going to move a Subversion repository to a new machine. I was
>> > planning to use svnadmin dump / load, because I need to
>> filter out a
>> > confidential document that accidentally got committed.
>> >
>> > My question is: what will happen to the various locks that
>> users are
>> > holding? There are quite a few, because we keep Word
>> documents in the
>> > repository. Is it possible to migrate them to the new
>> server - say by
>> > copying the contents of the db/locks folder?
>> The dump format does not have a place for lock information.
>> All files will be unlocked when you import the dump into a new
>> repository. :-/
>That's what I remember from the last time I did this... :-( I
>hadn't anticipated it and the aftermath was a bit painful.
>My cunning plan is to zip up the contents of the db/locks folder on
>the old repository, and unzip it into the new one. I've looked at
>the files inside, and they're a bunch of files named according to
>the md5sum of the locked paths, sharded by the first three characters.
>They contain either lock token information (if they refer to leaf files)
>or a list of pointers to child md5sums (if they refer to folders).

It might be of interest to list members to know that this seems to
have worked perfectly.


Jon Ashley
This email is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If you have received this email in error please contact the sender. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Praxis. 
Although this email and any attachments are believed to be free of any virus or other defect, no responsibility is accepted by Praxis or any of its associated companies for any loss or damage arising in any way from the receipt or use thereof. The IT Department at Praxis can be contacted at it.support_at_praxis-his.com.
Praxis High Integrity Systems Ltd:
Company Number: 3302507, registered in England and Wales
Registered Address: 20 Manvers Street, Bath. BA1 1PX
VAT Registered in Great Britain: 682635707
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-03 16:59:44 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.