255 |
255 |
256 def _status(ui, repo, kwt, *pats, **opts): |
256 def _status(ui, repo, kwt, *pats, **opts): |
257 '''Bails out if [keyword] configuration is not active. |
257 '''Bails out if [keyword] configuration is not active. |
258 Returns status of working directory.''' |
258 Returns status of working directory.''' |
259 if kwt: |
259 if kwt: |
260 files, match, anypats = cmdutil.matchpats(repo, pats, opts) |
260 matcher = cmdutil.match(repo, pats, opts) |
261 return repo.status(files=files, match=match, list_clean=True) |
261 return repo.status(files=matcher.files(), match=matcher, list_clean=True) |
262 if ui.configitems('keyword'): |
262 if ui.configitems('keyword'): |
263 raise util.Abort(_('[keyword] patterns cannot match')) |
263 raise util.Abort(_('[keyword] patterns cannot match')) |
264 raise util.Abort(_('no [keyword] patterns configured')) |
264 raise util.Abort(_('no [keyword] patterns configured')) |
265 |
265 |
266 def _kwfwrite(ui, repo, expand, *pats, **opts): |
266 def _kwfwrite(ui, repo, expand, *pats, **opts): |