Differences between revisions 12 and 13
Revision 12 as of 2009-05-19 19:31:04
Size: 815
Editor: localhost
Comment: converted to 1.6 markup
Revision 13 as of 2009-08-10 08:00:18
Size: 925
Editor: TillPlewe
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
Configure your .hgrc to enable the extension by adding following lines: Configure your .hgrc to enable the extension by adding the following lines:
Line 20: Line 20:
[alias]
# short log
llog = log --limit 10
}}}

Starting with version 1.3 it suffices to add:

{{{

Alias Extension

This extension is currently being distributed along with Mercurial.

Author: Brendan Cully

1. Overview

Just enable the extension, then define your own command aliases in your hgrc. For example, the configuration below gives you a new llog command.

2. Configuration

Configure your .hgrc to enable the extension by adding the following lines:

[extensions]
alias =

[alias]
# short log
llog = log --limit 10

Starting with version 1.3 it suffices to add:

[alias]
# short log
llog = log --limit 10

3. Future Work

  • Support for global options like --config in extension definitions
  • Shell aliases
  • Argument substitution
    mq = hg -R $(hg root)/.hg/patches $*
  • Pipes
    hgrep = hg manifest | grep $*
  • Recursive alias definitions:
    foo = bar
    bar = log


CategoryExtension

AliasExtension (last edited 2013-08-08 00:05:19 by rcl)