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

Re: Question about renames

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-11-11 15:31:57 CET

Dale Worley wrote:
> Have you actually *tried* any of these? These are areas of Subversion that
> have not gotten a lot of attention yet, and you'll get better information if
> you try out your specific cases to see how they work than if you ask people
> who haven't thought much about them.

Here's a recipe, and sample run at end.

rd /s/q repos wc-bob wc-tim
cls
svn --version
svnadmin create repos --fs-type=fsfs
svn checkout file:///repos wc-bob
cd wc-bob
md lib
echo >lib\file.txt
svn add lib
svn commit -m "Bob's first edit"
cd ..
svn checkout file:///repos wc-tim
cd wc-tim
svn mkdir libcomplex
svn move lib\file.txt libcomplex
svn commit --message "Moving files around, just for fun"
cd ..\wc-bob
echo "having made some edits, I'm willing to bet" >lib\file.txt
svn commit -m "Committing Bob's conflicting change"
svn update
svn status

$ svn --version
svn, version 1.1.0 (r11180)
    compiled Oct 4 2004, 21:11:18

[snip]

$ svnadmin create repos --fs-type=fsfs

$ svn checkout file:///repos wc-bob
Checked out revision 0.

$ cd wc-bob

$ md lib

$ echo 1>lib\file.txt

$ svn add lib
A lib
A lib\file.txt

$ svn commit -m "Bob's first edit"
Adding lib
Adding lib\file.txt
Transmitting file data .
Committed revision 1.

$ cd ..

$ svn checkout file:///repos wc-tim
A wc-tim\lib
A wc-tim\lib\file.txt
Checked out revision 1.

$ cd wc-tim

$ svn mkdir libcomplex
A libcomplex

$ svn move lib\file.txt libcomplex
A libcomplex\file.txt
D lib\file.txt

$ svn commit --message "Moving files around, just for fun"
Deleting lib\file.txt
Adding libcomplex
Adding libcomplex\file.txt

Committed revision 2.

$ cd ..\wc-bob

$ echo "having made some edits, I'm willing to bet" 1>lib\file.txt

$ svn commit -m "Committing Bob's conflicting change"
Sending lib\file.txt
svn: Commit failed (details follow):
svn: File not found: transaction '2-1', path '/lib/file.txt'

$ svn update
D lib\file.txt
A libcomplex
A libcomplex\file.txt
Updated to revision 2.

$ svn status
? lib\file.txt

So, Subversion 1.1.1 unversions the file, but leaves it as-is (no
dataloss guarantee). Use is responsible for making the right thing.

In this case, I would think there is a chance for dataloss - the user is
not informed that the file was unversionned. So, if I don't do status,
I won't know that there's something that occured in my WC.

I'll take it up on the dev@ list.

Bye !
François

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Nov 11 15:37:49 2004

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