comparison mercurial/commands.py @ 3192:096f1c73cdc3

Add -D/--nodates options to hg diff/export that removes dates from diff headers and replace uses of sed in the tests with --nodates.
author Stephen Darnell <stephen@darnell.plus.com>
date Tue, 26 Sep 2006 00:05:24 +0100
parents a32f65549b9e
children 367a009c2acb
comparison
equal deleted inserted replaced
3191:a32f65549b9e 3192:096f1c73cdc3
2850 [('r', 'rev', [], _('revision')), 2850 [('r', 'rev', [], _('revision')),
2851 ('a', 'text', None, _('treat all files as text')), 2851 ('a', 'text', None, _('treat all files as text')),
2852 ('p', 'show-function', None, 2852 ('p', 'show-function', None,
2853 _('show which function each change is in')), 2853 _('show which function each change is in')),
2854 ('g', 'git', None, _('use git extended diff format')), 2854 ('g', 'git', None, _('use git extended diff format')),
2855 ('D', 'nodates', None, _("don't include dates in diff headers")),
2855 ('w', 'ignore-all-space', None, 2856 ('w', 'ignore-all-space', None,
2856 _('ignore white space when comparing lines')), 2857 _('ignore white space when comparing lines')),
2857 ('b', 'ignore-space-change', None, 2858 ('b', 'ignore-space-change', None,
2858 _('ignore changes in the amount of white space')), 2859 _('ignore changes in the amount of white space')),
2859 ('B', 'ignore-blank-lines', None, 2860 ('B', 'ignore-blank-lines', None,
2863 "^export": 2864 "^export":
2864 (export, 2865 (export,
2865 [('o', 'output', '', _('print output to file with formatted name')), 2866 [('o', 'output', '', _('print output to file with formatted name')),
2866 ('a', 'text', None, _('treat all files as text')), 2867 ('a', 'text', None, _('treat all files as text')),
2867 ('g', 'git', None, _('use git extended diff format')), 2868 ('g', 'git', None, _('use git extended diff format')),
2869 ('D', 'nodates', None, _("don't include dates in diff headers")),
2868 ('', 'switch-parent', None, _('diff against the second parent'))], 2870 ('', 'switch-parent', None, _('diff against the second parent'))],
2869 _('hg export [-a] [-o OUTFILESPEC] REV...')), 2871 _('hg export [-a] [-o OUTFILESPEC] REV...')),
2870 "debugforget|forget": 2872 "debugforget|forget":
2871 (forget, walkopts, _('hg forget [OPTION]... FILE...')), 2873 (forget, walkopts, _('hg forget [OPTION]... FILE...')),
2872 "grep": 2874 "grep":