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

Re: Update to revision... (after renaming a file)

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-07-12 17:09:01 CEST

On 12/07/07, Ralf Becker <ralf.becker@gmx.net> wrote:
> to make it short...I don't think this is a bug but more a missunderstanding
> on my side...
>
> the question is how can I update the working copy of a versioned file to an
> older revision after it has been renamed ? (e.g. revision 50 of a versioned
> file has been renamed and revision 49 is requested to be the revision within
> the working copy)
>
> I tried it with right click on the file in the working copy -->
> TSVN-->Update to revision...-->Rev=49-->OK --> the file with the new name
> (revision 50) is then deleted out of the working copy but the file with the
> old name (revision 49) is not copied from the repository into the working
> copy ! (see also attached result dialog)
>
> what am I doing wrong ?

OK, I see what you're doing now. If you update a renamed file to a
revision prior to the rename, that file did not exist so it gets
deleted. This is due to the way Subversion currently handles renames
(as a copy and delete, rather than a true rename).

As Jon says, you can update the folder to the old revision and get the
file back with its old name. The question is, why do you want to do
that? If you update to an old revision you can no longer commit
anything.

If you want to revert the file to the way it was before the rename, on
way is to use showlog on the new file. Find the rev you are interested
in, and in the bottom pane right click and 'Save as ...' You can then
choose to over write the content of the up-to-date (and renamed) copy
if you want to.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Jul 12 17:08:24 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.