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

moving files/dirs

From: Chuck <cmedcoff_at_hotmail.com>
Date: 2004-10-01 22:28:33 CEST

I am having difficulting in understanding how to move directorys/files. Below is a series of shell commands used to create a number of files and directorys, add them to the repository and then move them. I end up with an error but I don't understand why. Can someone help?

C:\>mkdir del
C:\>cd del
C:\del>svn mkdir svn://detsdev002/foobar/trunk -m ""
Committed revision 1.
C:\del>svn checkout svn://detsdev002/foobar .
A trunk
Checked out revision 1.
C:\del>cd trunk
C:\del\trunk>mkdir foo
C:\del\trunk>mkdir bar
C:\del\trunk>svn add foo
A foo
C:\del\trunk>svn add bar
A bar
C:\del\trunk>svn commit -m ""
Adding trunk\bar
Adding trunk\foo
Committed revision 2.
C:\del\trunk>cd foo
C:\del\trunk\foo>touch foo.txt
C:\del\trunk\foo>cd ..\bar
C:\del\trunk\bar>touch bar.txt
C:\del\trunk\bar>svn add bar.txt
A bar.txt
C:\del\trunk\bar>cd ..\foo
C:\del\trunk\foo>svn add foo.txt
A foo.txt
C:\del\trunk>svn commit -m ""
Adding trunk\bar\bar.txt
Adding trunk\foo\foo.txt
Transmitting file data ..
Committed revision 3.
C:\del\trunk>svn move bar bar2
A bar2
D bar\bar.txt
D bar
C:\del\trunk>svn move foo foo2
A foo2
D foo\foo.txt
D foo
C:\del\trunk>svn commit -m ""
Deleting trunk\bar
Adding trunk\bar2
Adding trunk\bar2\bar.txt
Deleting trunk\foo
Adding trunk\foo2
Adding trunk\foo2\foo.txt
svn: Commit failed (details follow):
svn: Out of date: '/trunk/bar' in transaction '5'

C:\del\trunk>svn status | more
D foo
D foo\foo.txt
D bar
D bar\bar.txt
A + foo2
A + bar2
Received on Sat Oct 2 02:04:51 2004

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