hgkw/keyword.py
branchstable
changeset 968 8d821e2fed38
parent 964 aaafe06aaa5f
child 973 82015736cc7e
equal deleted inserted replaced
966:e6f112b6f14b 968:8d821e2fed38
   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=scmutil.match(repo, pats, opts), clean=True,
   329         return repo.status(match=scmutil.match(repo[None], 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