MacOSX SVN

In HBuilderX, you have to install the SVN plug-in before you can use SVN.

The SVN plug-in calls the external SVN command line tool, you need to install SVN command tool.

SVN Command line tool

Open Operating System Terminal and enter the following command. If brew is not installed, please install it first Homebrew

  1. brew install subversion
  2. # check svn installed or not
  3. which svn

Install SVN Plugin

HBuilderX Top menu, [Tool]-> [plug-in installation]. Open the plug-in installation window, Find SVN, Click [Install].

MacOSX SVN - 图1

SVN menu

In the project manager, select the project and right-click the menu to see the SVN related operation menu.

MacOSX SVN - 图2

Commit

  1. On the file, directory, or project to be submitted, right-click the menu and click [SVN Commit]
  2. In the SVN window, enter the Message, and click the [SVN Commit] button.

MacOSX SVN - 图3

View Log

Select the project, right-click the menu, [SVN]->[View Log]

MacOSX SVN - 图4

Shortcut Configuration

  1. Top menu, [Tool]—>[Custom Keybindings]
  2. All SVN command configurations can be seen at the bottom of the left side of the document
  1. //svn update
  2. //{"key":"","command":"ExternalCommand:SVN_UPDATE"},
  3. //svn add file
  4. //{"key":"","command":"ExternalCommand:SVN_ADD"},
  5. //svn delte file
  6. //{"key":"","command":"ExternalCommand:SVN_REMOVE"},
  7. //svn revert
  8. //{"key":"","command":"ExternalCommand:SVN_REVERT"}

Select the required command and copy it to the right, configure your own shortcut keys

Example:

  1. [
  2. {"key":"command+alt+u","command":"ExternalCommand:SVN_UPDATE"}
  3. ]