{"id":18980867,"url":"https://github.com/sublimetext/sublimehg","last_synced_at":"2026-03-08T08:40:45.866Z","repository":{"id":66974258,"uuid":"2028713","full_name":"SublimeText/SublimeHg","owner":"SublimeText","description":"Use Mercurial from Sublime Text.","archived":false,"fork":false,"pushed_at":"2013-01-20T20:55:37.000Z","size":596,"stargazers_count":30,"open_issues_count":3,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T12:11:13.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SublimeText.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-11T05:58:35.000Z","updated_at":"2024-04-03T17:38:55.000Z","dependencies_parsed_at":"2023-02-20T15:45:45.974Z","dependency_job_id":null,"html_url":"https://github.com/SublimeText/SublimeHg","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FSublimeHg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FSublimeHg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FSublimeHg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeText%2FSublimeHg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SublimeText","download_url":"https://codeload.github.com/SublimeText/SublimeHg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249239351,"owners_count":21235852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T16:07:57.662Z","updated_at":"2026-03-08T08:40:45.820Z","avatar_url":"https://github.com/SublimeText.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\r\nSublimeHg\r\n=========\r\n\r\nIssue commands to Mercurial from Sublime Text.\r\n\r\n\r\nRequirements\r\n============\r\n\r\n* Mercurial command server (Mercurial 1.9 or above)\r\n\r\n\r\nGetting Started\r\n===============\r\n\r\n- `Download`_ and install SublimeHg. (See the `installation instructions`_ for *.sublime-package* files.)\r\n\r\n.. _Download: https://bitbucket.org/guillermooo/sublimehg/downloads/SublimeHg.sublime-package\r\n.. _installation instructions: http://docs.sublimetext.info/en/latest/extensibility/packages.html#installation-of-sublime-package-files\r\n\r\n\r\nConfiguration\r\n=============\r\n\r\nThese options can be set in **Preferences | Settings - User**.\r\n\r\n``packages.sublime_hg.hg_exe``\r\n\r\n\tBy default, the executable name for Mercurial is ``hg``. If you need to\r\n\tuse a different one, such as ``hg.bat``, change this option.\r\n\r\n\tExample::\r\n\r\n\t   {\r\n\t      \"packages.sublime_hg.hg_exe\": \"hg.bat\"\r\n\t   }\r\n\r\n``packages.sublime_hg.terminal``\r\n\r\n\tDetermines the terminal emulator to be used in Linux. Some commands, such\r\n\tas *serve*, need this information to work.\r\n\r\n``packages.sublime_hg.extensions``\r\n\r\n\tA list of Mercurial extension names. Commands belonging to these extensions\r\n\twill show up in the SublimeHg quick panel along with built-in Mercurial\r\n\tcommands.\r\n\r\n\r\nHow to Use\r\n==========\r\n\r\nSublimeHg can be used in two ways:\r\n\r\n- Through a *menu* (``show_sublime_hg_menu`` command).\r\n- Through a *command-line* interface (``show_sublime_hg_cli`` command).\r\n\r\nRegardless of the method used, SublimeHg ultimately talks to the Mercurial\r\ncommand server. The command-line interface is the more flexible option, but\r\nsome operations might be quicker through the menu.\r\n\r\nBy default, you have to follow these steps to use SublimeHg:\r\n\r\n#. Open the Command Palette (``Ctrl+Shift+P``) and look for ``SublimeHg``.\r\n#. Select option\r\n#. Select Mercurial command (or type in command line)\r\n\r\nIt is however **recommended to assign** ``show_sublime_hg_cli`` and\r\n``show_sublime_hg_menu`` their own **key bindings**.\r\n\r\nFor example::\r\n\r\n\t{ \"keys\": [\"ctrl+k\", \"ctrl+k\"], \"command\": \"show_sublime_hg_menu\" },\r\n\t{ \"keys\": [\"ctrl+shift+k\"], \"command\": \"show_sublime_hg_cli\" },\r\n\r\n\r\nRestarting the Current Server\r\n=============================\r\n\r\nThe Mercurial command server will not detect changes to the repository made\r\nfrom the outside (perhaps from a command line) while it is running. To restart\r\nthe current server so that external changes are picked up, select\r\n*Kill Current Server* from the command palette.\r\n\r\nTab Completion\r\n==============\r\n\r\nWhile in the command-line, top level commands will be autocompleted when you\r\npress ``Tab``.\r\n\r\n\r\nQuick Actions\r\n=============\r\n\r\nIn some situations, you can perform quick actions.\r\n\r\nLog\r\n***\r\n\r\nIn a log report (``text.mercurial-log``), select two commit numbers (``keyword.other.changeset-ref.short.mercurial-log``)\r\nand press *CTRL+ENTER* to **diff the two revisions** (``diff -rSMALLER_REV_NR:LARGER_REV_NR``).\r\n\r\nIf you want to **update to a revision number**, select a commit number and press *CTRL+SHIFT+ENTER* (``update REV_NR``).\r\n\r\n\r\nDonations\r\n=========\r\n\r\nYou can tip me through www.gittip.com: guillermooo_.\r\n\r\n.. _guillermooo: http://www.gittip.com/guillermooo/\r\n\t","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimetext%2Fsublimehg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsublimetext%2Fsublimehg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimetext%2Fsublimehg/lists"}