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

workaround request

From: Gerasimov, Ivan <Ivan.Gerasimov_at_transas.com>
Date: 2006-12-01 16:14:10 CET

Hello!

 

I'm using TortoiseSVN 1.4.1, Build 7992 - 32 Bit , 2006/11/11 09:34:39
and CLC: svn, version 1.4.2 (r22196) on Windows XP.

 

Subversion has a known issue - it lets committing deletion of locked
files with --no-unlock flag, thus deleted files remain locked.

This causes such problems as: one cannot add a new file with same name
in place of deleted, cannot rename the parent folder, etc.

 

To reproduce the problem, you can use the following scenario:

cd c:\temp

svnadmin create svn-rep --fs-type bdb

mkdir dir

copy nul dir\file.txt

svn import dir file:///C:/temp/svn-rep/dir -m "import dir\file.txt"

rmdir /S /Q dir

svn checkout file:///C:/temp/svn-rep/dir dir

cd dir

svn lock file.txt -m "lock file.txt"

svn delete file.txt

svn commit file.txt --no-unlock -m "commit deletion"

copy nul file.txt

svn add file.txt

svn commit file.txt -m "commit addition"

 

My question is: is it possible to add a workaround for this problem - if
a user commits a deletion of some file with 'Keep locks' option checked,
perform commit in two steps - deletion without this option and the rest
with it?

 

Currently, I have to ask admins to remove the locks manually, on the
server side.

 

Thanks in advance,

Ivan Gerasimov
Received on Fri Dec 1 16:14:43 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.