Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tortoise equivalent 'replace with latest from repository"?

I have a PC for Windows development and Linux box for Android development. Our source control is Subversion and I use TortoiseSVN on Windows and Subclipse plug-in in Eclipse on Linux.

Sometimes I'll edit a file for some experiment but I don't want to keep the changes. In Subclipse all I have to to is "Replace with latest from Repository" to bring it back in line with the latest committed code.

What's the equivalent of this in TortoiseSVN? Is there a simple one-step way to replace my local file with the current latest in the repository?

N.B. I don't want to do an "Update" because according to the documentation that will merge in others' changes. I want a complete replacement.

Thanks in advance.

like image 710
user316117 Avatar asked Jan 16 '23 00:01

user316117


2 Answers

I don't think there's a one-step action for that.

Right-click on working copy folder TortoiseSVN -> Revert & choose the files which should have their local changes undone, and then do a TortoiseSVN -> Update.

like image 193
marapet Avatar answered Jan 30 '23 17:01

marapet


  • Use svn revert or the same command of TortoiseSVN context menu: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-revert.html and then svn update the working copy,

  • Ultimate solution: svn checkout a fresh working copy or do it though TortoiseSVN context menu.

like image 33
bahrep Avatar answered Jan 30 '23 18:01

bahrep