Resurrecting Deleted Items with svn cp

Pascal MALAISE malaise at magic.fr
Sat Nov 24 12:38:02 CST 2007


Hi,
in my original post, commands where indeed metaphors.
Please find here after a more realistic transcript:

A: INITIAL STATUS
-----------------

malaise at telemaque:~/tmp/ParentDir/TheDir $ svn info
Path: .
URL: file:///home/malaise/SVN/tmp/trunk/ParentDir/TheDir
Repository Root: file:///home/malaise/SVN/tmp
Revision: 9
Node Kind: directory
Schedule: normal
Last Changed Author: malaise
Last Changed Rev: 9
Last Changed Date: 2007-11-12 08:03:00 +0100 (Mon, 12 Nov 2007)

malaise at telemaque:~/tmp/ParentDir/TheDir $ svn list
Thefile.txt
malaise at telemaque:~/tmp/ParentDir/TheDir $ svn log -q .
------------------------------------------------------------------------
r9 | malaise | 2007-11-12 08:03:00 +0100 (Mon, 12 Nov 2007)
------------------------------------------------------------------------
malaise at telemaque:~/tmp/ParentDir/TheDir $ svn log -q  Thefile.txt
------------------------------------------------------------------------
r11 | malaise | 2007-11-12 08:03:59 +0100 (Mon, 12 Nov 2007)
------------------------------------------------------------------------
r10 | malaise | 2007-11-12 08:03:40 +0100 (Mon, 12 Nov 2007)
------------------------------------------------------------------------
r9 | malaise | 2007-11-12 08:03:00 +0100 (Mon, 12 Nov 2007)
------------------------------------------------------------------------


B: COMMANDS IN WORKING DIR -> ERRORS
--------------------------
svn copy -r10 \
 file:///home/malaise/SVN/tmp/trunk/ParentDir/TheDir/Thefile.txt \
 ./Thefile.txt
svn: Path 'Thefile.txt' is not a directory

malaise at telemaque:~/tmp/ParentDir/TheDir $  svn copy -r10  \
 file:///home/malaise/SVN/tmp/trunk/ParentDir/TheDir/Thefile.txt \
 .
svn: Path 'Thefile.txt' already exists

malaise at telemaque:~/tmp/ParentDir/TheDir $ rm Thefile.txt
malaise at telemaque:~/tmp/ParentDir/TheDir $  svn copy -r10 \
 file:///home/malaise/SVN/tmp/trunk/ParentDir/TheDir/Thefile.txt \
 .
svn: Entry for 'Thefile.txt' exists (though the working file is missing)


C: COMMANDS IN PARENT DIR -> OK, BUT NOT WHAT IS DESCRIBED IN THE BOOK
-------------------------
malaise at telemaque:~/tmp/ParentDir/TheDir $ cd ..
malaise at telemaque:~/tmp/ParentDir $  svn copy -r10 \
 file:///home/malaise/SVN/tmp/trunk/ParentDir/TheDir/Thefile.txt \
 .
A         Thefile.txt

malaise at telemaque:~/tmp/ParentDir $ cp Thefile.txt TheDir
malaise at telemaque:~/tmp/ParentDir $ svn revert Thefile.txt
Reverted 'Thefile.txt'

malaise at telemaque:~/tmp/ParentDir $ cd TheDir
malaise at telemaque:~/tmp/ParentDir/TheDir $ svn status
M      Thefile.txt


Regards




More information about the svnbook-dev mailing list