357 ''' |
357 ''' |
358 # 3rd argument sets expansion to True |
358 # 3rd argument sets expansion to True |
359 _kwfwrite(ui, repo, True, *pats, **opts) |
359 _kwfwrite(ui, repo, True, *pats, **opts) |
360 |
360 |
361 def files(ui, repo, *pats, **opts): |
361 def files(ui, repo, *pats, **opts): |
362 '''print filenames configured for keyword expansion |
362 '''show files configured for keyword expansion |
363 |
363 |
364 Check which filenames in the working directory are matched by the |
364 List which files in the working directory are matched by the |
365 [keyword] configuration patterns. |
365 [keyword] configuration patterns. |
366 |
366 |
367 Useful to prevent inadvertent keyword expansion and to speed up |
367 Useful to prevent inadvertent keyword expansion and to speed up |
368 execution by including only filenames that are actual candidates |
368 execution by including only files that are actual candidates |
369 for expansion. |
369 for expansion. |
370 |
370 |
371 Use -u/--untracked to display untracked filenames as well. |
371 See "hg help keyword" on how to construct patterns both for |
|
372 inclusion and exclusion of files. |
|
373 |
|
374 Use -u/--untracked to list untracked files as well. |
372 |
375 |
373 With -a/--all and -v/--verbose the codes used to show the status |
376 With -a/--all and -v/--verbose the codes used to show the status |
374 of files are: |
377 of files are: |
375 K = keyword expansion candidate |
378 K = keyword expansion candidate |
376 k = keyword expansion candidate (untracked) |
379 k = keyword expansion candidate (untracked) |