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

Re: ShowLog dialog and revert

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Sun, 27 Jul 2008 00:21:55 +0100

2008/7/26 Larry Marshall <lcm_at_marshap.com>:
> I am a new user of TSVN, using it with VS 2008 on an XP SP3 system. I had
> made some changes to a single file. I needed to revert this file back about
> 4 revisions. I went into the Show Log dialog and unfortunately selected
> "Revert to this revision". To my horror, it reverted the entire repo to the
> selected revision. Evidently I should have selected "Revert changes from
> this revision".

No, I think you were right the first time, but you should show the log
for just the file you want to revert.

You need to distinguish between the working copy and the repository.
The command you ran just changed your working copy. To undo that
change you could have used 'revert' (yes I know that sounds contrary)
to get it back to the state it was in on the last update.

Nothing changes in the repository until you 'commit' your local changes.

> My corrective approach was to shut down svnserve and restore the previous
> night's backup. But there must be a more effective way to recover from this
> poor choice of "reverts". Can anyone point me in that direction?

First of all, DON'T PANIC. This is a revision control system. Nothing
is lost forever.

Even if you did commit the change, you can undo it - this is a version
control system after all. Again, show log for the same directory as
you did before, select the last erroneous commit and 'revert changes
from this revision'. That wil put your working copy back to the way it
was, and you can then re-commit.

Simon

-- 
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-07-27 01:22:05 CEST

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.