Mercurial > hg-stable
diff mercurial/cmdutil.py @ 5976:9f1e6ab76069
templates: move filters to their own module
This eliminates just about all Mercurial dependencies in templater.py
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 31 Jan 2008 14:44:19 -0600 |
parents | d0576d065993 |
children | 5ffa962783c4 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Jan 31 14:44:19 2008 -0600 +++ b/mercurial/cmdutil.py Thu Jan 31 14:44:19 2008 -0600 @@ -8,7 +8,7 @@ from node import * from i18n import _ import os, sys, bisect, stat -import mdiff, bdiff, util, templater, patch, errno +import mdiff, bdiff, util, templater, templatefilters, patch, errno revrangesep = ':' @@ -673,7 +673,7 @@ def __init__(self, ui, repo, patch, mapfile, buffered): changeset_printer.__init__(self, ui, repo, patch, buffered) - filters = templater.common_filters.copy() + filters = templatefilters.filters.copy() filters['formatnode'] = (ui.debugflag and (lambda x: x) or (lambda x: x[:12])) self.t = templater.templater(mapfile, filters,