How to discard local changes in an SVN checkout?

I wanted to submit a diff for review, for an Open Source Project.

I got the code using SVN (from terminal, Ubuntu). And I did minor edits in few files. Now there is only a single change I want to submit. Rest of the changes I made, were for debugging, and are no longer required.

I have generated diff using svn di > ~/os/firstdiff.diff

So my question, How to discard my local changes?

Is there a SVN way to do it? If not, I will have to go to each file and delete all my edits.
Then I would generate a new diff, and submit it.

8 Answers
8

Leave a Comment