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

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

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

I'm looking for: I always want to check the latest code from the repository for a local directory overwriting local changes, if any

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

+6
eclipse svn
source share
2 answers

First you need to do svn revert -R <directory> .

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

+16
source share

Use this line:

 svn revert -R .;svn up 
+1
source share

All Articles