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

Problem with svn move using Subversion 1.2.0

From: Peter D. Stout <pds_at_edgedynamics.com>
Date: 2005-08-03 20:07:58 CEST

I have encountered a problem with 'svn move' when the directory being
moved contains a sub-directory with the same name, for example,

    svn mv bsh src

fails with Subversion 1.2 on Cygwin if bsh contains a directory named
bsh. The same operation works correctly using Subversion 1.1.4 on
Cygwin or RedHat 9. I unfortunately do not have a RedHat 9 machine with
Subversion 1.2 installed, so I do not know whether the bug is specific
to the Cygwin port or generic.

I have attached a FSFS repository that can be used to demonstrate the
problem and a log file of the steps I took to create the repository.

                                        -Peter

pds@whangarei$ svnadmin create /usr/local/svn
pds@whangarei$ ls /usr/local/svn
README.txt conf dav db format hooks locks
pds_at_whangarei$ svn mkdir -m "Create trunk." file:///usr/local/svn/trunk

Committed revision 1.
pds_at_whangarei$ svn mkdir -m "Create trunk." file:///usr/local/svn/trunk/bsh
pds@whangarei$ cd test
pds_at_whangarei$ svn co file:///usr/local/svn/trunk
Checked out revision 1.
pds@whangarei$ ls
trunk
pds@whangarei$ cd trunk/
pds@whangarei$ svn mkdir bsh
A bsh
pds@whangarei$ svn mkdir bsh/bsh
A bsh/bsh
pds@whangarei$ touch bsh/a-file
pds@whangarei$ touch bsh/bsh/another-file
pds@whangarei$ svn add bsh/a-file bsh/bsh/another-file
A bsh/a-file
A bsh/bsh/another-file
pds@whangarei$ svnst
A bsh
A bsh/a-file
A bsh/bsh
A bsh/bsh/another-file
pds@whangarei$ svn commit -m "Create test source tree."
Adding bsh
Adding bsh/a-file
Adding bsh/bsh
Adding bsh/bsh/another-file
Transmitting file data ..
Committed revision 2.
pds@whangarei$ svn mkdir -m "Create src directory."
file:///usr/local/svn/trunk/src

Committed revision 3.
pds@whangarei$ ls
bsh
pds@whangarei$ svn up
A src
Updated to revision 3.
pds@whangarei$ ls
bsh src
pds@whangarei$ svn mv bsh src
svn: Working copy 'src/bsh/bsh' is missing or not locked
pds@whangarei$ ls
bsh src
pds@whangarei$

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Wed Aug 3 20:10:05 2005

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.