Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn update <directory> -r HEAD --force Still leaves dirty copies of local files

Tags:

eclipse

svn

I want to update to the latest revision of selenium code(http://selenium.googlecode.com/svn/trunk) daily.

I just select the folder in my eclipse,right click,team and select update to HEAD.Buty , this leaves dirty copy of some directories and files..

What i am looking for is: I always want to checkout the latest code from repository to the local directory overwriting local changes,if any

NOTE: I don't have commit rights, I just want the latest code from repository overriding my local changes.

like image 371
javanoob Avatar asked Feb 13 '11 13:02

javanoob


2 Answers

You need to do a svn revert -R <directory> first.

svn update --force forces the update to overwrite unversioned files, not local changes to versioned files.

like image 54
Oliver Charlesworth Avatar answered Nov 15 '22 09:11

Oliver Charlesworth


Use this line:

svn revert -R .;svn up
like image 33
diyism Avatar answered Nov 15 '22 09:11

diyism