hgkw/keyword.py
changeset 941 c5c61ae378de
parent 940 4bd06014631e
child 949 dd81191ffac3
equal deleted inserted replaced
939:80fc9699c7eb 941:c5c61ae378de
   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