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

Re: How do I update to latest after "Revert to this revision"?

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Wed, 4 Feb 2009 09:49:53 +0000

2009/2/4 Hugh Gibson <hgibson_at_cix.co.uk>:
> I'm using TortoiseSVN 1.5.7, Build 15182 - 32 Bit , 2009/01/24 22:44:13
> under Vista.
>
> I wanted to check an old version of the code to see if a bug existed, and
> used "Revert to this revision" in the log dialog to revert my working
> copy.
>
> Having done that I am having difficulty in changing back to the latest
> code. Choosing "SVN Update" from the explorer menu has no effect, saying
> that the code is at the latest revision, but it's not. Also, choosing
> "Update item to revision" or "Revert to this revision" for the latest
> revision in the log dialog have no effect.
>
> The only way to update appears to be to delete a local file that was
> changed. Then doing "SVN Update" replaces the deleted file with the
> latest revision from the server. However there are some difficulties with
> using this - some files were added by later revisions, so were therefore
> deleted when I reverted. These files are not being restored when I do
> "SVN Update".
>
> I am loathe to delete all the local working copy and start again as there
> is some data files interspersed in the file structure so simply deleting
> and starting again is not straightforward.
>
> Is there a command I am missing? (I've reviewed the Subversion book).

Yes. TortoiseSVN->Revert.

The terminology is confusing. The 'revert to this revision' that you
used in the log dialog is a different meaning of the word 'revert'.
What it actually does is to reverse merge the changes so that your
working copy is modified to look the way it did in that revision.

You now have a modified working copy; the way to get back to a
pristine copy is to 'revert' the changes you just made and go back to
the pristine BASE revision.

Maybe we should change the term used in the log dialog. 'Revert' seems
the most natural one, but it does conflict with the existing
subversion term.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=1101149
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-02-04 10:50:01 CET

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

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