サンプルソース発見。

/sandbox/mercurial-plugin-0.11/tracext/hg/backend.py - The Trac Project - Trac
http://trac.edgewall.org/browser/sandbox/mercurial-plugin-0.11/tracext/hg/backend.py