Mercurial > public > mercurial-scm > hg
diff hgext/keyword.py @ 6582:5acbdd3941c4
walk: remove remaining users of cmdutils.matchpats
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | 4b2c266bf059 |
children | a57a27b12965 |
line wrap: on
line diff
--- a/hgext/keyword.py Mon May 12 11:37:07 2008 -0500 +++ b/hgext/keyword.py Mon May 12 11:37:07 2008 -0500 @@ -255,8 +255,8 @@ '''Bails out if [keyword] configuration is not active. Returns status of working directory.''' if kwt: - files, match, anypats = cmdutil.matchpats(repo, pats, opts) - return repo.status(files=files, match=match, list_clean=True) + matcher = cmdutil.match(repo, pats, opts) + return repo.status(files=matcher.files(), match=matcher, list_clean=True) if ui.configitems('keyword'): raise util.Abort(_('[keyword] patterns cannot match')) raise util.Abort(_('no [keyword] patterns configured'))