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

"swapping" files or folders by renaming gives strange errors

From: <c.a.t.magic_at_gmx.at>
Date: 2004-02-27 17:48:44 CET


try out something like the following:

create work/file-A.txt
create work/file-B.txt
put some lines of content into the files that describe if they are A or B

svn rename file-A to file-Ax
svn rename file-B to file-A
svn rename file-Ax to file-B


fool around a bit with these files, modify A or B or both,
then try to merge or commit them with previous versions.
or swap them back and forth and so on.
or update to a previous version, modify it and try to
merge it back in... (is this allowed at all?)
i got some weird kinds of error situations where i was
unable to commit update or merge my working dir at all
and had to delete and checkout a folder again to continue.
it might be even funnier to swap a folder and a file...

this may rarely happen in real working environments,
but consider you accidentally renamed a .cpp file .h
and vice versa. then you -might- be forced to drop history
and delete and re-add your files. using svn rename to
swap them may introduce collisions.

maybe sort of svn "swap file" or "cvs rename multiple-files"
to exchange files would be fun, too.
Received on Fri Feb 27 17:46:24 2004

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

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