# HG changeset patch # User Benoit Boissinot # Date 1159547948 -7200 # Node ID fca5ddbaa12af32fec357270b3da336c7817054b # Parent 245bb70d7dfbd48e24e7fa3c143a6a340bdb2deb factor opts: move globalopts to a more logical place we will put other options at the same place diff -r 245bb70d7dfb -r fca5ddbaa12a mercurial/commands.py --- a/mercurial/commands.py Thu Sep 28 11:41:33 2006 -0700 +++ b/mercurial/commands.py Fri Sep 29 18:39:08 2006 +0200 @@ -2653,6 +2653,25 @@ # Command options and aliases are listed here, alphabetically +globalopts = [ + ('R', 'repository', '', + _('repository root directory or symbolic path name')), + ('', 'cwd', '', _('change working directory')), + ('y', 'noninteractive', None, + _('do not prompt, assume \'yes\' for any required answers')), + ('q', 'quiet', None, _('suppress output')), + ('v', 'verbose', None, _('enable additional output')), + ('', 'config', [], _('set/override config option')), + ('', 'debug', None, _('enable debugging output')), + ('', 'debugger', None, _('start debugger')), + ('', 'lsprof', None, _('print improved command execution profile')), + ('', 'traceback', None, _('print traceback on exception')), + ('', 'time', None, _('time how long the command takes')), + ('', 'profile', None, _('print command execution profile')), + ('', 'version', None, _('output version information and exit')), + ('h', 'help', None, _('display help and exit')), +] + table = { "^add": (add, @@ -3031,25 +3050,6 @@ "version": (show_version, [], _('hg version')), } -globalopts = [ - ('R', 'repository', '', - _('repository root directory or symbolic path name')), - ('', 'cwd', '', _('change working directory')), - ('y', 'noninteractive', None, - _('do not prompt, assume \'yes\' for any required answers')), - ('q', 'quiet', None, _('suppress output')), - ('v', 'verbose', None, _('enable additional output')), - ('', 'config', [], _('set/override config option')), - ('', 'debug', None, _('enable debugging output')), - ('', 'debugger', None, _('start debugger')), - ('', 'lsprof', None, _('print improved command execution profile')), - ('', 'traceback', None, _('print traceback on exception')), - ('', 'time', None, _('time how long the command takes')), - ('', 'profile', None, _('print command execution profile')), - ('', 'version', None, _('output version information and exit')), - ('h', 'help', None, _('display help and exit')), -] - norepo = ("clone init version help debugancestor debugcomplete debugdata" " debugindex debugindexdot") optionalrepo = ("paths serve debugconfig")