When reverting files that have been modified locally, is there a way to exclude files? Due to circumstances beyond my control, my current workflow is to:
- Create a diff of files I want to include
- svn status to get a list of modifications
- svn revert, copypasting the files that were included in the diff
- rm’ing leftovers – i.e. added files not under version control
What I’m after would look something like
svn revert -R --exclude file1 --exclude file2 /my/path
Using changelists.
Tag all files as
to_revert:$ svn changelist to_revert -R /my/pathUntag some files:
$ svn changelist --remove file1 file2Revert only tagged files:
$ svn revert --changelist to_revert -R /my/path