SVN for Sublime Text

Support

SVN for Sublime Text is tested on all three platforms supported by Sublime Text. If something isn't working right, please create a request. If you believe you have found a bug, please consider generating a debug log to submit.

Also see the Sales FAQ, which includes information for individuals, businesses and resellers.

Generating a Debug Log

To turn on debugging and log commands to a file, perform the following steps:

  1. Open Preferences Package Settings SVN Settings – Default
  2. Copy the debug and debug_log_file settings to the Settings – User file.
  3. Set debug to 2 and choose where to save the debug_log_file
  4. Perform the operations that expose the bug
  5. Submit the debug log by creating a request with a description of the problem you are having

Subversion Upgrade

When using SVN, you may run into an error message such as:

The Subversion command line client detected on your machine, "/usr/bin/svn", is too old to work with the working copy located at "/Users/username/path/to/working_copy". You are using version 1.7.10, while the working copy was created with Subversion 1.8.0 or newer.

This error is common on OS X, but may occur on Linux also. It indicates that the Subversion working copy you are interacting with was created by a newer version of Subversion that the command line program found on your machine.

To resolve this issue on OS X, please visit http://www.wandisco.com/subversion/download#osx and download the latest version of the Vanilla Subversion command line client for your version of OS X. Once installed, restart Sublime Text and you should be all set.

To resolve this issue on Linux, please use your package manager (e.g. apt-get, yum or pacman) and upgrade Subversion. If your distribution does not have a new enough version of Subversion available, your choices include compiling Subversion from source, or doing a new, fresh checkout of your working copies with SVN.

Subversion for OS X Mountain Lion

After upgrading to OS X (10.8) Mountain Lion, many users will see an error such as:

NotFoundError: The "svn" binary could not be found on your system. Please edit "/Users/wbond/Library/Application Support/Sublime Text 2/Packages/User/SVN.sublime-settings" and set "svn_binary_path", or install Subversion.

Unfortunately it appears Apple decided to remove Subversion from the base Mountain Lion install. See the Install page for instructions to re-install it.

xcode44cltools_10_86938106a.dmg

Subversion 1.7 or Greater Working Copy

Some users on OS X will receive the following error message from the command line svn program:

svn: The path '.' appears to be part of a Subversion 1.7 or greater working copy. Please upgrade your Subversion client to use this working copy.

This happens if you have installed Subversion 1.7 on your machine, but it is not located in one of the following paths:

  • /bin
  • /usr/bin
  • /usr/local/bin
  • /opt/subversion/bin
  • /opt/local/bin

While you may have added the folder that contains the svn binary to your PATH environmental variable in bash, this setting is not loaded when executing Sublime Text.

To fix this error, please perform the following steps:

  1. Open the OS X Terminal
  2. Type the following command: whereis svn
  3. Copy the file path to the svn executable
  4. Open Sublime Text and go to Preferences > Package Settings > SVN > Settings – User
  5. If the file is empty, set the contents to {"svn_binary_path": "/path/you/copied"}
  6. If the file is not empty, add the following before the closing }: , "svn_binary_path": "/path/you/copied"
  7. Restart Sublime Text