Fix – svn: error: The subversion command line tools are no longer provided by Xcode.

Recently I got the following error on my Mac Terminal when I tried svn command.

svn: error: The subversion command line tools are no longer provided by Xcode.

 

To fix this, run following commands:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

 

Wait for the software to be installed. And you are done.

Ref.:https://stackoverflow.com/questions/60869347/mac-command-line-tools-11-4-no-longer-has-svn

 

Apply svn patch and then undo the same patch via command line

Apply svn patch

patch -p0 -i path_of_patch_file.patch

Example: patch -p0 -i /Users/blah/Downloads/7526.2.patch

 

Undo svn patch

svn patch --reverse-diff path_of_patch_file.patch

Example: svn patch --reverse-diff /Users/blah/Downloads/7526.2.patch