hgkw/keyword.py
branch0.9.2compat
changeset 594 748c766e6424
parent 589 3cad5778d217
child 598 2b1565ab7db3
equal deleted inserted replaced
589:3cad5778d217 594:748c766e6424
   534     '''
   534     '''
   535     # 3rd argument sets expansion to True
   535     # 3rd argument sets expansion to True
   536     _kwfwrite(ui, repo, True, *pats, **opts)
   536     _kwfwrite(ui, repo, True, *pats, **opts)
   537 
   537 
   538 def files(ui, repo, *pats, **opts):
   538 def files(ui, repo, *pats, **opts):
   539     '''print files currently configured for keyword expansion
   539     '''print filenames configured for keyword expansion
   540 
   540 
   541     Crosscheck which files in working directory are potential targets
   541     Check which filenames in the working directory are matched by the
   542     for keyword expansion. That is, files matched by [keyword] config
   542     [keyword] configuration patterns.
   543     patterns but not symlinks.
   543 
       
   544     Useful to prevent inadvertent keyword expansion and to speed up
       
   545     execution by including only filenames that are actual candidates
       
   546     for expansion.
       
   547 
       
   548     Use -u/--untracked to display untracked filenames as well.
   544     '''
   549     '''
   545     kwt = kwtools['templater']
   550     kwt = kwtools['templater']
   546     status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
   551     status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
   547     modified, added, removed, deleted, unknown, ignored, clean = status
   552     modified, added, removed, deleted, unknown, ignored, clean = status
   548     try:
   553     try: