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