Overview

Sublime Text plugin for Mercurial (hg) the VCS.

A fork of "hg4subl", which is pretty cool but lacks some features.

What's supported?

  • Sublime Text 2 (Without further development, but still last running version is available.)
  • Sublime Text 3
  • Modific by gornostal

I could not test the newest Version on Windows 32Bit and 64Bit. If you have any issues please send me a bug report containing the error. Same for Linux. Thanks for your help.

Mercurial

  • Open user hgrc (tested with Mac OS X)
    Will open ~/.hgrc if any.
  • Open user hgignore (tested with Mac OS X)
    Will open ~/.hgignore if any.

Repository

  • Open local hgrc
    Will open the .hg/hgrc if any.
  • Open local hgignore
    Will open the .hg/hgignore if any.

Remote

  • Pull
  • Fetch
  • Push

Local Manage

  • Update
  • Status
  • Branch
    • Change Branch
    • Create Branch
    • Close Branch
  • Diff All
  • Log All
  • Quick Commit
  • Diff current file
  • Log current file
  • Blame current file

Local Filesystem

  • Add current file
  • Choose files to add
  • Move current file
  • Remove current file
  • Choose files to remove
  • Revert current file
  • Choose files to revert
  • Revert all files

Others

  • Custom Command
  • Show Status of Branch, Revision and Tag in StatusBar
  • Configuration following convention, available through Preferences > Package Settings > Mercurial for Sublime.

Todo

  • Authorization for push and pull
  • Commit (With extra Tab for commit message)
  • For more todos take a look at JIRA

How to get involved

You can either fork and submit pull requests, send me patches or post ideas and issues.

Do so by using the [issue Tracker][].

Please take a look at JIRA before sending new ideas. If you work on an issue please use the smart commit syntax.

Installation

Unix like systems

The CLI way

cd ~/.config/sublime-text-2/Package
hg clone ssh://hg@bitbucket.org/DanielSiepmann/mercurial-for-sublime "Mercurial for Sublime"

Mac

The CLI way cd ~/Library/Application Support/Sublime Text 2/Packages hg clone ssh://hg@bitbucket.org/DanielSiepmann/mercurial-for-sublime "Mercurial for Sublime"

As a GUI for Mac you can use the nice and free SourceTree.

Windows

On Windows you can do the same way as for Unix. As a GUI for Windows you can use the free TortoiseHg or SourceTree.

Configuration

Open the delivered configuration file and copy it to your user folder.
Perhaps it's easier to open both files from Preferences > Package Settings > Mercurial for Sublime.

Each option is documented inside the delivered file.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.