hgkw/keyword.py
changeset 873 05e160f8f8bc
parent 871 c2651cd808b7
child 874 272a8a316f7a
equal deleted inserted replaced
871:c2651cd808b7 873:05e160f8f8bc
    68 
    68 
    69 The default template mappings (view with :hg:`kwdemo -d`) can be
    69 The default template mappings (view with :hg:`kwdemo -d`) can be
    70 replaced with customized keywords and templates. Again, run
    70 replaced with customized keywords and templates. Again, run
    71 :hg:`kwdemo` to control the results of your configuration changes.
    71 :hg:`kwdemo` to control the results of your configuration changes.
    72 
    72 
    73 Before changing/disabling active keywords, run :hg:`kwshrink` to avoid
    73 Before changing/disabling active keywords, you must run :hg:`kwshrink`
    74 the risk of inadvertently storing expanded keywords in the change
    74 to avoid storing expanded keywords in the change history.
    75 history.
       
    76 
    75 
    77 To force expansion after enabling it, or a configuration change, run
    76 To force expansion after enabling it, or a configuration change, run
    78 :hg:`kwexpand`.
    77 :hg:`kwexpand`.
    79 
    78 
    80 Expansions spanning more than one line and incremental expansions,
    79 Expansions spanning more than one line and incremental expansions,
   463             ui.write(fmt % repo.pathto(f, cwd), label='kwfiles.' + kwstate)
   462             ui.write(fmt % repo.pathto(f, cwd), label='kwfiles.' + kwstate)
   464 
   463 
   465 def shrink(ui, repo, *pats, **opts):
   464 def shrink(ui, repo, *pats, **opts):
   466     '''revert expanded keywords in the working directory
   465     '''revert expanded keywords in the working directory
   467 
   466 
   468     Run before changing/disabling active keywords or if you experience
   467     Must be run before changing/disabling active keywords.
   469     problems with :hg:`import` or :hg:`merge`.
       
   470 
   468 
   471     kwshrink refuses to run if given files contain local changes.
   469     kwshrink refuses to run if given files contain local changes.
   472     '''
   470     '''
   473     # 3rd argument sets expansion to False
   471     # 3rd argument sets expansion to False
   474     _kwfwrite(ui, repo, False, *pats, **opts)
   472     _kwfwrite(ui, repo, False, *pats, **opts)