hgkw/keyword.py
changeset 284 bc19ab02c5f9
parent 283 071bfbd482b4
child 285 0aa02d36b3b1
equal deleted inserted replaced
283:071bfbd482b4 284:bc19ab02c5f9
   342 def shrink(ui, repo, *pats, **opts):
   342 def shrink(ui, repo, *pats, **opts):
   343     '''revert expanded keywords in working directory
   343     '''revert expanded keywords in working directory
   344 
   344 
   345     Run before changing/disabling active keywords
   345     Run before changing/disabling active keywords
   346     or if you experience problems with "hg import" or "hg merge".
   346     or if you experience problems with "hg import" or "hg merge".
       
   347 
       
   348     kwshrink refuses to run if given files contain local changes.
   347     '''
   349     '''
   348     # 3rd argument sets expansion to False
   350     # 3rd argument sets expansion to False
   349     _kwfwrite(ui, repo, False, *pats, **opts)
   351     _kwfwrite(ui, repo, False, *pats, **opts)
   350 
   352 
   351 def expand(ui, repo, *pats, **opts):
   353 def expand(ui, repo, *pats, **opts):
   352     '''expand keywords in working directory
   354     '''expand keywords in working directory
   353 
   355 
   354     Run after (re)enabling keyword expansion.
   356     Run after (re)enabling keyword expansion.
       
   357 
       
   358     kwexpand refuses to run if given files contain local changes.
   355     '''
   359     '''
   356     # 3rd argument sets expansion to True
   360     # 3rd argument sets expansion to True
   357     _kwfwrite(ui, repo, True, *pats, **opts)
   361     _kwfwrite(ui, repo, True, *pats, **opts)
   358 
   362 
   359 def files(ui, repo, *pats, **opts):
   363 def files(ui, repo, *pats, **opts):