Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 3183:37b53487c341
factor opts: remote repo access options
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 29 Sep 2006 19:59:06 +0200 |
parents | a73a785ea8e1 |
children | 545b6d718593 |
comparison
equal
deleted
inserted
replaced
3182:a73a785ea8e1 | 3183:37b53487c341 |
---|---|
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, | 2675 dryrunopts = [('n', 'dry-run', None, |
2676 _('do not perform actions, just print output'))] | 2676 _('do not perform actions, just print output'))] |
2677 | |
2678 remoteopts = [ | |
2679 ('e', 'ssh', '', _('specify ssh command to use')), | |
2680 ('', 'remotecmd', '', _('specify hg command to run on the remote side')), | |
2681 ] | |
2677 | 2682 |
2678 walkopts = [ | 2683 walkopts = [ |
2679 ('I', 'include', [], _('include names matching the given patterns')), | 2684 ('I', 'include', [], _('include names matching the given patterns')), |
2680 ('X', 'exclude', [], _('exclude names matching the given patterns')), | 2685 ('X', 'exclude', [], _('exclude names matching the given patterns')), |
2681 ] | 2686 ] |
2739 ('r', 'rev', [], | 2744 ('r', 'rev', [], |
2740 _('a changeset you would like to have after cloning')), | 2745 _('a changeset you would like to have after cloning')), |
2741 ('', 'pull', None, _('use pull protocol to copy metadata')), | 2746 ('', 'pull', None, _('use pull protocol to copy metadata')), |
2742 ('', 'uncompressed', None, | 2747 ('', 'uncompressed', None, |
2743 _('use uncompressed transfer (fast over LAN)')), | 2748 _('use uncompressed transfer (fast over LAN)')), |
2744 ('e', 'ssh', '', _('specify ssh command to use')), | 2749 ] + remoteopts, |
2745 ('', 'remotecmd', '', | |
2746 _('specify hg command to run on the remote side'))], | |
2747 _('hg clone [OPTION]... SOURCE [DEST]')), | 2750 _('hg clone [OPTION]... SOURCE [DEST]')), |
2748 "^commit|ci": | 2751 "^commit|ci": |
2749 (commit, | 2752 (commit, |
2750 [('A', 'addremove', None, | 2753 [('A', 'addremove', None, |
2751 _('mark new/missing files as added/removed before committing')), | 2754 _('mark new/missing files as added/removed before committing')), |
2846 ('n', 'newest-first', None, _('show newest record first')), | 2849 ('n', 'newest-first', None, _('show newest record first')), |
2847 ('', 'bundle', '', _('file to store the bundles into')), | 2850 ('', 'bundle', '', _('file to store the bundles into')), |
2848 ('p', 'patch', None, _('show patch')), | 2851 ('p', 'patch', None, _('show patch')), |
2849 ('r', 'rev', [], _('a specific revision up to which you would like to pull')), | 2852 ('r', 'rev', [], _('a specific revision up to which you would like to pull')), |
2850 ('', 'template', '', _('display with template')), | 2853 ('', 'template', '', _('display with template')), |
2851 ('e', 'ssh', '', _('specify ssh command to use')), | 2854 ] + remoteopts, |
2852 ('', 'remotecmd', '', | |
2853 _('specify hg command to run on the remote side'))], | |
2854 _('hg incoming [-p] [-n] [-M] [-r REV]...' | 2855 _('hg incoming [-p] [-n] [-M] [-r REV]...' |
2855 ' [--bundle FILENAME] [SOURCE]')), | 2856 ' [--bundle FILENAME] [SOURCE]')), |
2856 "^init": | 2857 "^init": |
2857 (init, | 2858 (init, remoteopts, _('hg init [-e FILE] [--remotecmd FILE] [DEST]')), |
2858 [('e', 'ssh', '', _('specify ssh command to use')), | |
2859 ('', 'remotecmd', '', | |
2860 _('specify hg command to run on the remote side'))], | |
2861 _('hg init [-e FILE] [--remotecmd FILE] [DEST]')), | |
2862 "locate": | 2859 "locate": |
2863 (locate, | 2860 (locate, |
2864 [('r', 'rev', '', _('search the repository as it stood at rev')), | 2861 [('r', 'rev', '', _('search the repository as it stood at rev')), |
2865 ('0', 'print0', None, | 2862 ('0', 'print0', None, |
2866 _('end filenames with NUL, for use with xargs')), | 2863 _('end filenames with NUL, for use with xargs')), |
2899 ('p', 'patch', None, _('show patch')), | 2896 ('p', 'patch', None, _('show patch')), |
2900 ('', 'style', '', _('display using template map file')), | 2897 ('', 'style', '', _('display using template map file')), |
2901 ('r', 'rev', [], _('a specific revision you would like to push')), | 2898 ('r', 'rev', [], _('a specific revision you would like to push')), |
2902 ('n', 'newest-first', None, _('show newest record first')), | 2899 ('n', 'newest-first', None, _('show newest record first')), |
2903 ('', 'template', '', _('display with template')), | 2900 ('', 'template', '', _('display with template')), |
2904 ('e', 'ssh', '', _('specify ssh command to use')), | 2901 ] + remoteopts, |
2905 ('', 'remotecmd', '', | |
2906 _('specify hg command to run on the remote side'))], | |
2907 _('hg outgoing [-M] [-p] [-n] [-r REV]... [DEST]')), | 2902 _('hg outgoing [-M] [-p] [-n] [-r REV]... [DEST]')), |
2908 "^parents": | 2903 "^parents": |
2909 (parents, | 2904 (parents, |
2910 [('b', 'branches', None, _('show branches')), | 2905 [('b', 'branches', None, _('show branches')), |
2911 ('r', 'rev', '', _('show parents from the specified rev')), | 2906 ('r', 'rev', '', _('show parents from the specified rev')), |
2915 "paths": (paths, [], _('hg paths [NAME]')), | 2910 "paths": (paths, [], _('hg paths [NAME]')), |
2916 "^pull": | 2911 "^pull": |
2917 (pull, | 2912 (pull, |
2918 [('u', 'update', None, | 2913 [('u', 'update', None, |
2919 _('update the working directory to tip after pull')), | 2914 _('update the working directory to tip after pull')), |
2920 ('e', 'ssh', '', _('specify ssh command to use')), | |
2921 ('f', 'force', None, | 2915 ('f', 'force', None, |
2922 _('run even when remote repository is unrelated')), | 2916 _('run even when remote repository is unrelated')), |
2923 ('r', 'rev', [], _('a specific revision up to which you would like to pull')), | 2917 ('r', 'rev', [], _('a specific revision up to which you would like to pull')), |
2924 ('', 'remotecmd', '', | 2918 ] + remoteopts, |
2925 _('specify hg command to run on the remote side'))], | |
2926 _('hg pull [-u] [-r REV]... [-e FILE] [--remotecmd FILE] [SOURCE]')), | 2919 _('hg pull [-u] [-r REV]... [-e FILE] [--remotecmd FILE] [SOURCE]')), |
2927 "^push": | 2920 "^push": |
2928 (push, | 2921 (push, |
2929 [('f', 'force', None, _('force push')), | 2922 [('f', 'force', None, _('force push')), |
2930 ('e', 'ssh', '', _('specify ssh command to use')), | |
2931 ('r', 'rev', [], _('a specific revision you would like to push')), | 2923 ('r', 'rev', [], _('a specific revision you would like to push')), |
2932 ('', 'remotecmd', '', | 2924 ] + remoteopts, |
2933 _('specify hg command to run on the remote side'))], | |
2934 _('hg push [-f] [-r REV]... [-e FILE] [--remotecmd FILE] [DEST]')), | 2925 _('hg push [-f] [-r REV]... [-e FILE] [--remotecmd FILE] [DEST]')), |
2935 "debugrawcommit|rawcommit": | 2926 "debugrawcommit|rawcommit": |
2936 (rawcommit, | 2927 (rawcommit, |
2937 [('p', 'parent', [], _('parent')), | 2928 [('p', 'parent', [], _('parent')), |
2938 ('d', 'date', '', _('date code')), | 2929 ('d', 'date', '', _('date code')), |