hgext/fix.py
changeset 40293 c303d65d2e34
parent 39836 f1d6021453c2
child 40431 8ebb05f747e5
equal deleted inserted replaced
40292:9c6473d2038b 40293:c303d65d2e34
   107 revopt = ('r', 'rev', [], _('revisions to fix'), _('REV'))
   107 revopt = ('r', 'rev', [], _('revisions to fix'), _('REV'))
   108 wdiropt = ('w', 'working-dir', False, _('fix the working directory'))
   108 wdiropt = ('w', 'working-dir', False, _('fix the working directory'))
   109 wholeopt = ('', 'whole', False, _('always fix every line of a file'))
   109 wholeopt = ('', 'whole', False, _('always fix every line of a file'))
   110 usage = _('[OPTION]... [FILE]...')
   110 usage = _('[OPTION]... [FILE]...')
   111 
   111 
   112 @command('fix', [allopt, baseopt, revopt, wdiropt, wholeopt], usage)
   112 @command('fix', [allopt, baseopt, revopt, wdiropt, wholeopt], usage,
       
   113         helpcategory=command.CATEGORY_FILE_CONTENTS)
   113 def fix(ui, repo, *pats, **opts):
   114 def fix(ui, repo, *pats, **opts):
   114     """rewrite file content in changesets or working directory
   115     """rewrite file content in changesets or working directory
   115 
   116 
   116     Runs any configured tools to fix the content of files. Only affects files
   117     Runs any configured tools to fix the content of files. Only affects files
   117     with changes, unless file arguments are provided. Only affects changed lines
   118     with changes, unless file arguments are provided. Only affects changed lines