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

[TSVN] Restoring a deleted file, improvement request

From: Nathan Kidd <nathan.kidd_at_hummingbird.com>
Date: 2005-08-08 18:12:32 CEST

Hi,

It seems to be difficult to restore a deleted file that was part of a
revision that has many other changes you don't also want reverted in
your WC.

Using the TortoiseSVN 1.2.1 (r3895) release, on Win2003.
(No nightly seems to be available now, but I scanned the commit history
since r3895 but it doesn't seem to deal with this.)

1. Show Log from your WC
2. Click on a revision with a deleted file (e.g. r123)
3. Right click *the deleted path* (e.g. /path/file.ext) and and choose
   "Revert changes from this revision"

Result:
Error: File not found: revision 123, path '/path/file.ext'

Expected result:
The file is copied from r122 to the WC.

In other words, for deleted paths TortoiseSVN should use the previous
revision number, not the current.
This also affects the "Save As..." and "Show Log" context menu items for
deleted paths.

As always, thanks for all the great work on TortoiseSVN!

Best Regards,

-Nathan

P.S. The only (GUI) workaround I could find was to use the Repo-browser,
 view the revision prior to the delete (i.e. r122), browse to the file
and "Save As" to the WC. This looses the file history. Was there a
better way? (That wouldn't involve changing other files in that
revision, in my WC.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Aug 8 18:17:23 2005

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