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

can't update after having updated a sub-part of the tree

From: jerome lacoste <jerome.lacoste_at_gmail.com>
Date: 2005-10-06 19:25:33 CEST


1- svn co tree
2- svn move many many things. svn delete some.
3- someone makes check-ins in the mean time
4- I make a svn up on an old part of the tree (from which files had
been moved out), because one file was deleted by accident and I needed
to get it back.
5- svn up on the whole tree fails to update the moved files

I have now a big restructuration that I cannot commit because of that.
I am unable to get the changes others made on the files, and hence I
don't dare committing.

svn up on the root of the tree tells me I am at the latest version but
my moved directory haven't been updated.

Anyone can suggest something?

This reproduces the issue (tested on 1.1.4 and 1.2.3):

rm -rf svnrepos test-1 test-2 test

svnadmin create svnrepos --fs-type fsfs
mkdir -p test/olddir
echo "This is my project" > test/olddir/README.txt
svn import -m "test import" test/ file://`pwd`/svnrepos/test
rm -rf test

echo "** moving README to new dir"
svn co file://`pwd`/svnrepos/test test-1
mkdir -p test-1/newdir/
svn add test-1/newdir/
svn move test-1/olddir/README.txt test-1/newdir/

echo "** updating README in the meantime"
svn co file://`pwd`/svnrepos/test test-2
echo "Added line" >> test-2/olddir/README.txt
svn commit -m "updated README" test-2

echo "** svn status test-2"
svn status -v test-2
rm -rf test-2
echo "** svn status test-1"
svn status -v test-1

echo "** svn diff"
svn diff test-1/newdir/README.txt

echo "** updating OLDDIR"
svn up test-1/olddir

echo "** svn status test-1"
svn status -v test-1

svn up test-1

echo "** svn status test-1"
svn status -v test-1

echo "** svn diff"
svn diff test-1/newdir/README.txt

echo "diff -u OLDDIR/NEWDIR"
diff -u test-1/olddir/README.txt test-1/newdir/README.txt

The problem is caused by updating olddir. Now the newdir doesn't
contain the changes.

So it's probably my mistake, but I wonder if there's a way for me to
get all these changes. Or do I have to start from scratch all my
layout/code changes? :(



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 6 19:27:48 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.