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

Having problems with "Revert to this Revision" option

From: Mark Pickersgill <mpickers_at_tpg.com.au>
Date: 2006-09-07 03:42:57 CEST
Hello,
   I'm having an issue with the "Revert to this Revision" option from the Log window in version TortoiseSVN 1.4.0, Build 7195.

I was trying to revert my working copy of a file back to a previous revision from the repository. However, when the option is selected it does update my working copy to a revision, but it's not the revision that I selected.

Steps to reproduce:
- Create a new file and add a line
- Commit the change
- Add a second line and commit the change
- Add a third line and commit the change
- Right click on the file and select "show log"
- In the log window select the second commit entry and do a "Compare with working copy"
- You will see that the third line is the difference - which is expected
- Now with the same revision in the log window, select "Revert to this Revision" (and select yes to the prompt)
- The file updates and the status changes.
- Now open the file from the explorer window
- You will see that the file only has the first line (whereas it should also have the second line)

It appears it's getting one revision before the one that is wanted.

Also, something that is VERY confusing is the difference between the Log window's "Revert to this Revision" and the Right click explorer/TSVN menu's "Update to Revision". "Update to Revision" does get the correct version (btw), but it doesn't show the working copy file as being changed (and when commiting it says that nothing has changed)...just wondering what the point of "Update to Revision" option is? It appears that it does the same job as "Switch" and selecting an earlier revision # of the file???

The "Switch" command I can understand, but the name "Update to Revision" is rather confusing as it implies that it updates your working copy so that you can then continue on making changes (which is what the standard "Update" function does and what the "Revert to revision" option does). Would it not be better to call "Update to Revision", "Switch to Revision"?

cheers
Mark

--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org For additional commands, e-mail: dev-help@tortoisesvn.tigris.org Received on Thu Sep 7 03:43:16 2006

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.