# SublimeHg

Issue commands to Mercurial from Sublime Text.

## Requirements

• Mercurial command server (Mercurial 1.9 or above)

## Configuration

These options can be set in Preferences | Settings - User.

packages.sublime_hg.hg_exe

By default, the executable name for Mercurial is hg. If you need to use a different one, such as hg.bat, change this option.

Example:

{
"packages.sublime_hg.hg_exe": "hg.bat"
}


packages.sublime_hg.terminal

Determines the terminal emulator to be used in Linux. Some commands, such as serve, need this information to work.

packages.sublime_hg.extensions

A list of Mercurial extension names. Commands belonging to these extensions will show up in the SublimeHg quick panel along with built-in Mercurial commands.

## How to Use

SublimeHg can be used in two ways:

• Through a command-line interface (show_sublime_hg_cli command).

Regardless of the method used, 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.

By default, you have to follow these steps to use SublimeHg:

1. Open the Command Palette (Ctrl+Shift+P) and look for SublimeHg.
2. Select option
3. Select Mercurial command (or type in command line)

It is however recommended to assign show_sublime_hg_cli and show_sublime_hg_menu their own key bindings.

For example:

{ "keys": ["ctrl+k", "ctrl+k"], "command": "show_sublime_hg_menu" },
{ "keys": ["ctrl+shift+k"], "command": "show_sublime_hg_cli" },


## Restarting the Current Server

The Mercurial command server will not detect changes to the repository made from the outside (perhaps from a command line) while it is running. To restart the current server so that external changes are picked up, select Kill Current Server from the command palette.

## Tab Completion

While in the command-line, top level commands will be autocompleted when you press Tab.

## Quick Actions

In some situations, you can perform quick actions.

### Log

In a log report (text.mercurial-log), select two commit numbers (keyword.other.changeset-ref.short.mercurial-log) and press CTRL+ENTER to diff the two revisions (diff -rSMALLER_REV_NR:LARGER_REV_NR).

If you want to update to a revision number, select a commit number and press CTRL+SHIFT+ENTER (update REV_NR).

## Donations

You can tip me through www.gittip.com: guillermooo.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.4439360201358795, "perplexity": 15506.805804044743}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-07/segments/1454701154682.35/warc/CC-MAIN-20160205193914-00174-ip-10-236-182-209.ec2.internal.warc.gz"}