Differences between revisions 1 and 2
Revision 1 as of 2013-04-16 22:10:29
Size: 2019
Editor: mpm
Comment:
Revision 2 as of 2013-04-16 22:25:40
Size: 2469
Editor: mpm
Comment:
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
 * [[Hooks]] - execute code for specific Mercurial events or commands
Line 59: Line 60:
 * [[Cmd:debugstate]] - dump raw dirstate contents
Line 60: Line 62:
== Interesting reading ==

 * FileFormats - what all those files are
 * [[http://hgbook.red-bean.com/read/behind-the-scenes.html#x8-640004|Behind the scenes]] - an overview of the internal data structures
 * HandlingLargeFiles - how we deal with files of many megabytes
 * EncodingStrategy - how character encoding works

Power User Tools

Hints for would-be power users

1. Built-in features

  • revsets - our powerful revision query language

  • filesets - our similarly powerful file query language

  • templating - the templater used by log and hgweb

  • Aliases - built-in command substitution

2. Under-appreciated commands

3. Automation

  • Hooks - execute code for specific Mercurial events or commands

  • HGPLAIN - environment variable to disable customizations

  • identify - useful in makefiles

  • root - useful in shell scripts

  • log --template - useful in reporting

  • status -n0 - output suitable for xargs

4. Advanced history editing

5. Niceties for customizers

6. Debugging

  • help --debug - list deprecated and debugging commands

  • showconfig --debug - dump configuration info with paths

  • debuginstall - show install information

  • --debug - run a command with full verbosity
  • --traceback - get a complete stack trace for any exception
  • --debugger - run a command with an interactive source-level debugger
  • debugindex - dump raw revlog graph data

  • debugdata - dump raw revlog revision contents data

  • debugstate - dump raw dirstate contents

7. Interesting reading


PowerUser (last edited 2014-11-03 22:16:10 by GregorySzorc)