ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Mercurial

by guillermooo ST2/ST3

Full-featured Mercurial (hg) support for Sublime Text 3

Labels vcs, hg

Details

  • 2 2013.01.20.20.55.36
    3 0.9.0
  • github.​com
  • github.​com
  • 5 years ago
  • 14 minutes ago
  • 7 years ago

Installs

  • Total 11K
  • Win 4K
  • OS X 3K
  • Linux 4K
Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27
Windows 0 0 1 0 0 1 0 0 1 0 0 2 0 2 1 0 0 0 0 1 1 0 1 0 0 2 1 0 0 0 2 0 0 0 0 1 0 0 0 1 2 0 0 1 0 0
OS X 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 2 0 0 0 1 0 0 1 0 2 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 1 1 0 0 0 3 0 0 1 0 0 0 0 1 2 0 0 0 1 1 1 2 0 0 0 0 1 0 1 0 0 1 0 0 0 0 2 0 1

Readme

Source
raw.​githubusercontent.​com

Click here to lend your support to: Mercurial and make a donation at www.pledgie.com !

Mercurial (Sublime Text Package)

Use Mercurial from Sublime Text 3.

Requirements

  • Mercurial command server (Mercurial 1.9 or above)

Installation

Configuration

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

packages.mercurial.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.mercurial.hg_exe": "hg.bat"
}

packages.mercurial.terminal

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

packages.mercurial.extensions

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

How to Use

Mercurial can be used in two ways:

  • Through a menu (show_mercurial_menu command).
  • Through a command-line interface (show_mercurial_cli command).

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

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

It is however recommended to assign show_mercurial_cli and show_mercurial_menu their own key bindings.

For example:

{ "keys": ["ctrl+k", "ctrl+k"], "command": "show_mercurial_menu" },
{ "keys": ["ctrl+shift+k"], "command": "show_mercurial_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.

In Log Reports

To diff two revisions, select two revision numbers and press Ctrl+Enter.

To update to a revision number, select a revision number and press Ctrl+Shift+Enter.

Donations

You can tip me through Gittip (guillermooo) or Pledgie (see top).