Interhg Extension

This extension is distributed with Mercurial.

Author: Ohashi Hideya

Overview

The `interhg' Mercurial extension allows you to use shortcut expressions in your changelog and summary texts that are automatically expanded into links or any other arbitrary expression, just like what InterWiki does.

Configuration

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

[extensions]
interhg =

These are some example patterns (link to bug tracking, etc.)

[interhg]
issues = s!issue(\d+)!<a href="http://bts/issue\1">issue\1</a>!
bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a..=\2">\1</a>!i
boldify = s/(^|\s)#(\d+)\b/ <b>#\2<\/b>/

Add any number of names and patterns to match

Comments

As of hg 0.9.5, there are some problems when using interhg to implant links into commit comments display:


CategoryBundledExtension

InterhgExtension (last edited 2012-02-29 15:26:49 by ScottPalmer)