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