equal
deleted
inserted
replaced
324 |
324 |
325 def _status(ui, repo, kwt, *pats, **opts): |
325 def _status(ui, repo, kwt, *pats, **opts): |
326 '''Bails out if [keyword] configuration is not active. |
326 '''Bails out if [keyword] configuration is not active. |
327 Returns status of working directory.''' |
327 Returns status of working directory.''' |
328 if kwt: |
328 if kwt: |
329 return repo.status(match=cmdutil.match(repo, pats, opts), clean=True, |
329 return repo.status(match=scmutil.match(repo, pats, opts), clean=True, |
330 unknown=opts.get('unknown') or opts.get('all')) |
330 unknown=opts.get('unknown') or opts.get('all')) |
331 if ui.configitems('keyword'): |
331 if ui.configitems('keyword'): |
332 raise util.Abort(_('[keyword] patterns cannot match')) |
332 raise util.Abort(_('[keyword] patterns cannot match')) |
333 raise util.Abort(_('no [keyword] patterns configured')) |
333 raise util.Abort(_('no [keyword] patterns configured')) |
334 |
334 |