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

Cannot re-add a deleted file to Repository when it had a lock

From: Helmut Namyslo <Helmut.Namyslo_at_ptv.de>
Date: 2006-11-08 12:39:02 CET


thank you for the excellent tool Subversion. I am using it for about one
year now and this is the first time I found a problem.

Follow these steps to reproduce it.

1) svn add xx.txt
2) svn propset svn:needs-lock 1 xx.txt
3) svn commit -m"added file xx.txt"
4) svn lock xx.txt
5) svn del xx.txt
6) svn commit -m"delete xx.txt and keep lock" --no-unlock xx.txt
7) svn log --verbose
     Revision 11.
8) svn copy --revision 10 file:///D:/Temp/delrepos/trunk/xx.txt ./xx.txt
9) svn commit -m"undo deletion of xx.txt" xx.txt
     Error: Commit failed (details follow):
     Error: Cannot verify lock on path '/trunk/needs-lock.py'; no matching
lock-token available

The important point is to commit the deletion of a locked file with
option --no-unlock. Until now I did not find any possiblity to re-add
the accidentally deleted file with the same name. A woraround is
to give the file a different name.

Best regards,
Helmut Namyslo

Tel.: +49 7 21 96 51- 7163
Fax: +49 7 21 96 51- 699
E-Mail: helmut.namyslo@ptv.de
Planung Transport Verkehr AG
Stumpfstrasse 1
76131 Karlsruhe

Received on Wed Nov 8 12:39:20 2006

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