hgext/keyword.py
changeset 14671 35c2cc322ba8
parent 14566 d0c2cc11e611
child 14835 ec4d4114e7fe
child 15070 e4c65158b5e7
equal deleted inserted replaced
14670:19197fa4c41c 14671:35c2cc322ba8
   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