Emacs VC Mode and Mercurial

Emacs VC mode is a GNU Emacs facility for performing version-control actions from within Emacs. It aims to support all open-source VCSes with a single, common set of keystroke commands. It was originally written in the early 1990s for file-oriented version-control systems like SCCS and RCS, and was unable to treat operations on multiple-file changesets as single operations in the way that Mercurial and other modern version-control systems require. This changed in mid-2007; a complete rewrite of the mode is now in Emacs CVS and will ship with the next release (23) of Emacs. New VC includes full support for Mercurial.

Here is a summary of the most important VC-mode commands intended to convey the style of the VC interface. More commands and more details can be found in the Emacs documentation.

The mode line of a file under Mercurial's control will display Hg: followed by the local revision number of the revision you are viewing.

New VC does not yet provide shortcuts within Emacs for push or pull operations. It may by the time Emacs 23 ships.