Issue commands to Mercurial from Sublime Text.
- Mercurial 1.9 or above (command server)
- Download and install SublimeHg. (See installation instructions for
.sublime-package
files.)
By default, the executable name for Mercurial is hg
. If you need to use a
different one, such as hg.bat
, change the variable packages.sublime_hg.hg_exe
to it in Preferences | Global Settings - User.
Example:
{ "packages.sublime_hg.hg_exe": "hg.bat" }
SublimeHg can be used in two ways:
- Through a menu:
show_sublime_hg_menu
command. - Through a command-line interface:
show_sublime_hg_cli
command.
Regardless of the method used to call it, SublimeHg ultimately talks to the Mercurial command server. The command-line interface is the more flexible option, but some operations might be quicker through the menu.
Normally, you will follow these steps to use SublimeHg:
- Open the Command Palette (
Ctrl+Shift+P
) and look forSublimeHg
. - Select option
- Select Mercurial command (or type in command line)
Alternatively, you can assign show_sublime_hg_cli
and show_sublime_hg_menu
their own key bindings.
While in the command-line, top level commands will be autocompleted when you
press Tab
.