Differences between revisions 10 and 11
Revision 10 as of 2007-10-25 13:56:58
Size: 513
Comment:
Revision 11 as of 2009-05-19 06:48:12
Size: 815
Editor: BrendanCully
Comment: alias TODO
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
=== 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
}}}

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 following lines:

[extensions]
alias =

[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)