HG Style Template

2011 January 11
by r.claypool

The hg red-bean guide has examples to customize the output of Mecurial. It’s easy to create your own.

Here’s one of mine …

# This template prints the files included in each changeset.
changeset = "{node|short}: {desc}\n{files}\n"
file = "  {file}\n"

Which formats the output like this …

e9f2c463e105: increment version for push
  setup.py
 
98c2272ab7ff: apparently sdist was broken.
repair MANIFEST to include ez_setup properly
  MANIFEST
  MANIFEST.in
  setup.py
One Response leave one →
  1. 2011 May 2

    By the way, the template should be saved in %ProgramFiles(x86)%\TortoiseHg\templates for 64 bit systems or %ProgramFiles%\TortoiseHg\templates for 32 bit systems.

    That’s assuming you use Tortoise on Windows. I have not tested other operating systems.

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

This work by Robert Claypool is licensed under a Creative Commons Attribution 3.0 United States.