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

renaming an added (but not committed) file

From: A.T.Hofkamp <a.t.hofkamp_at_tue.nl>
Date: 2005-08-08 14:00:18 CEST

Hello,

I am using svn 1.2.0 with a small test project, to see whether it works as
nice as everybody says, and found some issues I'd like to bring forward.

I seem to be unable to move (rename) an added (but not committed) file.

The following script reproduces the problem:
------------------------
#!/bin/sh
#
set -x -u

CURDIR=`pwd`
echo "Current dir=${CURDIR}"

# create a svn repository
svnadmin create --fs-type fsfs ${CURDIR}/repository

mkdir myrepo
mkdir myrepo/project
svn import --message imported myrepo file://${CURDIR}/repository

svn checkout file://${CURDIR}/repository/project wc
cd wc

# make file x, add
echo "data" > x
svn add x

# svn mv x y
svn mv x y

# try again: svn mv x y with --force
svn mv --force x y
------------------------
After creating a fresh repository with a 'project' directory, I check out a
working copy, and add file 'x'. Then, before committing, I change my mind
about the name of the file, and try "svn mv x y", which fails with the
following errors:

+ svn mv x y
svn: Use --force to override this restriction
svn: Move will not be attempted unless forced
svn: 'x' has local modifications

+ svn mv --force x y
svn: Cannot copy or move 'x': it's not in the repository yet; try committing first

Is this a known problem?

Albert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 8 14:02:22 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.