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

Deleting/Renaming locked files with "keep locks" selected

From: Kirk Lapray <kirk.lapray_at_gmail.com>
Date: 2006-02-17 23:57:06 CET

I have looked through the mailing list and all bug reports and have not seen
this problem mentioned. I might have overlooked it, and if so, please
disregard this report.

Whenever a file is deleted or renamed using the TortoiseSVN tools and then
committed with "keep locks" selected the server keeps a lock on these files
even though they no longer exist. So, if at any time in the future you try
to add a file that has the same name as one of these previous files you get
a "file already exists" error. This also has the possibility of leaving a
lot of locks on the server that I would think are unnecessary.

To me it would seem to make sense to always remove the lock on files that
are deleted, even if "keep locks" is selected. On files that are renamed
remove the lock on the old file and get a lock on the new file if "keep
locks" is selected.

I am not sure how hard this would be to implement, or if there is a good
reason why it is not like this. I have had some problems with it lately and
ended up cleaning almost 600 locks up for files that no longer exist in the
repository.

Thanks for all your hard work on TortoiseSVN.

Kirk
Received on Fri Feb 17 23:57:38 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.