hgkw/keyword.py
branchstable
changeset 940 4bd06014631e
parent 938 9e55adfb3a21
child 949 dd81191ffac3
equal deleted inserted replaced
938:9e55adfb3a21 940:4bd06014631e
   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