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 |