Show More
@@ -2672,6 +2672,9 b' globalopts = [' | |||||
2672 | ('h', 'help', None, _('display help and exit')), |
|
2672 | ('h', 'help', None, _('display help and exit')), | |
2673 | ] |
|
2673 | ] | |
2674 |
|
2674 | |||
|
2675 | dryrunopts = [('n', 'dry-run', None, | |||
|
2676 | _('do not perform actions, just print output'))] | |||
|
2677 | ||||
2675 | walkopts = [ |
|
2678 | walkopts = [ | |
2676 | ('I', 'include', [], _('include names matching the given patterns')), |
|
2679 | ('I', 'include', [], _('include names matching the given patterns')), | |
2677 | ('X', 'exclude', [], _('exclude names matching the given patterns')), |
|
2680 | ('X', 'exclude', [], _('exclude names matching the given patterns')), | |
@@ -2680,17 +2683,14 b' walkopts = [' | |||||
2680 | table = { |
|
2683 | table = { | |
2681 | "^add": |
|
2684 | "^add": | |
2682 | (add, |
|
2685 | (add, | |
2683 |
walkopts + |
|
2686 | walkopts + dryrunopts, | |
2684 | [('n', 'dry-run', None, |
|
|||
2685 | _('do not perform actions, just print output'))], |
|
|||
2686 | _('hg add [OPTION]... [FILE]...')), |
|
2687 | _('hg add [OPTION]... [FILE]...')), | |
2687 | "addremove": |
|
2688 | "addremove": | |
2688 | (addremove, |
|
2689 | (addremove, | |
2689 |
walkopts + |
|
2690 | walkopts + dryrunopts + | |
2690 | [('n', 'dry-run', None, |
|
|||
2691 | _('do not perform actions, just print output'))], |
|
|||
2692 | [('s', 'similarity', '', |
|
2691 | [('s', 'similarity', '', | |
2693 |
_('guess renamed files by similarity (0<=s<=100)')) |
|
2692 | _('guess renamed files by similarity (0<=s<=100)')), | |
|
2693 | ] + walkopts + dryrunopts, | |||
2694 | _('hg addremove [OPTION]... [FILE]...')), |
|
2694 | _('hg addremove [OPTION]... [FILE]...')), | |
2695 | "^annotate": |
|
2695 | "^annotate": | |
2696 | (annotate, |
|
2696 | (annotate, | |
@@ -2760,8 +2760,7 b' table = {' | |||||
2760 | [('A', 'after', None, _('record a copy that has already occurred')), |
|
2760 | [('A', 'after', None, _('record a copy that has already occurred')), | |
2761 | ('f', 'force', None, |
|
2761 | ('f', 'force', None, | |
2762 | _('forcibly copy over an existing managed file')), |
|
2762 | _('forcibly copy over an existing managed file')), | |
2763 | ('n', 'dry-run', None, _('do not perform actions, just print output'))], |
|
2763 | ] + walkopts + dryrunopts, | |
2764 | ] + walkopts, |
|
|||
2765 | _('hg copy [OPTION]... [SOURCE]... DEST')), |
|
2764 | _('hg copy [OPTION]... [SOURCE]... DEST')), | |
2766 | "debugancestor": (debugancestor, [], _('debugancestor INDEX REV1 REV2')), |
|
2765 | "debugancestor": (debugancestor, [], _('debugancestor INDEX REV1 REV2')), | |
2767 | "debugcomplete": |
|
2766 | "debugcomplete": | |
@@ -2954,16 +2953,14 b' table = {' | |||||
2954 | [('A', 'after', None, _('record a rename that has already occurred')), |
|
2953 | [('A', 'after', None, _('record a rename that has already occurred')), | |
2955 | ('f', 'force', None, |
|
2954 | ('f', 'force', None, | |
2956 | _('forcibly copy over an existing managed file')), |
|
2955 | _('forcibly copy over an existing managed file')), | |
2957 | ('n', 'dry-run', None, _('do not perform actions, just print output'))], |
|
2956 | ] + walkopts + dryrunopts, | |
2958 | ] + walkopts, |
|
|||
2959 | _('hg rename [OPTION]... SOURCE... DEST')), |
|
2957 | _('hg rename [OPTION]... SOURCE... DEST')), | |
2960 | "^revert": |
|
2958 | "^revert": | |
2961 | (revert, |
|
2959 | (revert, | |
2962 | [('a', 'all', None, _('revert all changes when no arguments given')), |
|
2960 | [('a', 'all', None, _('revert all changes when no arguments given')), | |
2963 | ('r', 'rev', '', _('revision to revert to')), |
|
2961 | ('r', 'rev', '', _('revision to revert to')), | |
2964 | ('', 'no-backup', None, _('do not save backup copies of files')), |
|
2962 | ('', 'no-backup', None, _('do not save backup copies of files')), | |
2965 | ('n', 'dry-run', None, _('do not perform actions, just print output'))], |
|
2963 | ] + walkopts + dryrunopts, | |
2966 | ] + walkopts, |
|
|||
2967 | _('hg revert [-r REV] [NAME]...')), |
|
2964 | _('hg revert [-r REV] [NAME]...')), | |
2968 | "rollback": (rollback, [], _('hg rollback')), |
|
2965 | "rollback": (rollback, [], _('hg rollback')), | |
2969 | "root": (root, [], _('hg root')), |
|
2966 | "root": (root, [], _('hg root')), |
General Comments 0
You need to be logged in to leave comments.
Login now