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

BUG in svn switch with A+ files

From: Mycroft Holmes <psion.s5_at_gmail.com>
Date: 2007-01-31 11:41:56 CET

Hi, this message got ignored in users mailing list, but I'm
definitely convinced it's a bug.
Here are the detailed steps to reproduce:

1) create an empty repo with 2 folders TRUNK and RELEASE.
2) put some files in TRUNK (e.g. a.txt b.txt c.txt)
3) svn cp TRUNK RELEASE/R1 -m ""
4) add a file in TRUNK and commit (e.g. d.txt)
5) svn co RELEASE/R1
6) merge last commit from TRUNK. obviously it succeeds and "d.txt"
gets added

at this point:

[C:\Files\r2]svn st
A + d.txt

now the bug:

7) svn cp . svn://server/repo/RELEASE/R2 -m ""
8) svn switch svn://server/repo/RELEASE/R2

this fails!

[C:\Files\r2]svn switch svn://localhost/test/release/r2
svn: Failed to add file 'd.txt': object of the same name already exists

[C:\Files\r2]svn st
! .
     S b.txt
     S c.txt
A +S d.txt
     S a.txt

at this point, svn info reports "." is release/r2

Is there a workaround?
Thanks in advance
MH

--
  The set of solutions is never empty.
  Two solutions together form a new problem.
-- Mycroft Holmes 

  • application/pkcs7-signature attachment: smime.p7s
Received on Sat Feb 3 01:15:20 2007

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