CheckFielsExtension
This extension installs a commit hook to prevent tabs and trailing whitespaces locally. It also provides a command to check the working directory files and optionally to fix problems found.
Contents
1. Status
This extension is/is not distributed with Mercurial.
Author: Marcus Lindblom
Download site: https://bitbucket.org/marcusl/ml-hgext/src/tip/checkfiles.py
2. Overview
3. Configuration
Configure your .hgrc to enable the extension by adding following lines:
[extensions] checkfiles = /path/to/checkfiles.py [checkfiles] checked_exts = .c .h .cpp .xml .cs .html .js .css .txt .py .nsi .java .aspx .asp .bat .cmd .glsl ignored_files = foo/contains_tabs.txt bar/contains_trailing_ws.txt tab_size = 4