Mercurial > hg
diff hgext/keyword.py @ 8566:744d6322b05b
match: change all users of util.matcher to match.match
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 24 May 2009 02:56:14 -0500 |
parents | 223000a687b0 |
children | fea40a677d43 |
line wrap: on
line diff
--- a/hgext/keyword.py Sat May 23 17:04:41 2009 +0200 +++ b/hgext/keyword.py Sun May 24 02:56:14 2009 -0500 @@ -81,7 +81,7 @@ ''' from mercurial import commands, cmdutil, dispatch, filelog, revlog, extensions -from mercurial import patch, localrepo, templater, templatefilters, util +from mercurial import patch, localrepo, templater, templatefilters, util, match from mercurial.hgweb import webcommands from mercurial.lock import release from mercurial.node import nullid, hex @@ -125,8 +125,8 @@ def __init__(self, ui, repo): self.ui = ui self.repo = repo - self.matcher = util.matcher(repo.root, - inc=kwtools['inc'], exc=kwtools['exc'])[1] + self.matcher = match.match(repo.root, '', [], + kwtools['inc'], kwtools['exc'], 'glob') self.restrict = kwtools['hgcmd'] in restricted.split() kwmaps = self.ui.configitems('keywordmaps')