equal
deleted
inserted
replaced
246 |
246 |
247 def _status(ui, repo, kwt, *pats, **opts): |
247 def _status(ui, repo, kwt, *pats, **opts): |
248 '''Bails out if [keyword] configuration is not active. |
248 '''Bails out if [keyword] configuration is not active. |
249 Returns status of working directory.''' |
249 Returns status of working directory.''' |
250 if kwt: |
250 if kwt: |
251 unknown = opts.get('unknown') or opts.get('untracked') |
251 unknown = (opts.get('unknown') or opts.get('all') |
|
252 or opts.get('untracked')) |
252 return repo.status(match=cmdutil.match(repo, pats, opts), clean=True, |
253 return repo.status(match=cmdutil.match(repo, pats, opts), clean=True, |
253 unknown=unknown) |
254 unknown=unknown) |
254 if ui.configitems('keyword'): |
255 if ui.configitems('keyword'): |
255 raise util.Abort(_('[keyword] patterns cannot match')) |
256 raise util.Abort(_('[keyword] patterns cannot match')) |
256 raise util.Abort(_('no [keyword] patterns configured')) |
257 raise util.Abort(_('no [keyword] patterns configured')) |