mercurial/commands.py
changeset 3887 57b797601b61
parent 3877 abaee83ce0a6
parent 3885 6081b4c68baf
child 3891 6b4127c7d52a
equal deleted inserted replaced
3877:abaee83ce0a6 3887:57b797601b61
  2579           ('u', 'user', None, _('list the author')),
  2579           ('u', 'user', None, _('list the author')),
  2580           ('d', 'date', None, _('list the date')),
  2580           ('d', 'date', None, _('list the date')),
  2581           ('n', 'number', None, _('list the revision number (default)')),
  2581           ('n', 'number', None, _('list the revision number (default)')),
  2582           ('c', 'changeset', None, _('list the changeset')),
  2582           ('c', 'changeset', None, _('list the changeset')),
  2583          ] + walkopts,
  2583          ] + walkopts,
  2584          _('hg annotate [-r REV] [-a] [-u] [-d] [-n] [-c] FILE...')),
  2584          _('hg annotate [-r REV] [-f] [-a] [-u] [-d] [-n] [-c] FILE...')),
  2585     "archive":
  2585     "archive":
  2586         (archive,
  2586         (archive,
  2587          [('', 'no-decode', None, _('do not pass files through decoders')),
  2587          [('', 'no-decode', None, _('do not pass files through decoders')),
  2588           ('p', 'prefix', '', _('directory prefix for files in archive')),
  2588           ('p', 'prefix', '', _('directory prefix for files in archive')),
  2589           ('r', 'rev', '', _('revision to distribute')),
  2589           ('r', 'rev', '', _('revision to distribute')),
  2608           ('r', 'rev', [],
  2608           ('r', 'rev', [],
  2609            _('a changeset you would like to bundle')),
  2609            _('a changeset you would like to bundle')),
  2610           ('', 'base', [],
  2610           ('', 'base', [],
  2611            _('a base changeset to specify instead of a destination')),
  2611            _('a base changeset to specify instead of a destination')),
  2612          ] + remoteopts,
  2612          ] + remoteopts,
  2613          _('hg bundle [--base REV]... [--rev REV]... FILE [DEST]')),
  2613          _('hg bundle [-f] [-r REV]... [--base REV]... FILE [DEST]')),
  2614     "cat":
  2614     "cat":
  2615         (cat,
  2615         (cat,
  2616          [('o', 'output', '', _('print output to file with formatted name')),
  2616          [('o', 'output', '', _('print output to file with formatted name')),
  2617           ('r', 'rev', '', _('print the given revision')),
  2617           ('r', 'rev', '', _('print the given revision')),
  2618          ] + walkopts,
  2618          ] + walkopts,
  2677           ('b', 'ignore-space-change', None,
  2677           ('b', 'ignore-space-change', None,
  2678            _('ignore changes in the amount of white space')),
  2678            _('ignore changes in the amount of white space')),
  2679           ('B', 'ignore-blank-lines', None,
  2679           ('B', 'ignore-blank-lines', None,
  2680            _('ignore changes whose lines are all blank')),
  2680            _('ignore changes whose lines are all blank')),
  2681          ] + walkopts,
  2681          ] + walkopts,
  2682          _('hg diff [-a] [-I] [-X] [-r REV1 [-r REV2]] [FILE]...')),
  2682          _('hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...')),
  2683     "^export":
  2683     "^export":
  2684         (export,
  2684         (export,
  2685          [('o', 'output', '', _('print output to file with formatted name')),
  2685          [('o', 'output', '', _('print output to file with formatted name')),
  2686           ('a', 'text', None, _('treat all files as text')),
  2686           ('a', 'text', None, _('treat all files as text')),
  2687           ('g', 'git', None, _('use git extended diff format')),
  2687           ('g', 'git', None, _('use git extended diff format')),
  2688           ('', 'nodates', None, _("don't include dates in diff headers")),
  2688           ('', 'nodates', None, _("don't include dates in diff headers")),
  2689           ('', 'switch-parent', None, _('diff against the second parent'))],
  2689           ('', 'switch-parent', None, _('diff against the second parent'))],
  2690          _('hg export [-a] [-o OUTFILESPEC] REV...')),
  2690          _('hg export [OPTION]... [-o OUTFILESPEC] REV...')),
  2691     "grep":
  2691     "grep":
  2692         (grep,
  2692         (grep,
  2693          [('0', 'print0', None, _('end fields with NUL')),
  2693          [('0', 'print0', None, _('end fields with NUL')),
  2694           ('', 'all', None, _('print all revisions that match')),
  2694           ('', 'all', None, _('print all revisions that match')),
  2695           ('f', 'follow', None,
  2695           ('f', 'follow', None,
  2728           ('', 'bundle', '', _('file to store the bundles into')),
  2728           ('', 'bundle', '', _('file to store the bundles into')),
  2729           ('p', 'patch', None, _('show patch')),
  2729           ('p', 'patch', None, _('show patch')),
  2730           ('r', 'rev', [], _('a specific revision up to which you would like to pull')),
  2730           ('r', 'rev', [], _('a specific revision up to which you would like to pull')),
  2731           ('', 'template', '', _('display with template')),
  2731           ('', 'template', '', _('display with template')),
  2732          ] + remoteopts,
  2732          ] + remoteopts,
  2733          _('hg incoming [-p] [-n] [-M] [-r REV]...'
  2733          _('hg incoming [-p] [-n] [-M] [-f] [-r REV]...'
  2734            ' [--bundle FILENAME] [SOURCE]')),
  2734            ' [--bundle FILENAME] [SOURCE]')),
  2735     "^init":
  2735     "^init":
  2736         (init, remoteopts, _('hg init [-e FILE] [--remotecmd FILE] [DEST]')),
  2736         (init,
       
  2737          remoteopts,
       
  2738          _('hg init [-e CMD] [--remotecmd CMD] [DEST]')),
  2737     "locate":
  2739     "locate":
  2738         (locate,
  2740         (locate,
  2739          [('r', 'rev', '', _('search the repository as it stood at rev')),
  2741          [('r', 'rev', '', _('search the repository as it stood at rev')),
  2740           ('0', 'print0', None,
  2742           ('0', 'print0', None,
  2741            _('end filenames with NUL, for use with xargs')),
  2743            _('end filenames with NUL, for use with xargs')),
  2776           ('', 'style', '', _('display using template map file')),
  2778           ('', 'style', '', _('display using template map file')),
  2777           ('r', 'rev', [], _('a specific revision you would like to push')),
  2779           ('r', 'rev', [], _('a specific revision you would like to push')),
  2778           ('n', 'newest-first', None, _('show newest record first')),
  2780           ('n', 'newest-first', None, _('show newest record first')),
  2779           ('', 'template', '', _('display with template')),
  2781           ('', 'template', '', _('display with template')),
  2780          ] + remoteopts,
  2782          ] + remoteopts,
  2781          _('hg outgoing [-M] [-p] [-n] [-r REV]... [DEST]')),
  2783          _('hg outgoing [-M] [-p] [-n] [-f] [-r REV]... [DEST]')),
  2782     "^parents":
  2784     "^parents":
  2783         (parents,
  2785         (parents,
  2784          [('r', 'rev', '', _('show parents from the specified rev')),
  2786          [('r', 'rev', '', _('show parents from the specified rev')),
  2785           ('', 'style', '', _('display using template map file')),
  2787           ('', 'style', '', _('display using template map file')),
  2786           ('', 'template', '', _('display with template'))],
  2788           ('', 'template', '', _('display with template'))],
  2790         (pull,
  2792         (pull,
  2791          [('u', 'update', None,
  2793          [('u', 'update', None,
  2792            _('update to new tip if changesets were pulled')),
  2794            _('update to new tip if changesets were pulled')),
  2793           ('f', 'force', None,
  2795           ('f', 'force', None,
  2794            _('run even when remote repository is unrelated')),
  2796            _('run even when remote repository is unrelated')),
  2795           ('r', 'rev', [], _('a specific revision up to which you would like to pull')),
  2797           ('r', 'rev', [],
       
  2798            _('a specific revision up to which you would like to pull')),
  2796          ] + remoteopts,
  2799          ] + remoteopts,
  2797          _('hg pull [-u] [-r REV]... [-e FILE] [--remotecmd FILE] [SOURCE]')),
  2800          _('hg pull [-u] [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [SOURCE]')),
  2798     "^push":
  2801     "^push":
  2799         (push,
  2802         (push,
  2800          [('f', 'force', None, _('force push')),
  2803          [('f', 'force', None, _('force push')),
  2801           ('r', 'rev', [], _('a specific revision you would like to push')),
  2804           ('r', 'rev', [], _('a specific revision you would like to push')),
  2802          ] + remoteopts,
  2805          ] + remoteopts,
  2803          _('hg push [-f] [-r REV]... [-e FILE] [--remotecmd FILE] [DEST]')),
  2806          _('hg push [-f] [-r REV]... [-e CMD] [--remotecmd CMD] [DEST]')),
  2804     "debugrawcommit|rawcommit":
  2807     "debugrawcommit|rawcommit":
  2805         (rawcommit,
  2808         (rawcommit,
  2806          [('p', 'parent', [], _('parent')),
  2809          [('p', 'parent', [], _('parent')),
  2807           ('d', 'date', '', _('date code')),
  2810           ('d', 'date', '', _('date code')),
  2808           ('u', 'user', '', _('user')),
  2811           ('u', 'user', '', _('user')),
  2828          [('a', 'all', None, _('revert all changes when no arguments given')),
  2831          [('a', 'all', None, _('revert all changes when no arguments given')),
  2829           ('d', 'date', '', _('tipmost revision matching date')),
  2832           ('d', 'date', '', _('tipmost revision matching date')),
  2830           ('r', 'rev', '', _('revision to revert to')),
  2833           ('r', 'rev', '', _('revision to revert to')),
  2831           ('', 'no-backup', None, _('do not save backup copies of files')),
  2834           ('', 'no-backup', None, _('do not save backup copies of files')),
  2832          ] + walkopts + dryrunopts,
  2835          ] + walkopts + dryrunopts,
  2833          _('hg revert [-r REV] [NAME]...')),
  2836          _('hg revert [OPTION]... [-r REV] [NAME]...')),
  2834     "rollback": (rollback, [], _('hg rollback')),
  2837     "rollback": (rollback, [], _('hg rollback')),
  2835     "root": (root, [], _('hg root')),
  2838     "root": (root, [], _('hg root')),
  2836     "showconfig|debugconfig":
  2839     "showconfig|debugconfig":
  2837         (showconfig,
  2840         (showconfig,
  2838          [('u', 'untrusted', None, _('show untrusted configuration options'))],
  2841          [('u', 'untrusted', None, _('show untrusted configuration options'))],
  2894          _('hg unbundle [-u] FILE')),
  2897          _('hg unbundle [-u] FILE')),
  2895     "^update|up|checkout|co":
  2898     "^update|up|checkout|co":
  2896         (update,
  2899         (update,
  2897          [('C', 'clean', None, _('overwrite locally modified files')),
  2900          [('C', 'clean', None, _('overwrite locally modified files')),
  2898           ('d', 'date', '', _('tipmost revision matching date'))],
  2901           ('d', 'date', '', _('tipmost revision matching date'))],
  2899          _('hg update [-C] [REV]')),
  2902          _('hg update [-C] [-d DATE] [REV]')),
  2900     "verify": (verify, [], _('hg verify')),
  2903     "verify": (verify, [], _('hg verify')),
  2901     "version": (version_, [], _('hg version')),
  2904     "version": (version_, [], _('hg version')),
  2902 }
  2905 }
  2903 
  2906 
  2904 norepo = ("clone init version help debugancestor debugcomplete debugdata"
  2907 norepo = ("clone init version help debugancestor debugcomplete debugdata"